From 197309b5d56436b523b8b03ddf2a23555c37365e Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 24 Aug 2018 11:20:19 -0700 Subject: Removed redundant std::string -> string conversions. PiperOrigin-RevId: 210127626 --- tensorflow/core/lib/strings/str_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tensorflow/core/lib/strings/str_util.h') diff --git a/tensorflow/core/lib/strings/str_util.h b/tensorflow/core/lib/strings/str_util.h index 58e87fcb9e..9f52cf29fc 100644 --- a/tensorflow/core/lib/strings/str_util.h +++ b/tensorflow/core/lib/strings/str_util.h @@ -205,7 +205,7 @@ std::vector Split(StringPiece text, StringPiece delims, Predicate p) { if ((i == text.size()) || (delims.find(text[i]) != StringPiece::npos)) { StringPiece token(text.data() + token_start, i - token_start); if (p(token)) { - result.push_back(std::string(token)); + result.emplace_back(token); } token_start = i + 1; } -- cgit v1.2.3