From dd7c1d899ac0e265ad4e56e26353884903fa4d6d Mon Sep 17 00:00:00 2001 From: zhouyongfei Date: Fri, 17 Dec 2021 09:15:29 +0800 Subject: [PATCH] refresh Signed-off-by: zhouyongfei --- frameworks/inputmethod_ability/src/event_target.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/inputmethod_ability/src/event_target.cpp b/frameworks/inputmethod_ability/src/event_target.cpp index fc83bcc..f769c71 100644 --- a/frameworks/inputmethod_ability/src/event_target.cpp +++ b/frameworks/inputmethod_ability/src/event_target.cpp @@ -22,7 +22,7 @@ namespace OHOS { namespace MiscServices { struct EventListener { - int LISTENER_TYPTE_MAX_LENGTH = 64; + static const int LISTENER_TYPTE_MAX_LENGTH = 64; char type[LISTENER_TYPTE_MAX_LENGTH] = { 0 }; bool isOnce = false; napi_ref handlerRef = nullptr;