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 /src/db/DatabasePrint.cxx | |
parent | 78bf4ef5fa20cad2d91566ca82ad57de2dad0efb (diff) |
db/Visitor: remove the Error parameter
Implementations shall use exceptions instead.
Diffstat (limited to 'src/db/DatabasePrint.cxx')
-rw-r--r-- | src/db/DatabasePrint.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db/DatabasePrint.cxx b/src/db/DatabasePrint.cxx index 39b645660..024573713 100644 --- a/src/db/DatabasePrint.cxx +++ b/src/db/DatabasePrint.cxx @@ -173,11 +173,11 @@ db_selection_print(Response &r, Partition &partition, if (window_start > 0 || window_end < (unsigned)std::numeric_limits<int>::max()) - s = [s, window_start, window_end, &i](const LightSong &song, - Error &error2){ + s = [s, window_start, window_end, &i](const LightSong &song){ const bool in_window = i >= window_start && i < window_end; ++i; - return !in_window || s(song, error2); + if (in_window) + s(song); }; return db.Visit(selection, d, s, p, error); |