aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-12 01:57:06 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-12 01:57:06 +0000
commitabea26a9683d58e0bee43d9ededeb710f3617603 (patch)
treed02df83b600c46f018d20754e9ba49ff283b2d3c /src
parent442d43178ba47c2312b77026f88a236846e7c425 (diff)
BasicDerivation::findOutput cannot return reference anymore
Diffstat (limited to 'src')
-rw-r--r--src/libstore/derivations.cc2
-rw-r--r--src/libstore/derivations.hh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc
index 86f55342d..bde147502 100644
--- a/src/libstore/derivations.cc
+++ b/src/libstore/derivations.cc
@@ -24,7 +24,7 @@ StorePath DerivationOutput::path(const Store & store, string drvName) const
}, output);
}
-const StorePath & BasicDerivation::findOutput(const Store & store, const string & id) const
+const StorePath BasicDerivation::findOutput(const Store & store, const string & id) const
{
auto i = outputs.find(id);
if (i == outputs.end())
diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh
index 2515188ec..4694ec0dd 100644
--- a/src/libstore/derivations.hh
+++ b/src/libstore/derivations.hh
@@ -52,7 +52,7 @@ struct BasicDerivation
/* Return the path corresponding to the output identifier `id' in
the given derivation. */
- const StorePath & findOutput(const Store & store, const std::string & id) const;
+ const StorePath findOutput(const Store & store, const std::string & id) const;
bool isBuiltin() const;