lib/icu/Collate: pass std::string_view
This commit is contained in:
@@ -199,7 +199,7 @@ gcc_pure
|
||||
static bool
|
||||
directory_cmp(const Directory &a, const Directory &b) noexcept
|
||||
{
|
||||
return IcuCollate(a.path.c_str(), b.path.c_str()) < 0;
|
||||
return IcuCollate(a.path, b.path) < 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -96,7 +96,7 @@ song_cmp(const Song &a, const Song &b) noexcept
|
||||
return ret < 0;
|
||||
|
||||
/* still no difference? compare file name */
|
||||
return IcuCollate(a.filename.c_str(), b.filename.c_str()) < 0;
|
||||
return IcuCollate(a.filename, b.filename) < 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user