From 616ac0ae3db02caae840cb7c64f5493616d34412 Mon Sep 17 00:00:00 2001 From: Cai Xincheng Date: Thu, 16 May 2024 09:15:18 +0800 Subject: [PATCH] changed namespace Signed-off-by: Cai Xincheng --- frameworks/js/napi/inc/argument_check.h | 4 +++- frameworks/js/napi/src/argument_check.cpp | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frameworks/js/napi/inc/argument_check.h b/frameworks/js/napi/inc/argument_check.h index aee25b6..d2c2e88 100644 --- a/frameworks/js/napi/inc/argument_check.h +++ b/frameworks/js/napi/inc/argument_check.h @@ -11,7 +11,7 @@ namespace OHOS { namespace Security { namespace Asset { - +namespace { std::vector critical_label_tags = { SEC_ASSET_TAG_DATA_LABEL_CRITICAL_1, SEC_ASSET_TAG_DATA_LABEL_CRITICAL_2, @@ -78,6 +78,8 @@ bool CheckAssetTagValidity(napi_env env, const std::vector &attrs, co bool CheckAssetValueValidity(napi_env env, const std::vector &attrs); +} + } // Asset } // Security } // OHOS diff --git a/frameworks/js/napi/src/argument_check.cpp b/frameworks/js/napi/src/argument_check.cpp index 9915ea6..a4de56f 100644 --- a/frameworks/js/napi/src/argument_check.cpp +++ b/frameworks/js/napi/src/argument_check.cpp @@ -18,6 +18,7 @@ namespace OHOS { namespace Security { namespace Asset { +namespace { #define MAX_MESSAGE_LEN 128 #define MIN_ARRAY_SIZE 0 @@ -340,6 +341,7 @@ bool CheckAssetValueValidity(napi_env env, const std::vector &attrs) return true; } +} } // Asset } // Security } // OHOS \ No newline at end of file