commit | 8ac4bc41aa5710c8a2395ce8e16918951eb81d24 | [log] [tgz] |
---|---|---|
author | Andreas Schuh <andreas.schuh.84@gmail.com> | Mon Feb 29 16:12:33 2016 +0000 |
committer | Andreas Schuh <andreas.schuh.84@gmail.com> | Mon Feb 29 16:12:33 2016 +0000 |
tree | b81caa3f08e9b85d3b640270011b9da14c7e2bcb | |
parent | 3ae911f3e7eb2ed3f34017355dc5d829f411962b [diff] |
fix: Pass std::string directly, no need for c_str() call
diff --git a/test/gflags_unittest.cc b/test/gflags_unittest.cc index cc3049b..f205466 100644 --- a/test/gflags_unittest.cc +++ b/test/gflags_unittest.cc
@@ -1514,7 +1514,7 @@ // 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);