From 3f7f199cb940c8d5f6d48f77fd59971adffe49ef Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 7 Dec 2023 16:57:05 +1100 Subject: Remove pre-iterator concepts - No more IndexRecord/Result/dbGetPage nonsense - Queue is just track ids - i am so tired and have so much to do --- src/database/file_gatherer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/database/file_gatherer.cpp') diff --git a/src/database/file_gatherer.cpp b/src/database/file_gatherer.cpp index 0809ee0d..f07a1b4d 100644 --- a/src/database/file_gatherer.cpp +++ b/src/database/file_gatherer.cpp @@ -21,13 +21,13 @@ namespace database { static_assert(sizeof(TCHAR) == sizeof(char), "TCHAR must be CHAR"); auto FileGathererImpl::FindFiles( - const std::pmr::string& root, - std::function cb) -> void { - std::pmr::deque to_explore(&memory::kSpiRamResource); + const std::string& root, + std::function cb) -> void { + std::deque to_explore; to_explore.push_back(root); while (!to_explore.empty()) { - std::pmr::string next_path_str = to_explore.front(); + std::string next_path_str = to_explore.front(); const TCHAR* next_path = static_cast(next_path_str.c_str()); FF_DIR dir; @@ -54,7 +54,7 @@ auto FileGathererImpl::FindFiles( // System or hidden file. Ignore it and move on. continue; } else { - std::pmr::string full_path{&memory::kSpiRamResource}; + std::string full_path; full_path += next_path_str; full_path += "/"; full_path += info.fname; -- cgit v1.2.3