From eb86fdfbea6254d6966e59d80b43af3e5152fe3f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Jun 2015 23:14:40 +0200 Subject: SongFilter: return "const char *" instead of std::string --- src/SongFilter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SongFilter.cxx') diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx index d979267ef..5e24b143a 100644 --- a/src/SongFilter.cxx +++ b/src/SongFilter.cxx @@ -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; } -- cgit v1.2.3