db/Helpers: add "noexcept"
This commit is contained in:
parent
39a1f03d5c
commit
d921114832
|
@ -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,
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue