aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongSticker.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-02 23:06:10 +0100
committerMax Kellermann <max@duempel.org>2013-01-02 23:06:10 +0100
commit0eb05b827fc239854773b43baff82581d65f9c5b (patch)
treec4f5d1aba7b4aad89826707310b6b75573453408 /src/SongSticker.cxx
parent0c245bc2712f5d38507b8d421cdc0a7e002a3398 (diff)
downloadmpd-0eb05b827fc239854773b43baff82581d65f9c5b.tar.gz
mpd-0eb05b827fc239854773b43baff82581d65f9c5b.tar.xz
mpd-0eb05b827fc239854773b43baff82581d65f9c5b.zip
Directory: turn functions to methods
Diffstat (limited to '')
-rw-r--r--src/SongSticker.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/SongSticker.cxx b/src/SongSticker.cxx
index 2c311bfbb..14b3a1580 100644
--- a/src/SongSticker.cxx
+++ b/src/SongSticker.cxx
@@ -123,14 +123,12 @@ sticker_song_find_cb(const char *uri, const char *value, gpointer user_data)
{
struct sticker_song_find_data *data =
(struct sticker_song_find_data *)user_data;
- struct song *song;
if (memcmp(uri, data->base_uri, data->base_uri_length) != 0)
/* should not happen, ignore silently */
return;
- song = directory_lookup_song(data->directory,
- uri + data->base_uri_length);
+ song *song = data->directory->LookupSong(uri + data->base_uri_length);
if (song != NULL)
data->func(song, value, data->user_data);
}
@@ -147,7 +145,7 @@ sticker_song_find(struct directory *directory, const char *name,
data.user_data = user_data;
char *allocated;
- data.base_uri = directory_get_path(directory);
+ data.base_uri = directory->GetPath();
if (*data.base_uri != 0)
/* append slash to base_uri */
data.base_uri = allocated =