fix: Pass std::string directly, no need for c_str() call
authorAndreas Schuh <andreas.schuh.84@gmail.com>
Mon, 29 Feb 2016 16:12:33 +0000 (16:12 +0000)
committerAndreas Schuh <andreas.schuh.84@gmail.com>
Mon, 29 Feb 2016 16:12:33 +0000 (16:12 +0000)
test/gflags_unittest.cc

index cc3049b..f205466 100644 (file)
@@ -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);