diff options
Diffstat (limited to 'test/cpp/microbenchmarks/helpers.cc')
-rw-r--r-- | test/cpp/microbenchmarks/helpers.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/microbenchmarks/helpers.cc b/test/cpp/microbenchmarks/helpers.cc index b68c40a79d..73ab9e4a1a 100644 --- a/test/cpp/microbenchmarks/helpers.cc +++ b/test/cpp/microbenchmarks/helpers.cc @@ -40,7 +40,7 @@ void TrackCounters::Finish(benchmark::State &state) { 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) { |