From 8331de424a67b137cd83ce817da0fceec647dc2f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 2 Jan 2013 22:04:03 +0100 Subject: PlaylistInfo: rename class, use std::string --- src/db/ProxyDatabasePlugin.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/db') 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 { -- cgit v1.2.3