diff --git a/interfaces/common/src/common_func.cpp b/interfaces/common/src/common_func.cpp index 1218cf70e07d751677c93060f4cec5605fcf0a44..75c9a466ff758d47b7b47b3a8fcffafc83e8d65f 100644 --- a/interfaces/common/src/common_func.cpp +++ b/interfaces/common/src/common_func.cpp @@ -43,7 +43,7 @@ const std::string MEDIA_AUTHORITY = "file://media"; std::string g_bundleName = ""; std::mutex g_globalMutex; } -static sptr GetBundleMgrProxy() +static sptr GetBundleMgrProxy() { sptr systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); @@ -58,7 +58,7 @@ static sptr GetBundleMgrProxy() return nullptr; } - return iface_cast(remoteObject); + return iface_cast(remoteObject); } bool CommonFunc::GetDirByBundleNameAndAppIndex(const std::string &bundleName, int32_t appIndex, std::string &dirName) @@ -78,7 +78,7 @@ bool CommonFunc::GetDirByBundleNameAndAppIndex(const std::string &bundleName, in string CommonFunc::GetSelfBundleName() { - sptr bundleMgrProxy = GetBundleMgrProxy(); + sptr bundleMgrProxy = GetBundleMgrProxy(); if (!bundleMgrProxy) { LOGE("GetSelfBundleName: bundle mgr proxy is nullptr."); return "";