aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Kenigsberg <matthewkenigsberg@gmail.com>2020-06-01 09:01:37 -0600
committerMatthew Kenigsberg <matthewkenigsberg@gmail.com>2020-06-01 09:01:37 -0600
commit768099350666f103131c59853cc7d70c0a6e19cd (patch)
treeccd3bc71711702e50ebe1eca380ee3a29d2eff69 /src
parentff1320b85072b5c2ab28143a45a49f06d3545a8f (diff)
Tree ctors
Diffstat (limited to 'src')
-rw-r--r--src/libfetchers/fetchers.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libfetchers/fetchers.hh b/src/libfetchers/fetchers.hh
index c43cfe50c..2e8c534b0 100644
--- a/src/libfetchers/fetchers.hh
+++ b/src/libfetchers/fetchers.hh
@@ -16,6 +16,8 @@ struct Tree
{
Path actualPath;
StorePath storePath;
+ Tree(Path && actualPath, StorePath && storePath) : actualPath(actualPath), storePath(std::move(storePath)) {}
+ Tree (const Tree & rhs) : actualPath(rhs.actualPath), storePath(rhs.storePath.clone()) {}
};
struct InputScheme;