db/Helpers: add "noexcept"

This commit is contained in:
Max Kellermann 2018-01-21 11:37:13 +01:00
parent 39a1f03d5c
commit d921114832
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ typedef std::set<const char *, StringLess> 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;