Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / utils / manifest_util.cc
index 23b81e5..9f709bc 100644 (file)
@@ -9,12 +9,12 @@
 #include <pkgmgr-info.h>
 #include <tzplatform_config.h>
 
-#include <boost/filesystem/path.hpp>
+#include <filesystem>
 #include <string>
 
 #include "common/utils/pkgmgr_query.h"
 
-namespace bf = boost::filesystem;
+namespace fs = std::filesystem;
 
 namespace {
 
@@ -61,7 +61,7 @@ int PkgmgrAppInfoCallback(const pkgmgrinfo_appinfo_h handle,
 
 namespace common_installer {
 
-bf::path GetManifestLocation(const std::string& pkgid,
+fs::path GetManifestLocation(const std::string& pkgid,
                              uid_t uid,
                              bool is_readonly) {
   PkgQueryInterface pkg_query(pkgid, uid);
@@ -69,8 +69,8 @@ bf::path GetManifestLocation(const std::string& pkgid,
     uid = tzplatform_getuid(TZ_SYS_GLOBALAPP_USER);
     is_readonly = pkg_query.IsReadonlyPackage();
   }
-  bf::path xml_path = bf::path(getUserManifestPath(uid, is_readonly))
-                      / bf::path(pkgid.c_str());
+  fs::path xml_path = fs::path(getUserManifestPath(uid, is_readonly))
+                      / fs::path(pkgid.c_str());
   xml_path += ".xml";
 
   return xml_path;