mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-20 23:45:31 -04:00
Signed-off-by: lovechinamo <wangdongqi2@huawei.com>
Changes to be committed:
This commit is contained in:
@@ -50,8 +50,8 @@ namespace MiscServices {
|
||||
int32_t Stop(sptr<InputClientStub> &client);
|
||||
|
||||
void displayOptionalInputMethod(MessageParcel& data) override;
|
||||
int32_t getDisplayMode(int32_t &retMode) override;
|
||||
int32_t getKeyboardWindowHeight(int32_t &retHeight) 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<InputMethodProperty*> *properties) override;
|
||||
int32_t listInputMethod(std::vector<InputMethodProperty*> *properties) override;
|
||||
|
||||
@@ -255,7 +255,7 @@ namespace MiscServices {
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
int32_t InputMethodSystemAbilityProxy::getDisplayMode(int32_t &retMode)
|
||||
int32_t InputMethodSystemAbilityProxy::getDisplayMode(int32_t *retMode)
|
||||
{
|
||||
MessageParcel data, reply;
|
||||
MessageOption option;
|
||||
@@ -274,13 +274,13 @@ namespace MiscServices {
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (!reply.ReadInt32(retMode)) {
|
||||
if (!reply.ReadInt32(*retMode)) {
|
||||
return ERROR_STATUS_BAD_VALUE;
|
||||
}
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
int32_t InputMethodSystemAbilityProxy::getKeyboardWindowHeight(int32_t &retHeight)
|
||||
int32_t InputMethodSystemAbilityProxy::getKeyboardWindowHeight(int32_t *retHeight)
|
||||
{
|
||||
MessageParcel data, reply;
|
||||
MessageOption option;
|
||||
@@ -299,7 +299,7 @@ namespace MiscServices {
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (!reply.ReadInt32(retHeight)) {
|
||||
if (!reply.ReadInt32(*retHeight)) {
|
||||
return ERROR_STATUS_BAD_VALUE;
|
||||
}
|
||||
return NO_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user