aboutsummaryrefslogtreecommitdiff
path: root/src/DatabasePrint.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-07 23:25:42 +0200
committerMax Kellermann <max@duempel.org>2012-08-07 23:27:23 +0200
commit6b39a5621d9c6724db8f03164e350ae6220fa00a (patch)
tree1d2284873c2a8bdb1f27703731ed1b6f988fb84c /src/DatabasePrint.cxx
parent0d46e118269689e2a98e8011f52bb4bb0459421a (diff)
locate: add "casefold" flag to parser
Fold the case during construction, without having to create another copy.
Diffstat (limited to 'src/DatabasePrint.cxx')
-rw-r--r--src/DatabasePrint.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/DatabasePrint.cxx b/src/DatabasePrint.cxx
index 318bca8a..0c5b2bb9 100644
--- a/src/DatabasePrint.cxx
+++ b/src/DatabasePrint.cxx
@@ -155,16 +155,9 @@ searchForSongsIn(struct client *client, const char *uri,
{
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(SearchPrintSong, client, new_list, _1);
- bool success = GetDatabase()->Visit(selection, f, error_r);
-
- locate_item_list_free(new_list);
-
- return success;
+ const auto f = std::bind(SearchPrintSong, client, criteria, _1);
+ return GetDatabase()->Visit(selection, f, error_r);
}
static bool