From 761da36ffa1d2fa3f5588bacfeba771ceb8baf2e Mon Sep 17 00:00:00 2001 From: gaoxiang Date: Tue, 5 Jul 2022 11:48:04 +0800 Subject: [PATCH] check some error Signed-off-by: gaoxiang --- services/src/input_method_system_ability.cpp | 5 +++-- services/src/message.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/services/src/input_method_system_ability.cpp b/services/src/input_method_system_ability.cpp index 3ca16d6..a26972a 100644 --- a/services/src/input_method_system_ability.cpp +++ b/services/src/input_method_system_ability.cpp @@ -236,7 +236,7 @@ namespace MiscServices { auto callback = [this, imeId]() { StartInputService(imeId); }; serviceHandler_->PostTask(callback, INIT_INTERVAL); } - return isStartSuccess; + return isStartSuccess; } void InputMethodSystemAbility::StopInputService(std::string imeId) @@ -930,7 +930,8 @@ namespace MiscServices { IMSA_HILOGI("InputMethodSystemAbility::OnSwitchInputMethod DefaultIme : %{public}s, TargetIme : %{public}s", defaultIme.c_str(), targetIme.c_str()); if (defaultIme != targetIme) { - IMSA_HILOGI("InputMethodSystemAbility::OnSwitchInputMethod DefaultIme is not target! Start Switching IME !"); + IMSA_HILOGI("InputMethodSystemAbility::OnSwitchInputMethod DefaultIme is " + "not target! Start Switching IME !"); StopInputService(defaultIme); if (!StartInputService(targetIme)) { return ErrorCode::ERROR_IME_START_FAILED; diff --git a/services/src/message.cpp b/services/src/message.cpp index 9421575..1713e45 100644 --- a/services/src/message.cpp +++ b/services/src/message.cpp @@ -30,10 +30,10 @@ namespace MiscServices { } } - Message::Message(int32_t msgId, MessageParcel *msgContent, MessageParcel *msgReply) : Message(msgId, msgContent) - { - msgReply_ = msgReply; - } + Message::Message(int32_t msgId, MessageParcel *msgContent, MessageParcel *msgReply) : Message(msgId, msgContent) + { + msgReply_ = msgReply; + } /*! Constructor \param msg a source message */