diff options
author | Max Kellermann <max@duempel.org> | 2015-06-25 23:14:40 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-06-25 23:15:36 +0200 |
commit | eb86fdfbea6254d6966e59d80b43af3e5152fe3f (patch) | |
tree | c41d5e1a2b3750ec2c5b34155fbfb6bbdeb0dc5d /src/SongFilter.cxx | |
parent | c7712e2ef0232a39786075dbf6683120cfe5cc0a (diff) | |
download | mpd-eb86fdfbea6254d6966e59d80b43af3e5152fe3f.tar.gz mpd-eb86fdfbea6254d6966e59d80b43af3e5152fe3f.tar.xz mpd-eb86fdfbea6254d6966e59d80b43af3e5152fe3f.zip |
SongFilter: return "const char *" instead of std::string
Diffstat (limited to 'src/SongFilter.cxx')
-rw-r--r-- | src/SongFilter.cxx | 4 |
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; } |