Commit 3e3ee581 authored by Max Kellermann's avatar Max Kellermann

fs/Path: add `constexpr`

parent 0e8ca449
...@@ -72,7 +72,7 @@ public: ...@@ -72,7 +72,7 @@ public:
* Check if this is a "nulled" instance. A "nulled" instance * Check if this is a "nulled" instance. A "nulled" instance
* must not be used. * must not be used.
*/ */
bool IsNull() const noexcept { constexpr bool IsNull() const noexcept {
return Base::IsNull(); return Base::IsNull();
} }
...@@ -101,8 +101,7 @@ public: ...@@ -101,8 +101,7 @@ public:
* pointer is invalidated whenever the value of life of this * pointer is invalidated whenever the value of life of this
* instance ends. * instance ends.
*/ */
gcc_pure constexpr const_pointer_type c_str() const noexcept {
const_pointer_type c_str() const noexcept {
return Base::c_str(); return Base::c_str();
} }
...@@ -110,8 +109,7 @@ public: ...@@ -110,8 +109,7 @@ public:
* Returns a pointer to the raw value, not necessarily * Returns a pointer to the raw value, not necessarily
* null-terminated. * null-terminated.
*/ */
gcc_pure constexpr const_pointer_type data() const noexcept {
const_pointer_type data() const noexcept {
return c_str(); return c_str();
} }
......
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