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.hxx | |
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.hxx')
-rw-r--r-- | src/SongFilter.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx index 8801f35ea..ba5433df8 100644 --- a/src/SongFilter.hxx +++ b/src/SongFilter.hxx @@ -76,8 +76,8 @@ public: return fold_case; } - const std::string &GetValue() const { - return value; + const char *GetValue() const { + return value.c_str(); } gcc_pure gcc_nonnull(2) @@ -149,11 +149,11 @@ public: bool HasOtherThanBase() const; /** - * Returns the "base" specification (if there is one) or an - * empty string. + * Returns the "base" specification (if there is one) or + * nullptr. */ gcc_pure - std::string GetBase() const; + const char *GetBase() const; }; /** |