diff options
author | Chih-hung Hsieh <chh@google.com> | 2018-12-21 09:24:28 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-12-21 09:24:28 -0800 |
commit | b708a7953d306cb79177bd79862b363292ac02e5 (patch) | |
tree | a6fc23abbc5d383586bcb478c429dfc5cb8beb86 /cmds/incidentd/src | |
parent | 34ba791b2576047c188370b57ff391f8d3891a25 (diff) | |
parent | ee844ad9a20fe1922ee04d9f8dfc17ed932f864d (diff) |
Merge "Fix/suppress incident* google-explicit-constructor warnings" am: 6af0e228f3 am: 78085ba0a3
am: ee844ad9a2
Change-Id: I53c2fd3886e565d824e2765671fb7965f07bd08d
Diffstat (limited to 'cmds/incidentd/src')
-rw-r--r-- | cmds/incidentd/src/IncidentService.h | 2 | ||||
-rw-r--r-- | cmds/incidentd/src/Privacy.h | 2 | ||||
-rw-r--r-- | cmds/incidentd/src/Reporter.h | 2 | ||||
-rw-r--r-- | cmds/incidentd/src/Section.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/cmds/incidentd/src/IncidentService.h b/cmds/incidentd/src/IncidentService.h index 6252ad295224..c63a183b70b9 100644 --- a/cmds/incidentd/src/IncidentService.h +++ b/cmds/incidentd/src/IncidentService.h @@ -97,7 +97,7 @@ private: // ================================================================================ class IncidentService : public BnIncidentManager { public: - IncidentService(const sp<Looper>& handlerLooper); + explicit IncidentService(const sp<Looper>& handlerLooper); virtual ~IncidentService(); virtual Status reportIncident(const IncidentReportArgs& args); diff --git a/cmds/incidentd/src/Privacy.h b/cmds/incidentd/src/Privacy.h index a3df4903de45..a0159d9a8649 100644 --- a/cmds/incidentd/src/Privacy.h +++ b/cmds/incidentd/src/Privacy.h @@ -83,7 +83,7 @@ public: static PrivacySpec new_spec(int dest); private: - PrivacySpec(uint8_t dest) : dest(dest) {} + explicit PrivacySpec(uint8_t dest) : dest(dest) {} }; } // namespace incidentd diff --git a/cmds/incidentd/src/Reporter.h b/cmds/incidentd/src/Reporter.h index 45fd9443e9d0..2a3abd7b4d97 100644 --- a/cmds/incidentd/src/Reporter.h +++ b/cmds/incidentd/src/Reporter.h @@ -89,7 +89,7 @@ public: ReportRequestSet batch; Reporter(); // PROD must use this constructor. - Reporter(const char* directory); // For testing purpose only. + explicit Reporter(const char* directory); // For testing purpose only. virtual ~Reporter(); // Run the report as described in the batch and args parameters. diff --git a/cmds/incidentd/src/Section.cpp b/cmds/incidentd/src/Section.cpp index 10d226822331..32ec1ba90cda 100644 --- a/cmds/incidentd/src/Section.cpp +++ b/cmds/incidentd/src/Section.cpp @@ -415,7 +415,7 @@ struct WorkerThreadData : public virtual RefBase { bool workerDone; status_t workerError; - WorkerThreadData(const WorkerThreadSection* section); + explicit WorkerThreadData(const WorkerThreadSection* section); virtual ~WorkerThreadData(); }; |