diff options
author | Max Kellermann <max@duempel.org> | 2012-08-07 23:25:42 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-07 23:27:23 +0200 |
commit | 6b39a5621d9c6724db8f03164e350ae6220fa00a (patch) | |
tree | 1d2284873c2a8bdb1f27703731ed1b6f988fb84c /src/DatabasePlaylist.cxx | |
parent | 0d46e118269689e2a98e8011f52bb4bb0459421a (diff) | |
download | mpd-6b39a5621d9c6724db8f03164e350ae6220fa00a.tar.gz mpd-6b39a5621d9c6724db8f03164e350ae6220fa00a.tar.xz mpd-6b39a5621d9c6724db8f03164e350ae6220fa00a.zip |
locate: add "casefold" flag to parser
Fold the case during construction, without having to create another
copy.
Diffstat (limited to 'src/DatabasePlaylist.cxx')
-rw-r--r-- | src/DatabasePlaylist.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/DatabasePlaylist.cxx b/src/DatabasePlaylist.cxx index e8d569877..c1524a335 100644 --- a/src/DatabasePlaylist.cxx +++ b/src/DatabasePlaylist.cxx @@ -66,15 +66,8 @@ search_add_to_playlist(const char *uri, const char *playlist_path_utf8, { const DatabaseSelection selection(uri, true); - struct locate_item_list *new_list - = locate_item_list_casefold(criteria); - using namespace std::placeholders; const auto f = std::bind(SearchAddSong, playlist_path_utf8, - new_list, _1, _2); - bool success = GetDatabase()->Visit(selection, f, error_r); - - locate_item_list_free(new_list); - - return success; + criteria, _1, _2); + return GetDatabase()->Visit(selection, f, error_r); } |