mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-13 19:56:40 +00:00
File: Clean up directory_iterator construction, preserve pattern.
FatFs requires pattern pointer to be stable during search.
This commit is contained in:
@@ -97,6 +97,7 @@ class directory_iterator {
|
||||
};
|
||||
|
||||
std::shared_ptr<Impl> impl;
|
||||
const path pattern;
|
||||
|
||||
friend bool operator!=(const directory_iterator& lhs, const directory_iterator& rhs);
|
||||
|
||||
@@ -108,8 +109,8 @@ public:
|
||||
using iterator_category = std::input_iterator_tag;
|
||||
|
||||
directory_iterator() noexcept { };
|
||||
directory_iterator(const std::filesystem::path::value_type* path, const std::filesystem::path::value_type* wild);
|
||||
|
||||
directory_iterator(std::filesystem::path path, std::filesystem::path wild);
|
||||
|
||||
~directory_iterator() { }
|
||||
|
||||
directory_iterator& operator++();
|
||||
|
Reference in New Issue
Block a user