aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-30 22:15:13 +0100
committerMax Kellermann <max@duempel.org>2014-01-30 22:15:13 +0100
commit0bd01824f6b035e460e8821adf6913de3c78a3c4 (patch)
tree8ec43658ecfad529455390ce310eb5ae57cf8e5c
parent4465e2c46bbed438377dc4a99df333bd5c058d5e (diff)
downloadmpd-0bd01824f6b035e460e8821adf6913de3c78a3c4.tar.gz
mpd-0bd01824f6b035e460e8821adf6913de3c78a3c4.tar.xz
mpd-0bd01824f6b035e460e8821adf6913de3c78a3c4.zip
fs/AllocatedPath: add Build() overlays with Path arguments
-rw-r--r--src/fs/AllocatedPath.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx
index 68a1a4766..cea1bc27e 100644
--- a/src/fs/AllocatedPath.hxx
+++ b/src/fs/AllocatedPath.hxx
@@ -98,6 +98,16 @@ public:
}
gcc_pure gcc_nonnull_all
+ static AllocatedPath Build(Path a, const_pointer b) {
+ return Build(a.c_str(), b);
+ }
+
+ gcc_pure gcc_nonnull_all
+ static AllocatedPath Build(Path a, Path b) {
+ return Build(a, b.c_str());
+ }
+
+ gcc_pure gcc_nonnull_all
static AllocatedPath Build(const_pointer a, const AllocatedPath &b) {
return Build(a, PathTraitsFS::GetLength(a),
b.value.c_str(), b.value.size());