diff options
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 |
