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 87329be7f424bd2c75897ebd668d47fbf694c38e..00be81844cd21ef12fbf6725f90d0eaf36180021 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 25d2c4e2b9648aa07374c740b3106641f0f20947..48e0ed30ead61c259f626887b73768b37074b43f 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 0afa2ff4d5ce2cc162e75a628c701fef326ac5d9..4343b49ae5df73f2d790b4133509228bffd1f7f5 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);