summaryrefslogtreecommitdiff
path: root/src/output/Source.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-05-08 14:44:49 +0200
committerMax Kellermann <max@musicpd.org>2017-05-08 14:44:49 +0200
commit71f0ed8b7499011b53f90998ebfbd3250fd80948 (patch)
treee9c2f66fbef231858f46d878864199d46e6ce21c /src/output/Source.hxx
parentac2e4e593d407e41db49fdb9ae2da6bc1557f618 (diff)
*: add "noexcept" to many, many function prototypes
This eliminates some overhead, because the compiler doesn't need to consider these functions throwing.
Diffstat (limited to 'src/output/Source.hxx')
-rw-r--r--src/output/Source.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/output/Source.hxx b/src/output/Source.hxx
index c9bbd45f6..01b44521a 100644
--- a/src/output/Source.hxx
+++ b/src/output/Source.hxx
@@ -138,8 +138,8 @@ public:
PreparedFilter *prepared_other_replay_gain_filter,
PreparedFilter *prepared_filter);
- void Close();
- void Cancel();
+ void Close() noexcept;
+ void Cancel() noexcept;
/**
* Ensure that ReadTag() or PeekData() return any input.
@@ -181,13 +181,13 @@ public:
*/
void ConsumeData(size_t nbytes) noexcept;
- bool IsChunkConsumed(const MusicChunk &chunk) const {
+ bool IsChunkConsumed(const MusicChunk &chunk) const noexcept {
assert(IsOpen());
return pipe.IsConsumed(chunk);
}
- void ClearTailChunk(const MusicChunk &chunk) {
+ void ClearTailChunk(const MusicChunk &chunk) noexcept {
pipe.ClearTail(chunk);
}
@@ -197,7 +197,7 @@ private:
PreparedFilter *prepared_other_replay_gain_filter,
PreparedFilter *prepared_filter);
- void CloseFilter();
+ void CloseFilter() noexcept;
ConstBuffer<void> GetChunkData(const MusicChunk &chunk,
Filter *replay_gain_filter,