From d921114832c0f00a0de883bb0df3dbfab8b2ec6d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 21 Jan 2018 11:37:13 +0100 Subject: [PATCH] db/Helpers: add "noexcept" --- src/db/Helpers.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/Helpers.cxx b/src/db/Helpers.cxx index 799e8362f..92cd1cbe9 100644 --- a/src/db/Helpers.cxx +++ b/src/db/Helpers.cxx @@ -38,7 +38,7 @@ typedef std::set StringSet; static void StatsVisitTag(DatabaseStats &stats, StringSet &artists, StringSet &albums, - const Tag &tag) + const Tag &tag) noexcept { if (!tag.duration.IsNegative()) stats.total_duration += tag.duration; @@ -61,7 +61,7 @@ StatsVisitTag(DatabaseStats &stats, StringSet &artists, StringSet &albums, static void StatsVisitSong(DatabaseStats &stats, StringSet &artists, StringSet &albums, - const LightSong &song) + const LightSong &song) noexcept { ++stats.song_count;