SongFilter: return "const char *" instead of std::string

This commit is contained in:
Max Kellermann
2015-06-25 23:14:40 +02:00
parent c7712e2ef0
commit eb86fdfbea
5 changed files with 18 additions and 15 deletions
+2 -2
View File
@@ -300,12 +300,12 @@ SongFilter::HasOtherThanBase() const
return false;
}
std::string
const char *
SongFilter::GetBase() const
{
for (const auto &i : items)
if (i.GetTag() == LOCATE_TAG_BASE_TYPE)
return i.GetValue();
return std::string();
return nullptr;
}