db/Interface: migrate visitor methods from class Error to C++ exceptions
This commit is contained in:
@@ -36,16 +36,15 @@ AddSong(const Storage &storage, const char *playlist_path_utf8,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
void
|
||||
search_add_to_playlist(const Database &db, const Storage &storage,
|
||||
const char *uri, const char *playlist_path_utf8,
|
||||
const SongFilter *filter,
|
||||
Error &error)
|
||||
const SongFilter *filter)
|
||||
{
|
||||
const DatabaseSelection selection(uri, true, filter);
|
||||
|
||||
using namespace std::placeholders;
|
||||
const auto f = std::bind(AddSong, std::ref(storage),
|
||||
playlist_path_utf8, _1);
|
||||
return db.Visit(selection, f, error);
|
||||
db.Visit(selection, f);
|
||||
}
|
||||
|
Reference in New Issue
Block a user