From 8d56ae3ba32fb47495805bd4aed5946ca6387484 Mon Sep 17 00:00:00 2001 From: zhouke Date: Tue, 30 Aug 2022 14:33:26 +0800 Subject: [PATCH] modify.Signed-off-by: . Signed-off-by: zhouke --- uitest/core/window_operator.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/uitest/core/window_operator.cpp b/uitest/core/window_operator.cpp index 3a40b0c..d54a9d6 100644 --- a/uitest/core/window_operator.cpp +++ b/uitest/core/window_operator.cpp @@ -39,7 +39,7 @@ namespace OHOS::uitest { std::string_view message; }; - static const Operational operations[28] = { + static const Operational g_operations[28] = { {MOVETO, FULLSCREEN, false, INDEX_ZERO, "Fullscreen window can not move"}, {MOVETO, SPLIT_PRIMARY, false, INDEX_ZERO, "SPLIT_PRIMARY window can not move"}, {MOVETO, SPLIT_SECONDARY, false, INDEX_ZERO, "SPLIT_SECONDARY window can not move"}, @@ -72,13 +72,13 @@ 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++) { - if (operations[dex].action == action && operations[dex].windowMode == mode) { - if (operations[dex].support) { - index = operations[dex].index; + for (auto dex = 0; dex < sizeof(g_operations) / sizeof(Operational); dex++) { + if (g_operations[dex].action == action && g_operations[dex].windowMode == mode) { + if (g_operations[dex].support) { + index = g_operations[dex].index; return true; } else { - out.exception_ = ApiCallErr(ErrCode::USAGE_ERROR, operations[dex].message); + out.exception_ = ApiCallErr(ErrCode::USAGE_ERROR, g_operations[dex].message); return false; } }