aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/example_proto_fast_parsing.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-08-24 11:20:19 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-24 11:32:57 -0700
commit197309b5d56436b523b8b03ddf2a23555c37365e (patch)
tree99b4a7898511df29ffac6623cb54418330a4838f /tensorflow/core/util/example_proto_fast_parsing.cc
parent8925649d62ae24a2c34f74b69ac95a1bed369b44 (diff)
Removed redundant std::string -> string conversions.
PiperOrigin-RevId: 210127626
Diffstat (limited to 'tensorflow/core/util/example_proto_fast_parsing.cc')
-rw-r--r--tensorflow/core/util/example_proto_fast_parsing.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/util/example_proto_fast_parsing.cc b/tensorflow/core/util/example_proto_fast_parsing.cc
index 1fec0010a1..a38cd1d09f 100644
--- a/tensorflow/core/util/example_proto_fast_parsing.cc
+++ b/tensorflow/core/util/example_proto_fast_parsing.cc
@@ -353,7 +353,7 @@ bool TestFastParse(const string& serialized, Example* example) {
// I.e. last entry in the map overwrites all the previous ones.
parsed::FeatureMapEntry& name_and_feature =
parsed_example[parsed_example_size - i - 1];
- string name = std::string(name_and_feature.first);
+ string name(name_and_feature.first);
if ((*features.mutable_feature()).count(name) > 0) continue;
auto& value = (*features.mutable_feature())[name];