projects
/
platform
/
upstream
/
gflags.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ae911f
)
fix: Pass std::string directly, no need for c_str() call
author
Andreas Schuh
<andreas.schuh.84@gmail.com>
Mon, 29 Feb 2016 16:12:33 +0000
(16:12 +0000)
committer
Andreas Schuh
<andreas.schuh.84@gmail.com>
Mon, 29 Feb 2016 16:12:33 +0000
(16:12 +0000)
test/gflags_unittest.cc
patch
|
blob
|
history
diff --git
a/test/gflags_unittest.cc
b/test/gflags_unittest.cc
index
cc3049b
..
f205466
100644
(file)
--- a/
test/gflags_unittest.cc
+++ b/
test/gflags_unittest.cc
@@
-1514,7
+1514,7
@@
static int main(int argc, char **argv) {
// The non-recommended way:
FLAGS_changed_bool2 = true;
- SetUsageMessage(usage_message
.c_str()
);
+ SetUsageMessage(usage_message);
SetVersionString("test_version");
ParseCommandLineFlags(&argc, &argv, true);
MakeTmpdir(&FLAGS_test_tmpdir);