Fix unqualified-std-cast-call compiler warning
Context: https://reviews.llvm.org/D119670
Test: presubmit
Change-Id: I2dc74666bfc3590957526382e3347e0d15564452
diff --git a/usb/MonitorFfs.cpp b/usb/MonitorFfs.cpp
index 717e6a7..f021e96 100644
--- a/usb/MonitorFfs.cpp
+++ b/usb/MonitorFfs.cpp
@@ -62,9 +62,9 @@
if (addEpollFd(epollFd, eventFd) == -1)
abort();
- mEpollFd = move(epollFd);
- mInotifyFd = move(inotifyFd);
- mEventFd = move(eventFd);
+ mEpollFd = std::move(epollFd);
+ mInotifyFd = std::move(inotifyFd);
+ mEventFd = std::move(eventFd);
gadgetPullup = false;
}
diff --git a/usb/UsbOverheatEvent.cpp b/usb/UsbOverheatEvent.cpp
index a80f8b2..8b47d67 100644
--- a/usb/UsbOverheatEvent.cpp
+++ b/usb/UsbOverheatEvent.cpp
@@ -88,9 +88,9 @@
abort();
}
- epoll_fd_ = move(epollFd);
- timer_fd_ = move(timerFd);
- event_fd_ = move(eventFd);
+ epoll_fd_ = std::move(epollFd);
+ timer_fd_ = std::move(timerFd);
+ event_fd_ = std::move(eventFd);
monitor_ = unique_ptr<thread>(new thread(this->monitorThread, this));
registerListener();