Use boost::filesystem::path correctly

This commit is contained in:
Simon Fels 2017-05-05 18:45:52 +02:00
commit 8c1247c0a8
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ anbox::cmds::Launch::Launch()
const auto snap_path = utils::get_env_value("SNAP");
if (!snap_path.empty()) {
const auto resource_path = fs::path(snap_path) / "usr" / "share" / "anbox";
SystemConfiguration::instance().set_resource_path(resource_path.string());
SystemConfiguration::instance().set_resource_path(resource_path);
}
std::shared_ptr<ui::SplashScreen> ss;

View file

@ -31,7 +31,7 @@ class SystemConfiguration {
virtual ~SystemConfiguration() = default;
void set_data_path(const std::string &path);
void set_resource_path(const boost::filesystem &path);
void set_resource_path(const boost::filesystem::path &path);
boost::filesystem::path data_dir() const;
std::string rootfs_dir() const;