修复告警

Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
zhouyongfei
2022-01-28 22:41:00 +08:00
parent 863641c293
commit c52066b74a
4 changed files with 7 additions and 6 deletions
@@ -295,7 +295,8 @@ using namespace MessageID;
return;
}
if (cursorInfo_.left == cursorInfo.left && cursorInfo_.top == cursorInfo.top && cursorInfo_.height == cursorInfo.height) {
if (cursorInfo_.left == cursorInfo.left && cursorInfo_.top == cursorInfo.top
&& cursorInfo_.height == cursorInfo.height) {
return;
}
cursorInfo_ = cursorInfo;
@@ -121,7 +121,7 @@ namespace MiscServices {
NativeValue* nativeString = nullptr;
nativeString = info.argv[ARGC_ZERO];
std::string textString;
std::string textString;
if (!AbilityRuntime::ConvertFromJsValue(engine, nativeString, textString)) {
IMSA_HILOGI("JsInputMethodEngine::OnInsertText Failed to convert parameter to string");
return engine.CreateUndefined();
@@ -146,7 +146,7 @@ namespace MiscServices {
nativeString = info.argv[ARGC_ZERO];
int32_t number;
if(!AbilityRuntime::ConvertFromJsValue(engine, nativeString, number)) {
if (!AbilityRuntime::ConvertFromJsValue(engine, nativeString, number)) {
IMSA_HILOGI("JsInputMethodEngine::OnDeleteForward Failed to convert parameter to string");
return engine.CreateUndefined();
}
@@ -339,7 +339,7 @@ NativeValue* JsInputMethodEngineInit(NativeEngine* engine, NativeValue* exportOb
AbilityRuntime::BindNativeFunction(*engine, *object, "MoveCursor", JsInputMethodEngine::MoveCursor);
AbilityRuntime::BindNativeFunction(*engine, *object, "HideKeyboardSelf", JsInputMethodEngine::HideKeyboardSelf);
AbilityRuntime::BindNativeFunction(*engine, *object, "GetTextBeforeCursor",
JsInputMethodEngine::GetTextBeforeCursor);
JsInputMethodEngine::GetTextBeforeCursor);
AbilityRuntime::BindNativeFunction(*engine, *object, "GetTextAfterCursor", JsInputMethodEngine::GetTextAfterCursor);
AbilityRuntime::BindNativeFunction(*engine, *object, "SendFunctionKey", JsInputMethodEngine::SendFunctionKey);
@@ -18,7 +18,8 @@
namespace OHOS {
namespace MiscServices {
void JsInputMethodEngineListener::RegisterListenerWithType(NativeEngine& engine, std::string type, NativeValue* value)
void JsInputMethodEngineListener::RegisterListenerWithType(NativeEngine& engine,
std::string type, NativeValue* value)
{
// should do type check
if (IfCallbackRegistered(type, value)) {
@@ -20,7 +20,6 @@
#include <thread>
#include <string>
#include "global.h"
#include "input_method_ability.h"
#include "input_method_agent_stub.h"
#include "input_method_core_stub.h"
#include "input_control_channel_stub.h"