静态成员变量声明在文件开始

Signed-off-by: wangyang2022 <wangyang412@huawei.com>
Change-Id: I3bbfe269e64ef9cc2971f2cb6cac8242109b4b68
This commit is contained in:
wangyang2022
2022-05-31 14:55:52 +08:00
parent 41ff46b850
commit ffef16524c
@@ -30,6 +30,8 @@ constexpr int32_t VISIBILITY_PUBLIC = -1;
const std::string AUTH_APPID = "device_profile_auth";
}
std::shared_ptr<AppExecFwk::EventHandler> TrustGroupManager::trustGroupMgrHandler_;
IMPLEMENT_SINGLE_INSTANCE(TrustGroupManager);
void from_json(const nlohmann::json& jsonObject, GroupInfo& groupInfo)
@@ -41,8 +43,6 @@ void from_json(const nlohmann::json& jsonObject, GroupInfo& groupInfo)
jsonObject.at(FIELD_GROUP_VISIBILITY).get_to(groupInfo.groupVisibility);
}
std::shared_ptr<AppExecFwk::EventHandler> TrustGroupManager::trustGroupMgrHandler_;
void TrustGroupManager::Init()
{
if (InitDeviceAuthService() != ERR_OK) {