From 312e2c70648959c82e8b7fd1d5c689a637367d7f Mon Sep 17 00:00:00 2001 From: zhouke Date: Thu, 22 Sep 2022 12:02:39 +0800 Subject: [PATCH] =?UTF-8?q?codeCheck=E6=8A=A5=E8=AD=A6=E4=BF=AE=E6=94=B9.S?= =?UTF-8?q?igned-off-by:=20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhouke --- uitest/core/window_operator.cpp | 2 +- uitest/napi/uitest_napi.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uitest/core/window_operator.cpp b/uitest/core/window_operator.cpp index f802e98..4b5a926 100644 --- a/uitest/core/window_operator.cpp +++ b/uitest/core/window_operator.cpp @@ -72,7 +72,7 @@ namespace OHOS::uitest { static bool IsOperational(const WindowAction action, const WindowMode mode, ApiReplyInfo &out, size_t &index) { - for (auto dex = 0; dex < sizeof(OPERATIONS) / sizeof(Operational); dex++) { + for (unsigned long dex = 0; dex < sizeof(OPERATIONS) / sizeof(Operational); dex++) { if (OPERATIONS[dex].action == action && OPERATIONS[dex].windowMode == mode) { if (OPERATIONS[dex].support) { index = OPERATIONS[dex].index; diff --git a/uitest/napi/uitest_napi.cpp b/uitest/napi/uitest_napi.cpp index f4dde49..2c99509 100644 --- a/uitest/napi/uitest_napi.cpp +++ b/uitest/napi/uitest_napi.cpp @@ -255,7 +255,7 @@ namespace OHOS::uitest { if (g_backendObjsAboutToDelete.size() >= BACKEND_OBJ_GC_BATCH) { auto gcCall = ApiCallInfo {.apiId_ = "BackendObjectsCleaner"}; unique_lock lock(g_gcQueueMutex); - for (auto count = 0; count < BACKEND_OBJ_GC_BATCH; count++) { + for (size_t count = 0; count < BACKEND_OBJ_GC_BATCH; count++) { gcCall.paramList_.emplace_back(g_backendObjsAboutToDelete.front()); g_backendObjsAboutToDelete.pop(); }