diff options
author | Max Kellermann <max@duempel.org> | 2012-08-07 23:06:41 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-07 23:12:26 +0200 |
commit | ff58207034e63e9f87402f7e3c78080638cb1e2f (patch) | |
tree | 9e2bc30c2b6ae4691f5cc52645b1ebadb31ea669 /src/DatabasePlaylist.cxx | |
parent | b3d76b7e5c46ff46139457b3aa910d92e290f38f (diff) | |
download | mpd-ff58207034e63e9f87402f7e3c78080638cb1e2f.tar.gz mpd-ff58207034e63e9f87402f7e3c78080638cb1e2f.tar.xz mpd-ff58207034e63e9f87402f7e3c78080638cb1e2f.zip |
db_selection: rename to DatabaseSelection
Diffstat (limited to 'src/DatabasePlaylist.cxx')
-rw-r--r-- | src/DatabasePlaylist.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/DatabasePlaylist.cxx b/src/DatabasePlaylist.cxx index eb59a5084..e8d569877 100644 --- a/src/DatabasePlaylist.cxx +++ b/src/DatabasePlaylist.cxx @@ -19,11 +19,11 @@ #include "config.h" #include "DatabasePlaylist.hxx" +#include "DatabaseSelection.hxx" extern "C" { #include "dbUtils.h" #include "locate.h" -#include "db_selection.h" #include "stored_playlist.h" } @@ -43,8 +43,7 @@ bool addAllInToStoredPlaylist(const char *uri_utf8, const char *playlist_path_utf8, GError **error_r) { - struct db_selection selection; - db_selection_init(&selection, uri_utf8, true); + const DatabaseSelection selection(uri_utf8, true); using namespace std::placeholders; const auto f = std::bind(AddSong, playlist_path_utf8, _1, _2); @@ -65,8 +64,7 @@ search_add_to_playlist(const char *uri, const char *playlist_path_utf8, const struct locate_item_list *criteria, GError **error_r) { - struct db_selection selection; - db_selection_init(&selection, uri, true); + const DatabaseSelection selection(uri, true); struct locate_item_list *new_list = locate_item_list_casefold(criteria); |