summaryrefslogtreecommitdiff
path: root/src/database/file_gatherer.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-12-07 16:57:05 +1100
committerjacqueline <me@jacqueline.id.au>2023-12-07 17:00:30 +1100
commit3f7f199cb940c8d5f6d48f77fd59971adffe49ef (patch)
treeaa22162e46c5e9ccce4c7ee8537b493f437664d9 /src/database/file_gatherer.cpp
parent009f69c929eb1d1b65d75b0937fbf3b8de5d9148 (diff)
downloadtangara-fw-3f7f199cb940c8d5f6d48f77fd59971adffe49ef.tar.gz
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
Diffstat (limited to 'src/database/file_gatherer.cpp')
-rw-r--r--src/database/file_gatherer.cpp10
1 files changed, 5 insertions, 5 deletions
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<void(const std::pmr::string&, const FILINFO&)> cb) -> void {
- std::pmr::deque<std::pmr::string> to_explore(&memory::kSpiRamResource);
+ const std::string& root,
+ std::function<void(const std::string&, const FILINFO&)> cb) -> void {
+ std::deque<std::string> 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<const TCHAR*>(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;