summaryrefslogtreecommitdiff
path: root/cmds/incident_helper
diff options
context:
space:
mode:
authorChih-hung Hsieh <chh@google.com>2018-12-21 09:24:28 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-12-21 09:24:28 -0800
commitb708a7953d306cb79177bd79862b363292ac02e5 (patch)
treea6fc23abbc5d383586bcb478c429dfc5cb8beb86 /cmds/incident_helper
parent34ba791b2576047c188370b57ff391f8d3891a25 (diff)
parentee844ad9a20fe1922ee04d9f8dfc17ed932f864d (diff)
Merge "Fix/suppress incident* google-explicit-constructor warnings" am: 6af0e228f3 am: 78085ba0a3
am: ee844ad9a2 Change-Id: I53c2fd3886e565d824e2765671fb7965f07bd08d
Diffstat (limited to 'cmds/incident_helper')
-rw-r--r--cmds/incident_helper/src/TextParserBase.h2
-rw-r--r--cmds/incident_helper/src/ih_util.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/cmds/incident_helper/src/TextParserBase.h b/cmds/incident_helper/src/TextParserBase.h
index 784c181d9741..a6074e71c035 100644
--- a/cmds/incident_helper/src/TextParserBase.h
+++ b/cmds/incident_helper/src/TextParserBase.h
@@ -30,7 +30,7 @@ class TextParserBase {
public:
String8 name;
- TextParserBase(String8 name) : name(name) {};
+ explicit TextParserBase(String8 name) : name(name) {};
virtual ~TextParserBase() {};
virtual status_t Parse(const int in, const int out) const = 0;
diff --git a/cmds/incident_helper/src/ih_util.h b/cmds/incident_helper/src/ih_util.h
index c02a3493724a..09dc8e6fdbfc 100644
--- a/cmds/incident_helper/src/ih_util.h
+++ b/cmds/incident_helper/src/ih_util.h
@@ -109,7 +109,7 @@ double toDouble(const std::string& s);
class Reader
{
public:
- Reader(const int fd);
+ explicit Reader(const int fd);
~Reader();
bool readLine(std::string* line);
@@ -162,7 +162,7 @@ private:
class Message
{
public:
- Message(Table* table);
+ explicit Message(Table* table);
~Message();
// Reconstructs the typical proto message by adding its message fields.