aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-02-09 13:07:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-02-09 13:07:05 +0200
commit1a55c0d6ec9b1cd9f78de82ed068224cac4e6cb2 (patch)
treed7d9cd6da1e94755dd522556becf3155b292ea5d /libbuild2/variable.cxx
parentf59065dd443f43b8e99931c001e03283c20e9c63 (diff)
Minor simplification
Diffstat (limited to 'libbuild2/variable.cxx')
-rw-r--r--libbuild2/variable.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/variable.cxx b/libbuild2/variable.cxx
index 8cd6404..917b9e7 100644
--- a/libbuild2/variable.cxx
+++ b/libbuild2/variable.cxx
@@ -1736,7 +1736,7 @@ namespace build2
return pair<value_data*, const variable&> (r, p.second);
}
- pair<reference_wrapper<value>, bool> variable_map::
+ pair<value&, bool> variable_map::
insert (const variable& var, bool typed)
{
assert (!global_ || ctx->phase == run_phase::load);
@@ -1756,7 +1756,7 @@ namespace build2
r.version++;
- return make_pair (reference_wrapper<value> (r), p.second);
+ return pair<value&, bool> (r, p.second);
}
// variable_type_map