From 44bb30f06480a00e98e115480eac48345669200f Mon Sep 17 00:00:00 2001 From: cuiruibin Date: Thu, 12 Jun 2025 15:09:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E8=8E=B7=E5=8F=96=E5=88=B0=E7=9A=84BM?= =?UTF-8?q?S=E5=AF=B9=E8=B1=A1=E4=BB=8E=E5=AD=90=E7=B1=BB=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=88=90=E7=88=B6=E7=B1=BB=20Signed-off-by:=20cuiruib?= =?UTF-8?q?in=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interfaces/common/src/common_func.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/common/src/common_func.cpp b/interfaces/common/src/common_func.cpp index 1218cf70e..75c9a466f 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 ""; -- Gitee