song/Filter: pass std::string_view to WithoutBasePrefix()
This commit is contained in:
@@ -467,9 +467,8 @@ SongFilter::GetBase() const noexcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
SongFilter
|
SongFilter
|
||||||
SongFilter::WithoutBasePrefix(const char *_prefix) const noexcept
|
SongFilter::WithoutBasePrefix(const std::string_view prefix) const noexcept
|
||||||
{
|
{
|
||||||
const StringView prefix(_prefix);
|
|
||||||
SongFilter result;
|
SongFilter result;
|
||||||
|
|
||||||
for (const auto &i : and_filter.GetItems()) {
|
for (const auto &i : and_filter.GetItems()) {
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <string_view>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Special value for the db_selection_print() sort parameter.
|
* Special value for the db_selection_print() sort parameter.
|
||||||
@@ -105,7 +106,7 @@ public:
|
|||||||
* from all #LOCATE_TAG_BASE_TYPE items. This is used to
|
* from all #LOCATE_TAG_BASE_TYPE items. This is used to
|
||||||
* filter songs in mounted databases.
|
* filter songs in mounted databases.
|
||||||
*/
|
*/
|
||||||
SongFilter WithoutBasePrefix(const char *prefix) const noexcept;
|
SongFilter WithoutBasePrefix(std::string_view prefix) const noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user