From 6be3c99876870176ce71b745c96c589272cc17e5 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@musicpd.org>
Date: Fri, 5 Apr 2019 08:44:23 +0200
Subject: [PATCH] decoder/Bridge: add `noexcept`

---
 src/decoder/Bridge.cxx | 8 ++++----
 src/decoder/Bridge.hxx | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/decoder/Bridge.cxx b/src/decoder/Bridge.cxx
index de4d51f14..7ca7c741c 100644
--- a/src/decoder/Bridge.cxx
+++ b/src/decoder/Bridge.cxx
@@ -43,7 +43,7 @@ DecoderBridge::DecoderBridge(DecoderControl &_dc, bool _initial_seek_pending,
 	 initial_seek_pending(_initial_seek_pending),
 	 song_tag(std::move(_tag)) {}
 
-DecoderBridge::~DecoderBridge()
+DecoderBridge::~DecoderBridge() noexcept
 {
 	/* caller must flush the chunk */
 	assert(current_chunk == nullptr);
@@ -114,7 +114,7 @@ DecoderBridge::GetChunk() noexcept
 }
 
 void
-DecoderBridge::FlushChunk()
+DecoderBridge::FlushChunk() noexcept
 {
 	assert(!seeking);
 	assert(!initial_seek_running);
@@ -131,7 +131,7 @@ DecoderBridge::FlushChunk()
 }
 
 bool
-DecoderBridge::PrepareInitialSeek()
+DecoderBridge::PrepareInitialSeek() noexcept
 {
 	assert(dc.pipe != nullptr);
 
@@ -193,7 +193,7 @@ DecoderBridge::LockGetVirtualCommand() noexcept
 }
 
 DecoderCommand
-DecoderBridge::DoSendTag(const Tag &tag)
+DecoderBridge::DoSendTag(const Tag &tag) noexcept
 {
 	if (current_chunk != nullptr) {
 		/* there is a partial chunk - flush it, we want the
diff --git a/src/decoder/Bridge.hxx b/src/decoder/Bridge.hxx
index e318b7614..b9760a41d 100644
--- a/src/decoder/Bridge.hxx
+++ b/src/decoder/Bridge.hxx
@@ -109,7 +109,7 @@ public:
 	DecoderBridge(DecoderControl &_dc, bool _initial_seek_pending,
 		      std::unique_ptr<Tag> _tag) noexcept;
 
-	~DecoderBridge();
+	~DecoderBridge() noexcept;
 
 	/**
 	 * Should be read operation be cancelled?  That is the case when the
@@ -133,7 +133,7 @@ public:
 	 *
 	 * Caller must not lock the #DecoderControl object.
 	 */
-	void FlushChunk();
+	void FlushChunk() noexcept;
 
 	/* virtual methods from DecoderClient */
 	void Ready(AudioFormat audio_format,
@@ -158,7 +158,7 @@ private:
 	 * Checks if we need an "initial seek".  If so, then the
 	 * initial seek is prepared, and the function returns true.
 	 */
-	bool PrepareInitialSeek();
+	bool PrepareInitialSeek() noexcept;
 
 	/**
 	 * Returns the current decoder command.  May return a
@@ -172,7 +172,7 @@ private:
 	 * Sends a #Tag as-is to the #MusicPipe.  Flushes the current
 	 * chunk (DecoderBridge::chunk) if there is one.
 	 */
-	DecoderCommand DoSendTag(const Tag &tag);
+	DecoderCommand DoSendTag(const Tag &tag) noexcept;
 
 	bool UpdateStreamTag(InputStream *is) noexcept;
 };