aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fs/AllocatedPath.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx
index 42594b2f6..c345470c8 100644
--- a/src/fs/AllocatedPath.hxx
+++ b/src/fs/AllocatedPath.hxx
@@ -170,6 +170,14 @@ public:
}
/**
+ * Allows the caller to "steal" the internal value by
+ * providing a rvalue reference to the std::string attribute.
+ */
+ std::string &&Steal() {
+ return std::move(value);
+ }
+
+ /**
* Check if this is a "nulled" instance. A "nulled" instance
* must not be used.
*/