From b97c4c3ccad3c917e2073329e8d1c7b7351e96aa Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 13 Sep 2021 21:30:39 +0200 Subject: Include refactoring --- src/Storage.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Storage.cpp') diff --git a/src/Storage.cpp b/src/Storage.cpp index 3ceb606..2754bc8 100644 --- a/src/Storage.cpp +++ b/src/Storage.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -238,7 +239,7 @@ namespace QuickMedia { void for_files_in_dir(const Path &path, FileIteratorCallback callback) { try { for(auto &p : std::filesystem::directory_iterator(path.data)) { - if(!callback(p.path())) + if(!callback(p.path().string())) break; } } catch(const std::filesystem::filesystem_error &err) { @@ -271,7 +272,7 @@ namespace QuickMedia { }); for(auto &p : paths) { - if(!callback(p.path())) + if(!callback(p.path().string())) break; } } -- cgit v1.2.3