From: hb.min Date: Tue, 9 Apr 2013 16:42:18 +0000 (+0900) Subject: Remove build warning and add temporary getter of privacy name X-Git-Tag: accepted/tizen_2.1/20130425.034849~115^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=324392b9e4496702028f0d0b1900a1a439febcbe;p=framework%2Fosp%2Fappfw.git Remove build warning and add temporary getter of privacy name Change-Id: Icf9d5d8a2f01024b582a16447a6b2a52bf9a58e1 Signed-off-by: hb.min --- diff --git a/src/security/FSec_PrivacyInfoImpl.cpp b/src/security/FSec_PrivacyInfoImpl.cpp index b445db8..e929e6a 100755 --- a/src/security/FSec_PrivacyInfoImpl.cpp +++ b/src/security/FSec_PrivacyInfoImpl.cpp @@ -76,7 +76,12 @@ _PrivacyInfoImpl::SetEnabled(bool enable) String _PrivacyInfoImpl::GetDisplayName(void) const { - return __privacyId; + String privacyURI = L"http://tizen.org/privacy/"; + String displayName; + + __privacyId.SubString(privacyURI.GetLength(), displayName); + + return displayName; } String diff --git a/src/security/FSec_PrivacyManagerImpl.cpp b/src/security/FSec_PrivacyManagerImpl.cpp index 7944b4e..1d333a6 100755 --- a/src/security/FSec_PrivacyManagerImpl.cpp +++ b/src/security/FSec_PrivacyManagerImpl.cpp @@ -54,7 +54,6 @@ _PrivacyManagerImpl::GetInstance(PrivacyManager& privacyManager) bool GetPrivacyAppPackageListNCallback(const char *package_id, void* user_data) { - result r = E_SUCCESS; ArrayList* pList = static_cast < ArrayList* >(user_data); pList->Add(new String(package_id));