diff --git a/interfaces/innerkits/appverify/src/provision/provision_verify.cpp b/interfaces/innerkits/appverify/src/provision/provision_verify.cpp index 454efc27038ffeb3caa4190d25cdd455f5aa02ea..e904c91b89b8afcab8639d464d2e361d27fe3151 100644 --- a/interfaces/innerkits/appverify/src/provision/provision_verify.cpp +++ b/interfaces/innerkits/appverify/src/provision/provision_verify.cpp @@ -193,7 +193,7 @@ void ParseValidity(const json& obj, Validity& out) void ParseMetadata(const json& obj, ProvisionInfo& out) { if (IsObjectExist(obj, KEY_BASEAPP_INFO)) { - auto& baseAppInfo = obj[KEY_BASEAPP_INFO]; + const auto& baseAppInfo = obj[KEY_BASEAPP_INFO]; Metadata metadata; metadata.name = KEY_PACKAGE_NAME; GetStringIfExist(baseAppInfo, KEY_PACKAGE_NAME, metadata.value);