diff options
author | Max Kellermann <max@duempel.org> | 2013-01-02 23:06:10 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-02 23:06:10 +0100 |
commit | 0eb05b827fc239854773b43baff82581d65f9c5b (patch) | |
tree | c4f5d1aba7b4aad89826707310b6b75573453408 /src/SongSticker.cxx | |
parent | 0c245bc2712f5d38507b8d421cdc0a7e002a3398 (diff) | |
download | mpd-0eb05b827fc239854773b43baff82581d65f9c5b.tar.gz mpd-0eb05b827fc239854773b43baff82581d65f9c5b.tar.xz mpd-0eb05b827fc239854773b43baff82581d65f9c5b.zip |
Directory: turn functions to methods
Diffstat (limited to '')
-rw-r--r-- | src/SongSticker.cxx | 6 |
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 = |