From 7455557387b410819b8278d6db8a515d0f4db853 Mon Sep 17 00:00:00 2001 From: lovechinamo Date: Wed, 1 Jun 2022 19:07:58 +0800 Subject: [PATCH] Signed-off-by: lovechinamo Changes to be committed: --- .../inputmethod_ability/include/input_method_core_proxy.h | 2 +- services/include/input_method_system_ability.h | 2 +- services/include/peruser_setting.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frameworks/inputmethod_ability/include/input_method_core_proxy.h b/frameworks/inputmethod_ability/include/input_method_core_proxy.h index 7f1f09b..eec719f 100644 --- a/frameworks/inputmethod_ability/include/input_method_core_proxy.h +++ b/frameworks/inputmethod_ability/include/input_method_core_proxy.h @@ -43,7 +43,7 @@ namespace MiscServices { bool showKeyboard(const sptr& inputDataChannel) override; bool hideKeyboard(int32_t flags) override; int32_t setKeyboardType(const KeyboardType& type) override; - int32_t getKeyboardWindowHeight(int32_t retHeight) override; + int32_t getKeyboardWindowHeight(int32_t &retHeight) override; int32_t InitInputControlChannel(sptr &inputControlChannel) override; void SetClientState(bool state) override; void StopInputService(std::string imeId) override; diff --git a/services/include/input_method_system_ability.h b/services/include/input_method_system_ability.h index 9f434a8..1bf67a7 100644 --- a/services/include/input_method_system_ability.h +++ b/services/include/input_method_system_ability.h @@ -47,7 +47,7 @@ namespace MiscServices { int32_t OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override; - int32_t getDisplayMode(int32_t retMode) override; + int32_t getDisplayMode(int32_t &retMode) override; int32_t getKeyboardWindowHeight(int32_t retHeight) override; int32_t getCurrentKeyboardType(KeyboardType *retType) override; int32_t listInputMethodEnabled(std::vector *properties) override; diff --git a/services/include/peruser_setting.h b/services/include/peruser_setting.h index 50546ab..c69298c 100644 --- a/services/include/peruser_setting.h +++ b/services/include/peruser_setting.h @@ -39,8 +39,8 @@ namespace MiscServices { InputMethodSetting *GetInputMethodSetting(); InputMethodProperty *GetInputMethodProperty(const std::u16string& imeId); - int32_t OnPackageAdded(std::u16string& packageName, bool isSecurityIme); - int32_t OnPackageRemoved(std::u16string& packageName, bool isSecurityIme); + int32_t OnPackageAdded(std::u16string& packageName, bool &isSecurityIme); + int32_t OnPackageRemoved(std::u16string& packageName, bool &isSecurityIme); int32_t OnSettingChanged(const std::u16string& key, const std::u16string& value); void OnAdvanceToNext(); void OnUserLocked();