commit | 5f24bb121e1f55b624e5e2da1789c1be415ffdf9 | [log] [tgz] |
---|---|---|
author | Craig Tiller <ctiller@google.com> | Thu May 11 15:14:32 2017 -0700 |
committer | Craig Tiller <ctiller@google.com> | Thu May 11 15:14:32 2017 -0700 |
tree | f15ed45fbd8fa6afb85584107b2e5f707a9dcbed | |
parent | 0ccaff9cb6aba24214156dbf1327696e451d49f5 [diff] |
just use char* overload
diff --git a/test/cpp/microbenchmarks/helpers.cc b/test/cpp/microbenchmarks/helpers.cc index b68c40a..73ab9e4 100644 --- a/test/cpp/microbenchmarks/helpers.cc +++ b/test/cpp/microbenchmarks/helpers.cc
@@ -40,7 +40,7 @@ if (label.length() && label[0] == ' ') { label = label.substr(1); } - state.SetLabel(label); + state.SetLabel(label.c_str()); } void TrackCounters::AddToLabel(std::ostream &out, benchmark::State &state) {