From 8ac4bc41aa5710c8a2395ce8e16918951eb81d24 Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Mon, 29 Feb 2016 16:12:33 +0000 Subject: [PATCH] fix: Pass std::string directly, no need for c_str() call --- test/gflags_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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);