Commit bc8bb41a authored by Max Kellermann's avatar Max Kellermann

fs/Path: add `noexcept`

parent a8b94a45
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment