From beddfd6b31578fab57e314ea9a678d0af01f5ed4 Mon Sep 17 00:00:00 2001 From: "kosak@google.com" Date: Mon, 27 Jul 2015 22:08:34 +0000 Subject: Templatize ParseeGoogleMockStringFlag on String type. git-svn-id: http://googlemock.googlecode.com/svn/trunk@558 8415998a-534a-0410-bf83-d39667b30386 --- src/gmock.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 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); -- cgit v1.2.1