Set default value (NULL) for removeAllProfile accepted/tizen/8.0/unified/20231109.181656
authorWoongsuk Cho <ws77.cho@samsung.com>
Thu, 9 Nov 2023 01:58:58 +0000 (10:58 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Thu, 9 Nov 2023 02:00:31 +0000 (11:00 +0900)
NativeLauncher/inc/profile_common.h
NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc
NativeLauncher/tool/dotnettool.cc

index 87329be..00be818 100644 (file)
@@ -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
index 25d2c4e..48e0ed3 100644 (file)
@@ -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);
        }
 
index 0afa2ff..4343b49 100644 (file)
@@ -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);