fix warning

Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
zhouyongfei
2021-10-08 17:57:33 +08:00
parent 716ed132be
commit 5d80dc7a92
18 changed files with 258 additions and 376 deletions
@@ -24,7 +24,7 @@ using namespace MessageID;
sptr<InputMethodController> InputMethodController::instance_;
std::mutex InputMethodController::instanceLock_;
InputMethodController::InputMethodController()
InputMethodController::InputMethodController() : stop_(false)
{
IMSA_HILOGI("InputMethodController structure");
Initialize();
@@ -35,6 +35,7 @@ using namespace MessageID;
if (msgHandler != nullptr) {
delete msgHandler;
msgHandler = nullptr;
stop_ = false;
}
}
@@ -97,7 +98,7 @@ using namespace MessageID;
void InputMethodController::WorkThread()
{
while(1) {
while (!stop_) {
Message *msg = msgHandler->GetMessage();
switch (msg->msgId_) {
case MSG_ID_INSERT_CHAR: {