diff --git a/include/transport/util.h b/include/transport/util.h index 490724bf..5e7e4f4d 100644 --- a/include/transport/util.h +++ b/include/transport/util.h @@ -33,7 +33,7 @@ namespace Transport { namespace Util { -void createDirectories(Transport::Config *config, const boost::filesystem::path& ph); +void createDirectories(Transport::Config *config, boost::filesystem::path ph); void removeEverythingOlderThan(const std::vector &dirs, time_t t); diff --git a/src/util.cpp b/src/util.cpp index b8c3adc5..d96da239 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -49,7 +49,7 @@ namespace Transport { namespace Util { -void createDirectories(Transport::Config *config, const boost::filesystem::path& ph) { +void createDirectories(Transport::Config *config, path ph) { if (ph.empty() || exists(ph)) { return; }