[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:
Yurii Zubrytskyi 2020-04-22 15:37:21 -07:00
parent 8cab9b6b24
commit f8987c393d

View file

@ -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;