aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongFilter.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-06-25 23:14:40 +0200
committerMax Kellermann <max@duempel.org>2015-06-25 23:15:36 +0200
commiteb86fdfbea6254d6966e59d80b43af3e5152fe3f (patch)
treec41d5e1a2b3750ec2c5b34155fbfb6bbdeb0dc5d /src/SongFilter.cxx
parentc7712e2ef0232a39786075dbf6683120cfe5cc0a (diff)
downloadmpd-eb86fdfbea6254d6966e59d80b43af3e5152fe3f.tar.gz
mpd-eb86fdfbea6254d6966e59d80b43af3e5152fe3f.tar.xz
mpd-eb86fdfbea6254d6966e59d80b43af3e5152fe3f.zip
SongFilter: return "const char *" instead of std::string
Diffstat (limited to '')
-rw-r--r--src/SongFilter.cxx4
1 files changed, 2 insertions, 2 deletions
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;
}