diff options
author | Max Kellermann <max@musicpd.org> | 2019-05-31 13:54:52 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-05-31 14:07:33 +0200 |
commit | 11ec7117ab8dc7b1159bb910da2b275e0638521d (patch) | |
tree | 06e6bc60139993f7d98cfeef14567e7c3b816108 /src/Partition.cxx | |
parent | c3ccbfd407b5d5fd7c93e85ae230a23cece4ad1c (diff) |
Partition: add `noexcept`
Diffstat (limited to 'src/Partition.cxx')
-rw-r--r-- | src/Partition.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Partition.cxx b/src/Partition.cxx index cccb814ac..6f1e53fda 100644 --- a/src/Partition.cxx +++ b/src/Partition.cxx @@ -30,7 +30,7 @@ Partition::Partition(Instance &_instance, unsigned max_length, unsigned buffer_chunks, AudioFormat configured_audio_format, - const ReplayGainConfig &replay_gain_config) + const ReplayGainConfig &replay_gain_config) noexcept :instance(_instance), name(_name), listener(new ClientListener(instance.event_loop, *this)), @@ -46,13 +46,13 @@ Partition::Partition(Instance &_instance, Partition::~Partition() noexcept = default; void -Partition::EmitIdle(unsigned mask) +Partition::EmitIdle(unsigned mask) noexcept { instance.EmitIdle(mask); } void -Partition::UpdateEffectiveReplayGainMode() +Partition::UpdateEffectiveReplayGainMode() noexcept { auto mode = replay_gain_mode; if (mode == ReplayGainMode::AUTO) @@ -68,7 +68,7 @@ Partition::UpdateEffectiveReplayGainMode() #ifdef ENABLE_DATABASE const Database * -Partition::GetDatabase() const +Partition::GetDatabase() const noexcept { return instance.GetDatabase(); } @@ -80,7 +80,7 @@ Partition::GetDatabaseOrThrow() const } void -Partition::DatabaseModified(const Database &db) +Partition::DatabaseModified(const Database &db) noexcept { playlist.DatabaseModified(db); EmitIdle(IDLE_DATABASE); @@ -89,7 +89,7 @@ Partition::DatabaseModified(const Database &db) #endif void -Partition::TagModified() +Partition::TagModified() noexcept { auto song = pc.LockReadTaggedSong(); if (song) @@ -103,13 +103,13 @@ Partition::TagModified(const char *uri, const Tag &tag) noexcept } void -Partition::SyncWithPlayer() +Partition::SyncWithPlayer() noexcept { playlist.SyncWithPlayer(pc); } void -Partition::BorderPause() +Partition::BorderPause() noexcept { playlist.BorderPause(pc); } |