summaryrefslogtreecommitdiff
path: root/src/fs/Path.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-05-31 19:47:39 +0200
committerMax Kellermann <max@musicpd.org>2019-05-31 19:47:50 +0200
commit3e3ee581a804391fad3ad38679daf0c6c5ea1e88 (patch)
treeb182cc268d78186d93aaef4746771781d8d09a91 /src/fs/Path.hxx
parent0e8ca44968607bb0e23ece0b789439fff3091e63 (diff)
fs/Path: add `constexpr`
Diffstat (limited to 'src/fs/Path.hxx')
-rw-r--r--src/fs/Path.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx
index a16829e1e..43bfe0b7d 100644
--- a/src/fs/Path.hxx
+++ b/src/fs/Path.hxx
@@ -72,7 +72,7 @@ public:
* Check if this is a "nulled" instance. A "nulled" instance
* must not be used.
*/
- bool IsNull() const noexcept {
+ constexpr bool IsNull() const noexcept {
return Base::IsNull();
}
@@ -101,8 +101,7 @@ public:
* pointer is invalidated whenever the value of life of this
* instance ends.
*/
- gcc_pure
- const_pointer_type c_str() const noexcept {
+ constexpr const_pointer_type c_str() const noexcept {
return Base::c_str();
}
@@ -110,8 +109,7 @@ public:
* Returns a pointer to the raw value, not necessarily
* null-terminated.
*/
- gcc_pure
- const_pointer_type data() const noexcept {
+ constexpr const_pointer_type data() const noexcept {
return c_str();
}