aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-30 23:36:53 +0100
committerMax Kellermann <max@duempel.org>2014-01-30 23:36:57 +0100
commitc310941f69ead4371d659241fea06687ac81fe76 (patch)
treeacc199876192512a472873f4610b4fe0f801eb2c /src
parentc02f14679137dce3e2068a7a10bf81a615c16023 (diff)
downloadmpd-c310941f69ead4371d659241fea06687ac81fe76.tar.gz
mpd-c310941f69ead4371d659241fea06687ac81fe76.tar.xz
mpd-c310941f69ead4371d659241fea06687ac81fe76.zip
fs/AllocatedPath: add conversion constructor from Path
Diffstat (limited to 'src')
-rw-r--r--src/fs/AllocatedPath.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx
index cea1bc27e..4fb217547 100644
--- a/src/fs/AllocatedPath.hxx
+++ b/src/fs/AllocatedPath.hxx
@@ -70,6 +70,8 @@ public:
*/
AllocatedPath(AllocatedPath &&other):value(std::move(other.value)) {}
+ explicit AllocatedPath(Path other):value(other.c_str()) {}
+
~AllocatedPath();
/**