diff --git a/base/include/pubdef.h b/base/include/pubdef.h index 7df8547cec0ab06054e5d249939f4b3d9c091028..cb02bd63cb3f1c61768cb4360f5ce48017095203 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))