From 98dca2d0b15f9a579efae8592dbb45059aad082e Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Wed, 19 Aug 2015 13:10:14 -0700 Subject: [PATCH] logd: logtimes switch to std::list Bug: 23350706 Change-Id: Icc60dd06119ea20a22610644ff880d5135363aba --- logd/FlushCommand.cpp | 2 +- logd/LogTimes.h | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/logd/FlushCommand.cpp b/logd/FlushCommand.cpp index d58492586..823a842fb 100644 --- a/logd/FlushCommand.cpp +++ b/logd/FlushCommand.cpp @@ -72,7 +72,7 @@ void FlushCommand::runSocketCommand(SocketClient *client) { return; } entry = new LogTimeEntry(mReader, client, mNonBlock, mTail, mLogMask, mPid, mStart); - times.push_back(entry); + times.push_front(entry); } client->incRef(); diff --git a/logd/LogTimes.h b/logd/LogTimes.h index 783bce675..39bcdd4e6 100644 --- a/logd/LogTimes.h +++ b/logd/LogTimes.h @@ -20,8 +20,10 @@ #include #include #include + +#include + #include -#include #include class LogReader; @@ -107,6 +109,6 @@ public: static int FilterSecondPass(const LogBufferElement *element, void *me); }; -typedef android::List LastLogTimes; +typedef std::list LastLogTimes; -#endif +#endif // _LOGD_LOG_TIMES_H__