diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx index 45e7b40ae..a16829e1e 100644 --- a/src/fs/Path.hxx +++ b/src/fs/Path.hxx @@ -39,7 +39,7 @@ class Path : public PathTraitsFS::Pointer { using Traits = PathTraitsFS; typedef Traits::Pointer Base; - constexpr Path(const_pointer_type _value):Base(_value) {} + constexpr Path(const_pointer_type _value) noexcept:Base(_value) {} public: /** @@ -48,7 +48,7 @@ public: * * @see IsNull() */ - constexpr Path(std::nullptr_t):Base(nullptr) {} + constexpr Path(std::nullptr_t) noexcept:Base(nullptr) {} /** * Copy a #Path object. @@ -59,7 +59,7 @@ public: * Create a new instance pointing to the specified path * string. */ - static constexpr Path FromFS(const_pointer_type fs) { + static constexpr Path FromFS(const_pointer_type fs) noexcept { return Path(fs); } @@ -72,7 +72,7 @@ public: * Check if this is a "nulled" instance. A "nulled" instance * must not be used. */ - bool IsNull() const { + bool IsNull() const noexcept { return Base::IsNull(); } @@ -81,7 +81,7 @@ public: * * @see IsNull() */ - void SetNull() { + void SetNull() noexcept { *this = nullptr; }