aboutsummaryrefslogtreecommitdiff
path: root/build2/install/init.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/install/init.cxx')
-rw-r--r--build2/install/init.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/build2/install/init.cxx b/build2/install/init.cxx
index bb54bcd..5281d38 100644
--- a/build2/install/init.cxx
+++ b/build2/install/init.cxx
@@ -46,7 +46,7 @@ namespace build2
bool override = false)
{
string vn;
- const value* cv (nullptr);
+ lookup l;
bool global (*name == '\0');
@@ -61,10 +61,10 @@ namespace build2
vn += var;
const variable& vr (var_pool.insert<CT> (move (vn), true));
- cv = dv != nullptr
- ? &config::required (r, vr, *dv, override).first.get ()
+ l = dv != nullptr
+ ? config::required (r, vr, *dv, override).first
: (global
- ? &config::optional (r, vr)
+ ? config::optional (r, vr)
: config::omitted (r, vr).first);
}
@@ -80,8 +80,8 @@ namespace build2
if (spec)
{
- if (cv != nullptr && *cv)
- v = cast<T> (*cv); // Strip CT to T.
+ if (l)
+ v = cast<T> (l); // Strip CT to T.
}
else
{