summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkosak@google.com <kosak@google.com@8415998a-534a-0410-bf83-d39667b30386>2015-07-27 22:08:34 +0000
committerkosak@google.com <kosak@google.com@8415998a-534a-0410-bf83-d39667b30386>2015-07-27 22:08:34 +0000
commitbeddfd6b31578fab57e314ea9a678d0af01f5ed4 (patch)
tree8696e0904b4efb24d8f3df44770916b23068e306
parent5f24a2c68098ffb316252d314a4744a0615b6adb (diff)
downloadgooglemock-beddfd6b31578fab57e314ea9a678d0af01f5ed4.tar.gz
Templatize ParseeGoogleMockStringFlag on String type.
git-svn-id: http://googlemock.googlecode.com/svn/trunk@558 8415998a-534a-0410-bf83-d39667b30386
-rw-r--r--src/gmock.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gmock.cc b/src/gmock.cc
index 1c06985..eac3d84 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);