aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/proto_text
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/tools/proto_text
parent0b8070253d6c62ad395a42c3f496c3f21ae5d975 (diff)
Make single-parameter constructors explicit
PiperOrigin-RevId: 157628970
Diffstat (limited to 'tensorflow/tools/proto_text')
-rw-r--r--tensorflow/tools/proto_text/gen_proto_text_functions_lib.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/tools/proto_text/gen_proto_text_functions_lib.cc b/tensorflow/tools/proto_text/gen_proto_text_functions_lib.cc
index 960e8b9a8f..1586e1ba41 100644
--- a/tensorflow/tools/proto_text/gen_proto_text_functions_lib.cc
+++ b/tensorflow/tools/proto_text/gen_proto_text_functions_lib.cc
@@ -58,7 +58,7 @@ string StrAppend(string* to_append, const Args&... args) {
// the field names (it's a loop over all names), and tracking of has_seen.
class Generator {
public:
- Generator(const string& tf_header_prefix)
+ explicit Generator(const string& tf_header_prefix)
: tf_header_prefix_(tf_header_prefix),
header_(&code_.header),
header_impl_(&code_.header_impl),
@@ -71,7 +71,7 @@ class Generator {
private:
struct Section {
- Section(string* str) : str(str) {}
+ explicit Section(string* str) : str(str) {}
string* str;
string indent;
};