Commit d9211148 authored by Max Kellermann's avatar Max Kellermann

db/Helpers: add "noexcept"

parent 39a1f03d
...@@ -38,7 +38,7 @@ typedef std::set<const char *, StringLess> StringSet; ...@@ -38,7 +38,7 @@ typedef std::set<const char *, StringLess> StringSet;
static void static void
StatsVisitTag(DatabaseStats &stats, StringSet &artists, StringSet &albums, StatsVisitTag(DatabaseStats &stats, StringSet &artists, StringSet &albums,
const Tag &tag) const Tag &tag) noexcept
{ {
if (!tag.duration.IsNegative()) if (!tag.duration.IsNegative())
stats.total_duration += tag.duration; stats.total_duration += tag.duration;
...@@ -61,7 +61,7 @@ StatsVisitTag(DatabaseStats &stats, StringSet &artists, StringSet &albums, ...@@ -61,7 +61,7 @@ StatsVisitTag(DatabaseStats &stats, StringSet &artists, StringSet &albums,
static void static void
StatsVisitSong(DatabaseStats &stats, StringSet &artists, StringSet &albums, StatsVisitSong(DatabaseStats &stats, StringSet &artists, StringSet &albums,
const LightSong &song) const LightSong &song) noexcept
{ {
++stats.song_count; ++stats.song_count;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment