mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-18 17:24:37 -04:00
Signed-off-by: lovechinamo <wangdongqi2@huawei.com>
Changes to be committed:
This commit is contained in:
@@ -308,7 +308,7 @@ namespace MiscServices {
|
||||
if (code) {
|
||||
return code;
|
||||
}
|
||||
*retHeight = reply.ReadInt32();
|
||||
retHeight = reply.ReadInt32();
|
||||
return ErrorCode::NO_ERROR;
|
||||
}
|
||||
} // namespace MiscServices
|
||||
|
||||
@@ -274,7 +274,7 @@ namespace MiscServices {
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (!reply.ReadInt32(*retMode)) {
|
||||
if (!reply.ReadInt32(retMode)) {
|
||||
return ERROR_STATUS_BAD_VALUE;
|
||||
}
|
||||
return NO_ERROR;
|
||||
@@ -299,7 +299,7 @@ namespace MiscServices {
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (!reply.ReadInt32(*retHeight)) {
|
||||
if (!reply.ReadInt32(retHeight)) {
|
||||
return ERROR_STATUS_BAD_VALUE;
|
||||
}
|
||||
return NO_ERROR;
|
||||
|
||||
@@ -78,8 +78,8 @@ namespace MiscServices {
|
||||
*/
|
||||
int PerUserSetting::OnPackageAdded(std::u16string& packageName, bool &isSecurityIme)
|
||||
{
|
||||
if (*isSecurityIme) {
|
||||
*isSecurityIme = false;
|
||||
if (isSecurityIme) {
|
||||
isSecurityIme = false;
|
||||
}
|
||||
std::u16string imeId = GetImeId(packageName);
|
||||
if (imeId.size()) {
|
||||
@@ -97,8 +97,8 @@ namespace MiscServices {
|
||||
}
|
||||
inputMethodProperties.push_back(property);
|
||||
if (CheckIfSecurityIme(*property)) {
|
||||
if (*isSecurityIme) {
|
||||
*isSecurityIme = true;
|
||||
if (isSecurityIme) {
|
||||
isSecurityIme = true;
|
||||
}
|
||||
return ErrorCode::NO_ERROR;
|
||||
}
|
||||
@@ -128,8 +128,8 @@ namespace MiscServices {
|
||||
*/
|
||||
int PerUserSetting::OnPackageRemoved(std::u16string& packageName, bool &isSecurityIme)
|
||||
{
|
||||
if (*isSecurityIme) {
|
||||
*isSecurityIme = false;
|
||||
if (isSecurityIme) {
|
||||
isSecurityIme = false;
|
||||
}
|
||||
std::u16string imeId = GetImeId(packageName);
|
||||
if (!imeId.size()) {
|
||||
@@ -151,8 +151,8 @@ namespace MiscServices {
|
||||
}
|
||||
}
|
||||
if (securityFlag) {
|
||||
if (*isSecurityIme) {
|
||||
*isSecurityIme = true;
|
||||
if (isSecurityIme) {
|
||||
isSecurityIme = true;
|
||||
}
|
||||
return ErrorCode::NO_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user