mirror of
https://github.com/openharmony/arkXtest.git
synced 2026-07-01 07:47:14 -04:00
codeCheck报警修改.Signed-off-by: <zhouke35@huawei.com>.
Signed-off-by: zhouke <zhouke35@huawei.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -255,7 +255,7 @@ namespace OHOS::uitest {
|
||||
if (g_backendObjsAboutToDelete.size() >= BACKEND_OBJ_GC_BATCH) {
|
||||
auto gcCall = ApiCallInfo {.apiId_ = "BackendObjectsCleaner"};
|
||||
unique_lock<mutex> 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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user