diff --git a/common/include/input_hub.cpp b/common/include/input_hub.cpp index e24c3b1..5a75651 100644 --- a/common/include/input_hub.cpp +++ b/common/include/input_hub.cpp @@ -44,9 +44,10 @@ const uint32_t SLEEP_TIME_US = 100 * 1000; const std::string MOUSE_NODE_KEY = "mouse"; } -InputHub::InputHub(bool isPluginMonitor) : epollFd_(-1), iNotifyFd_(-1), inputWd_(-1), isPluginMonitor_(isPluginMonitor), - needToScanDevices_(true), mPendingEventItems{}, pendingEventCount_(0), pendingEventIndex_(0), pendingINotify_(false), - deviceChanged_(false), inputTypes_(0), isStartCollectEvent_(false), isStartCollectHandler_(false) +InputHub::InputHub(bool isPluginMonitor) : epollFd_(-1), iNotifyFd_(-1), inputWd_(-1), + isPluginMonitor_(isPluginMonitor), needToScanDevices_(true), mPendingEventItems{}, + pendingEventCount_(0), pendingEventIndex_(0), pendingINotify_(false), deviceChanged_(false), + inputTypes_(0), isStartCollectEvent_(false), isStartCollectHandler_(false) { Initialize(); } diff --git a/common/include/input_hub.h b/common/include/input_hub.h index f96fa41..4d31827 100644 --- a/common/include/input_hub.h +++ b/common/include/input_hub.h @@ -75,7 +75,7 @@ public: int32_t absYIndex; }; - InputHub(bool isPluginMonitor); + explicit InputHub(bool isPluginMonitor); ~InputHub(); size_t StartCollectInputEvents(RawEvent *buffer, size_t bufferSize); size_t StartCollectInputHandler(InputDeviceEvent *buffer, size_t bufferSize);