[cleanup] Fix a clang-tidy warning
const parameters can't be moved but only get copied - removed const Bug: 153704006 Test: builds & boots Change-Id: If7e2250325bf1bc498afd3539f60bcb075a1d43b
This commit is contained in:
parent
8cab9b6b24
commit
f8987c393d
1 changed files with 4 additions and 3 deletions
|
@ -26,6 +26,8 @@
|
|||
|
||||
#include <android-base/unique_fd.h>
|
||||
|
||||
#include <utility>
|
||||
|
||||
namespace android {
|
||||
|
||||
/*
|
||||
|
@ -438,9 +440,8 @@ private:
|
|||
struct MessageEnvelope {
|
||||
MessageEnvelope() : uptime(0) { }
|
||||
|
||||
MessageEnvelope(nsecs_t u, const sp<MessageHandler> h,
|
||||
const Message& m) : uptime(u), handler(h), message(m) {
|
||||
}
|
||||
MessageEnvelope(nsecs_t u, sp<MessageHandler> h, const Message& m)
|
||||
: uptime(u), handler(std::move(h)), message(m) {}
|
||||
|
||||
nsecs_t uptime;
|
||||
sp<MessageHandler> handler;
|
||||
|
|
Loading…
Reference in a new issue