Merge "Use default LogEvent copy constructor" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
18fb866de9
@@ -66,15 +66,6 @@ using std::vector;
|
||||
#define ATTRIBUTION_CHAIN_TYPE 0x09
|
||||
#define ERROR_TYPE 0x0F
|
||||
|
||||
LogEvent::LogEvent(const LogEvent& event) {
|
||||
mTagId = event.mTagId;
|
||||
mLogUid = event.mLogUid;
|
||||
mLogPid = event.mLogPid;
|
||||
mElapsedTimestampNs = event.mElapsedTimestampNs;
|
||||
mLogdTimestampNs = event.mLogdTimestampNs;
|
||||
mValues = event.mValues;
|
||||
}
|
||||
|
||||
LogEvent::LogEvent(int32_t uid, int32_t pid)
|
||||
: mLogdTimestampNs(time(nullptr)), mLogUid(uid), mLogPid(pid) {
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ private:
|
||||
/**
|
||||
* Only use this if copy is absolutely needed.
|
||||
*/
|
||||
LogEvent(const LogEvent&);
|
||||
LogEvent(const LogEvent&) = default;
|
||||
|
||||
void parseInt32(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations);
|
||||
void parseInt64(int32_t* pos, int32_t depth, bool* last, uint8_t numAnnotations);
|
||||
|
||||
Reference in New Issue
Block a user