aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/example_proto_fast_parsing.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-05-31 13:45:15 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-05-31 13:49:26 -0700
commit6882effb863dcd0da00d3287959deac46734a0b2 (patch)
tree75364d9f41109003d318dd1e50a73988e9229d5d /tensorflow/core/util/example_proto_fast_parsing.cc
parent0b8070253d6c62ad395a42c3f496c3f21ae5d975 (diff)
Make single-parameter constructors explicit
PiperOrigin-RevId: 157628970
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 c2cbc66722..8fd11642b0 100644
--- a/tensorflow/core/util/example_proto_fast_parsing.cc
+++ b/tensorflow/core/util/example_proto_fast_parsing.cc
@@ -66,7 +66,7 @@ namespace parsed {
class Feature {
public:
Feature() {}
- Feature(StringPiece serialized) : serialized_(serialized) {}
+ explicit Feature(StringPiece serialized) : serialized_(serialized) {}
Status ParseDataType(DataType* dtype) {
DCHECK(dtype != nullptr);