aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongFilter.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-07-28 13:25:12 +0200
committerMax Kellermann <max@duempel.org>2013-07-28 13:25:12 +0200
commitba161ec572b98d3bcf9f735ff122133319fe896a (patch)
treea211690e3a8b7fce1fb6db540228122bead1f2bc /src/SongFilter.cxx
parent43f613d9be9aa2953dcfc0aacfbdfb56d5d1a708 (diff)
downloadmpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.gz
mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.xz
mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.zip
song: convert header to C++
Diffstat (limited to 'src/SongFilter.cxx')
-rw-r--r--src/SongFilter.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx
index 0e138386b..ce9cea246 100644
--- a/src/SongFilter.cxx
+++ b/src/SongFilter.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "SongFilter.hxx"
-#include "song.h"
+#include "Song.hxx"
#include "tag.h"
#include <glib.h>
@@ -107,10 +107,10 @@ SongFilter::Item::Match(const struct tag &_tag) const
}
bool
-SongFilter::Item::Match(const song &song) const
+SongFilter::Item::Match(const Song &song) const
{
if (tag == LOCATE_TAG_FILE_TYPE || tag == LOCATE_TAG_ANY_TYPE) {
- char *uri = song_get_uri(&song);
+ char *uri = song.GetURI();
const bool result = StringMatch(uri);
g_free(uri);
@@ -156,7 +156,7 @@ SongFilter::Parse(unsigned argc, char *argv[], bool fold_case)
}
bool
-SongFilter::Match(const song &song) const
+SongFilter::Match(const Song &song) const
{
for (const auto &i : items)
if (!i.Match(song))