* @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
return 0;
}
- if (removeAppProfileData(pkgId, NULL) != PROFILE_ERROR_NONE) {
+ if (removeAppProfileData(pkgId) != PROFILE_ERROR_NONE) {
_ERR("Failed to remove [%s] profile data", pkgId);
}
}
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);