diff options
author | Max Kellermann <max@musicpd.org> | 2016-10-29 10:04:43 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-10-29 10:04:43 +0200 |
commit | 3ff728ab02644ac4f84d4bc931ade91fc0667cc8 (patch) | |
tree | d63f4b148d5e243993a8ed606643eecfd9be3a2c /test/DumpDatabase.cxx | |
parent | 78bf4ef5fa20cad2d91566ca82ad57de2dad0efb (diff) |
db/Visitor: remove the Error parameter
Implementations shall use exceptions instead.
Diffstat (limited to 'test/DumpDatabase.cxx')
-rw-r--r-- | test/DumpDatabase.cxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx index eebf679cc..4324b2088 100644 --- a/test/DumpDatabase.cxx +++ b/test/DumpDatabase.cxx @@ -64,30 +64,26 @@ public: } }; -static bool -DumpDirectory(const LightDirectory &directory, Error &) +static void +DumpDirectory(const LightDirectory &directory) { cout << "D " << directory.GetPath() << endl; - return true; } -static bool -DumpSong(const LightSong &song, Error &) +static void +DumpSong(const LightSong &song) { cout << "S "; if (song.directory != nullptr) cout << song.directory << "/"; cout << song.uri << endl; - return true; } -static bool -DumpPlaylist(const PlaylistInfo &playlist, - const LightDirectory &directory, Error &) +static void +DumpPlaylist(const PlaylistInfo &playlist, const LightDirectory &directory) { cout << "P " << directory.GetPath() << "/" << playlist.name.c_str() << endl; - return true; } int |