Explicitly mention std::string

pull/11102/head
Craig Tiller 8 years ago
parent 832c607fef
commit 0ccaff9cb6
  1. 2
      test/cpp/microbenchmarks/helpers.cc

@ -36,7 +36,7 @@
void TrackCounters::Finish(benchmark::State &state) { void TrackCounters::Finish(benchmark::State &state) {
std::ostringstream out; std::ostringstream out;
AddToLabel(out, state); AddToLabel(out, state);
auto label = out.str(); std::string label = out.str();
if (label.length() && label[0] == ' ') { if (label.length() && label[0] == ' ') {
label = label.substr(1); label = label.substr(1);
} }

Loading…
Cancel
Save