fs/Path: add noexcept
This commit is contained in:
parent
a8b94a4507
commit
bc8bb41aef
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user