From 3b88bac07c6f39c44ce1ed2e236005cad59d21dc Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@musicpd.org>
Date: Fri, 3 Apr 2020 15:25:23 +0200
Subject: [PATCH] util/StringPointer: add `noexcept`

---
 src/util/StringPointer.hxx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/util/StringPointer.hxx b/src/util/StringPointer.hxx
index 40b2a3ac2..77c48370a 100644
--- a/src/util/StringPointer.hxx
+++ b/src/util/StringPointer.hxx
@@ -49,22 +49,22 @@ private:
 
 public:
 	StringPointer() = default;
-	constexpr StringPointer(const_pointer _value)
+	constexpr StringPointer(const_pointer _value) noexcept
 		:value(_value) {}
 
 	/**
 	 * Check if this is a "nulled" instance.  A "nulled" instance
 	 * must not be used.
 	 */
-	constexpr bool IsNull() const {
+	constexpr bool IsNull() const noexcept {
 		return value == nullptr;
 	}
 
-	constexpr const_pointer c_str() const {
+	constexpr const_pointer c_str() const noexcept {
 		return value;
 	}
 
-	bool empty() const {
+	bool empty() const noexcept {
 		return *value == SENTINEL;
 	}
 };