diff options
author | Max Kellermann <max@musicpd.org> | 2016-10-29 10:21:57 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-10-29 10:42:56 +0200 |
commit | fac8edd47aa8f86688e8b7d7d0c6945509954d28 (patch) | |
tree | ff10541b17fac1275efd5ec822b24a270d84df48 /src/db/plugins/simple/Mount.cxx | |
parent | 9a9da7b0773b5c4863919b84b2269cfeb605ebaa (diff) |
db/Interface: migrate visitor methods from class Error to C++ exceptions
Diffstat (limited to 'src/db/plugins/simple/Mount.cxx')
-rw-r--r-- | src/db/plugins/simple/Mount.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/db/plugins/simple/Mount.cxx b/src/db/plugins/simple/Mount.cxx index 9708780a1..e55bba03d 100644 --- a/src/db/plugins/simple/Mount.cxx +++ b/src/db/plugins/simple/Mount.cxx @@ -63,12 +63,11 @@ PrefixVisitPlaylist(const char *base, const VisitPlaylist &visit_playlist, PrefixedLightDirectory(directory, base)); } -bool +void WalkMount(const char *base, const Database &db, bool recursive, const SongFilter *filter, const VisitDirectory &visit_directory, const VisitSong &visit_song, - const VisitPlaylist &visit_playlist, - Error &error) + const VisitPlaylist &visit_playlist) { using namespace std::placeholders; @@ -87,6 +86,5 @@ WalkMount(const char *base, const Database &db, vp = std::bind(PrefixVisitPlaylist, base, std::ref(visit_playlist), _1, _2); - return db.Visit(DatabaseSelection("", recursive, filter), - vd, vs, vp, error); + db.Visit(DatabaseSelection("", recursive, filter), vd, vs, vp); } |