Merge "Fix/suppress incident* google-explicit-constructor warnings"
am: 6af0e228f3
Change-Id: I0d5a76517a5543aaf39426a5ed1d30976ccb05ed
This commit is contained in:
@@ -30,7 +30,7 @@ class TextParserBase {
|
|||||||
public:
|
public:
|
||||||
String8 name;
|
String8 name;
|
||||||
|
|
||||||
TextParserBase(String8 name) : name(name) {};
|
explicit TextParserBase(String8 name) : name(name) {};
|
||||||
virtual ~TextParserBase() {};
|
virtual ~TextParserBase() {};
|
||||||
|
|
||||||
virtual status_t Parse(const int in, const int out) const = 0;
|
virtual status_t Parse(const int in, const int out) const = 0;
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ double toDouble(const std::string& s);
|
|||||||
class Reader
|
class Reader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Reader(const int fd);
|
explicit Reader(const int fd);
|
||||||
~Reader();
|
~Reader();
|
||||||
|
|
||||||
bool readLine(std::string* line);
|
bool readLine(std::string* line);
|
||||||
@@ -162,7 +162,7 @@ private:
|
|||||||
class Message
|
class Message
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Message(Table* table);
|
explicit Message(Table* table);
|
||||||
~Message();
|
~Message();
|
||||||
|
|
||||||
// Reconstructs the typical proto message by adding its message fields.
|
// Reconstructs the typical proto message by adding its message fields.
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ private:
|
|||||||
// ================================================================================
|
// ================================================================================
|
||||||
class IncidentService : public BnIncidentManager {
|
class IncidentService : public BnIncidentManager {
|
||||||
public:
|
public:
|
||||||
IncidentService(const sp<Looper>& handlerLooper);
|
explicit IncidentService(const sp<Looper>& handlerLooper);
|
||||||
virtual ~IncidentService();
|
virtual ~IncidentService();
|
||||||
|
|
||||||
virtual Status reportIncident(const IncidentReportArgs& args);
|
virtual Status reportIncident(const IncidentReportArgs& args);
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public:
|
|||||||
static PrivacySpec new_spec(int dest);
|
static PrivacySpec new_spec(int dest);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PrivacySpec(uint8_t dest) : dest(dest) {}
|
explicit PrivacySpec(uint8_t dest) : dest(dest) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace incidentd
|
} // namespace incidentd
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ public:
|
|||||||
ReportRequestSet batch;
|
ReportRequestSet batch;
|
||||||
|
|
||||||
Reporter(); // PROD must use this constructor.
|
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();
|
virtual ~Reporter();
|
||||||
|
|
||||||
// Run the report as described in the batch and args parameters.
|
// Run the report as described in the batch and args parameters.
|
||||||
|
|||||||
@@ -410,7 +410,7 @@ struct WorkerThreadData : public virtual RefBase {
|
|||||||
bool workerDone;
|
bool workerDone;
|
||||||
status_t workerError;
|
status_t workerError;
|
||||||
|
|
||||||
WorkerThreadData(const WorkerThreadSection* section);
|
explicit WorkerThreadData(const WorkerThreadSection* section);
|
||||||
virtual ~WorkerThreadData();
|
virtual ~WorkerThreadData();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const uint8_t DEST_AUTOMATIC = 200;
|
|||||||
class IncidentReportArgs : public Parcelable {
|
class IncidentReportArgs : public Parcelable {
|
||||||
public:
|
public:
|
||||||
IncidentReportArgs();
|
IncidentReportArgs();
|
||||||
explicit IncidentReportArgs(const IncidentReportArgs& that);
|
IncidentReportArgs(const IncidentReportArgs& that);
|
||||||
virtual ~IncidentReportArgs();
|
virtual ~IncidentReportArgs();
|
||||||
|
|
||||||
virtual status_t writeToParcel(Parcel* out) const;
|
virtual status_t writeToParcel(Parcel* out) const;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
class Out
|
class Out
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Out(int fd);
|
explicit Out(int fd);
|
||||||
~Out();
|
~Out();
|
||||||
|
|
||||||
void printf(const char* format, ...);
|
void printf(const char* format, ...);
|
||||||
|
|||||||
Reference in New Issue
Block a user