Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
c820efcc
Commit
c820efcc
authored
Jul 27, 2015
by
kosak
Browse files
Templatize ParseeGoogleMockStringFlag on String type.
parent
37a8c106
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/gmock.cc
src/gmock.cc
+2
-1
No files found.
src/gmock.cc
View file @
c820efcc
...
...
@@ -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
::
s
tring
*
value
)
{
S
tring
*
value
)
{
// Gets the value of the flag as a string.
const
char
*
const
value_str
=
ParseGoogleMockFlagValue
(
str
,
flag
,
false
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment