aboutsummaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-02 22:04:03 +0100
committerMax Kellermann <max@duempel.org>2013-01-02 22:16:05 +0100
commit8331de424a67b137cd83ce817da0fceec647dc2f (patch)
treeb5243fbff385d9732c683cb1efc64eec85f3189f /src/db
parent98dbdf72b3c35878494df4954a447cec250a835d (diff)
downloadmpd-8331de424a67b137cd83ce817da0fceec647dc2f.tar.gz
mpd-8331de424a67b137cd83ce817da0fceec647dc2f.tar.xz
mpd-8331de424a67b137cd83ce817da0fceec647dc2f.zip
PlaylistInfo: rename class, use std::string
Diffstat (limited to 'src/db')
-rw-r--r--src/db/ProxyDatabasePlugin.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/ProxyDatabasePlugin.cxx
index db8e56dda..01b36a6e3 100644
--- a/src/db/ProxyDatabasePlugin.cxx
+++ b/src/db/ProxyDatabasePlugin.cxx
@@ -314,14 +314,10 @@ Visit(const struct mpd_playlist *playlist,
if (!visit_playlist)
return true;
- struct playlist_metadata p;
- p.name = g_strdup(mpd_playlist_get_path(playlist));
- p.mtime = mpd_playlist_get_last_modified(playlist);
+ PlaylistInfo p(mpd_playlist_get_path(playlist),
+ mpd_playlist_get_last_modified(playlist));
- bool success = visit_playlist(p, detached_root, error_r);
- g_free(p.name);
-
- return success;
+ return visit_playlist(p, detached_root, error_r);
}
class ProxyEntity {