summaryrefslogtreecommitdiff
path: root/src/fs/AllocatedPath.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/AllocatedPath.hxx')
-rw-r--r--src/fs/AllocatedPath.hxx20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx
index be26ffd78..c7e68ee45 100644
--- a/src/fs/AllocatedPath.hxx
+++ b/src/fs/AllocatedPath.hxx
@@ -43,7 +43,6 @@ class AllocatedPath {
string value;
- AllocatedPath(std::nullptr_t):value() {}
explicit AllocatedPath(const_pointer_type _value):value(_value) {}
AllocatedPath(const_pointer_type _begin, const_pointer_type _end)
@@ -57,6 +56,14 @@ class AllocatedPath {
}
public:
/**
+ * Construct a "nulled" instance. Its IsNull() method will
+ * return true. Such an object must not be used.
+ *
+ * @see IsNull()
+ */
+ AllocatedPath(std::nullptr_t):value() {}
+
+ /**
* Copy an #AllocatedPath object.
*/
AllocatedPath(const AllocatedPath &) = default;
@@ -70,17 +77,6 @@ public:
~AllocatedPath();
- /**
- * Return a "nulled" instance. Its IsNull() method will
- * return true. Such an object must not be used.
- *
- * @see IsNull()
- */
- gcc_const
- static AllocatedPath Null() noexcept {
- return AllocatedPath(nullptr);
- }
-
gcc_pure
operator Path() const noexcept {
return Path::FromFS(c_str());