From 25b8e094a0956f99e11e89f25ecead7d56ea4344 Mon Sep 17 00:00:00 2001 From: wujianlin Date: Thu, 1 Aug 2024 14:05:09 +0800 Subject: [PATCH] Clear CodeCheck Issue:https://gitee.com/openharmony/commonlibrary_c_utils/issues/IAH4DE?from=project-issue Signed-off-by: wujianlin --- base/include/pubdef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/include/pubdef.h b/base/include/pubdef.h index 7df8547..cb02bd6 100644 --- a/base/include/pubdef.h +++ b/base/include/pubdef.h @@ -43,9 +43,9 @@ namespace OHOS { #define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a[0]))) // Used to free the space pointed by pointer p -#define FREE_AND_NIL(p) do {if (p) { delete (p); (p) = nullptr;}} while(0) +#define FREE_AND_NIL(p) do {if (p) { delete (p); (p) = nullptr;}} while (0) // Used to free the array space pointed by pointer p -#define FREE_AND_NIL_ARRAY(p) do {if (p) {delete[] (p); (p) = nullptr;}} while(0) +#define FREE_AND_NIL_ARRAY(p) do {if (p) {delete[] (p); (p) = nullptr;}} while (0) // Used to return the maximum of two numbers #define MAX(x, y) (((x) > (y)) ? (x) : (y)) -- Gitee