diff --git a/frameworks/inputmethod_ability/src/event_target.cpp b/frameworks/inputmethod_ability/src/event_target.cpp index bd50e02..fc83bcc 100644 --- a/frameworks/inputmethod_ability/src/event_target.cpp +++ b/frameworks/inputmethod_ability/src/event_target.cpp @@ -22,6 +22,7 @@ namespace OHOS { namespace MiscServices { struct EventListener { + int LISTENER_TYPTE_MAX_LENGTH = 64; char type[LISTENER_TYPTE_MAX_LENGTH] = { 0 }; bool isOnce = false; napi_ref handlerRef = nullptr; diff --git a/services/src/peruser_session.cpp b/services/src/peruser_session.cpp index e8253c3..f039367 100644 --- a/services/src/peruser_session.cpp +++ b/services/src/peruser_session.cpp @@ -43,7 +43,6 @@ namespace MiscServices { { userId_ = userId; msgId_ = msgId; - imsChannel = nullptr; } RemoteObjectDeathRecipient::~RemoteObjectDeathRecipient() diff --git a/services/src/peruser_setting.cpp b/services/src/peruser_setting.cpp index ee60d2c..574d921 100644 --- a/services/src/peruser_setting.cpp +++ b/services/src/peruser_setting.cpp @@ -12,7 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + +#include "unistd.h" // usleep #include "peruser_setting.h" #include "platform.h" #include "utils.h"