diff options
author | kosak <kosak@google.com> | 2015-07-27 22:08:34 +0000 |
---|---|---|
committer | kosak <kosak@google.com> | 2015-07-27 22:08:34 +0000 |
commit | c820efcc04bdc2bd673f112195bec11e70f0cc38 (patch) | |
tree | 8696e0904b4efb24d8f3df44770916b23068e306 /src | |
parent | 37a8c1068d064118aa34918d597a5e23698304b6 (diff) | |
download | googletest-c820efcc04bdc2bd673f112195bec11e70f0cc38.tar.gz googletest-c820efcc04bdc2bd673f112195bec11e70f0cc38.tar.bz2 googletest-c820efcc04bdc2bd673f112195bec11e70f0cc38.zip |
Templatize ParseeGoogleMockStringFlag on String type.
Diffstat (limited to 'src')
-rw-r--r-- | src/gmock.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gmock.cc b/src/gmock.cc index 1c06985d..eac3d842 100644 --- a/src/gmock.cc +++ b/src/gmock.cc @@ -106,8 +106,9 @@ static bool ParseGoogleMockBoolFlag(const char* str, const char* flag, // // On success, stores the value of the flag in *value, and returns // true. On failure, returns false without changing *value. +template <typename String> static bool ParseGoogleMockStringFlag(const char* str, const char* flag, - std::string* value) { + String* value) { // Gets the value of the flag as a string. const char* const value_str = ParseGoogleMockFlagValue(str, flag, false); |