diff options
author | Max Kellermann <max@duempel.org> | 2014-01-30 23:36:53 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-30 23:36:57 +0100 |
commit | c310941f69ead4371d659241fea06687ac81fe76 (patch) | |
tree | acc199876192512a472873f4610b4fe0f801eb2c | |
parent | c02f14679137dce3e2068a7a10bf81a615c16023 (diff) | |
download | mpd-c310941f69ead4371d659241fea06687ac81fe76.tar.gz mpd-c310941f69ead4371d659241fea06687ac81fe76.tar.xz mpd-c310941f69ead4371d659241fea06687ac81fe76.zip |
fs/AllocatedPath: add conversion constructor from Path
-rw-r--r-- | src/fs/AllocatedPath.hxx | 2 |
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(); /** |