From: Woongsuk Cho Date: Thu, 9 Nov 2023 01:58:58 +0000 (+0900) Subject: Set default value (NULL) for removeAllProfile X-Git-Tag: accepted/tizen/8.0/unified/20231109.181656^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fdotnet%2Flauncher.git;a=commitdiff_plain;h=4c5a2e19bbf73fc0475c01f6181f6cba87700ed2 Set default value (NULL) for removeAllProfile --- diff --git a/NativeLauncher/inc/profile_common.h b/NativeLauncher/inc/profile_common.h index 87329be..00be818 100644 --- a/NativeLauncher/inc/profile_common.h +++ b/NativeLauncher/inc/profile_common.h @@ -31,7 +31,7 @@ typedef enum { * @param[in] pkgId package id * @return profile_error_e */ -profile_error_e removeAppProfileData(const std::string& pkgId, void *user_data); +profile_error_e removeAppProfileData(const std::string& pkgId, void *user_data = NULL); /** * @brief remove all app profile data diff --git a/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc b/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc index 25d2c4e..48e0ed3 100644 --- a/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc +++ b/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc @@ -57,7 +57,7 @@ extern "C" int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr doc, const char* pkgId) return 0; } - if (removeAppProfileData(pkgId, NULL) != PROFILE_ERROR_NONE) { + if (removeAppProfileData(pkgId) != PROFILE_ERROR_NONE) { _ERR("Failed to remove [%s] profile data", pkgId); } diff --git a/NativeLauncher/tool/dotnettool.cc b/NativeLauncher/tool/dotnettool.cc index 0afa2ff..4343b49 100644 --- a/NativeLauncher/tool/dotnettool.cc +++ b/NativeLauncher/tool/dotnettool.cc @@ -394,7 +394,7 @@ int main(int argc, char* argv[]) } while (it != args.end()) { std::string pkg = std::string(*it); - if (removeAppProfileData(pkg, NULL) != PROFILE_ERROR_NONE) { + if (removeAppProfileData(pkg) != PROFILE_ERROR_NONE) { _SERR("Failed to remove [%s] profile data", pkg.c_str()); } it = args.erase(it);