diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-02-16 15:13:58 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-02-16 15:13:58 +1100 |
| commit | 5866513c532114654c1a0e616be3c64ef0aa92ed (patch) | |
| tree | ad0b034023f18361c72b3ac4f3191583d3367718 /src/database/include | |
| parent | 4509ab8d6e341f7f7d92ac6e9d63ad822fe3441b (diff) | |
| download | tangara-fw-5866513c532114654c1a0e616be3c64ef0aa92ed.tar.gz | |
Move the list of unexplored files into spiram
Diffstat (limited to 'src/database/include')
| -rw-r--r-- | src/database/include/file_gatherer.hpp | 4 | ||||
| -rw-r--r-- | src/database/include/tag_parser.hpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/database/include/file_gatherer.hpp b/src/database/include/file_gatherer.hpp index 66127bb7..685bdb2c 100644 --- a/src/database/include/file_gatherer.hpp +++ b/src/database/include/file_gatherer.hpp @@ -21,7 +21,7 @@ class IFileGatherer { virtual auto FindFiles( const std::string& root, - std::function<void(const std::string&, const FILINFO&)> cb) + std::function<void(std::string_view, const FILINFO&)> cb) -> void = 0; }; @@ -29,7 +29,7 @@ class FileGathererImpl : public IFileGatherer { public: virtual auto FindFiles( const std::string& root, - std::function<void(const std::string&, const FILINFO&)> cb) + std::function<void(std::string_view, const FILINFO&)> cb) -> void override; }; diff --git a/src/database/include/tag_parser.hpp b/src/database/include/tag_parser.hpp index f196c479..966258b5 100644 --- a/src/database/include/tag_parser.hpp +++ b/src/database/include/tag_parser.hpp @@ -16,18 +16,18 @@ namespace database { class ITagParser { public: virtual ~ITagParser() {} - virtual auto ReadAndParseTags(const std::string& path) + virtual auto ReadAndParseTags(std::string_view path) -> std::shared_ptr<TrackTags> = 0; }; class TagParserImpl : public ITagParser { public: TagParserImpl(); - auto ReadAndParseTags(const std::string& path) + auto ReadAndParseTags(std::string_view path) -> std::shared_ptr<TrackTags> override; private: - auto parseNew(const std::string& path) -> std::shared_ptr<TrackTags>; + auto parseNew(std::string_view path) -> std::shared_ptr<TrackTags>; /* * Cache of tags that have already been extracted from files. Ideally this |
