Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab9efd49 authored by Ruchir Rastogi's avatar Ruchir Rastogi Committed by Automerger Merge Worker
Browse files

Merge "Use default LogEvent copy constructor" into rvc-dev am: 18fb866d am: 83a4244e

Change-Id: I2ee682ecf14e2692421e5ef6079bd8ef13554c46
parents 28a49542 83a4244e
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -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) {
}
+1 −1
Original line number Diff line number Diff line
@@ -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);