aboutsummaryrefslogtreecommitdiff
path: root/build2/install
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-03-16 16:02:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-03-16 16:02:06 +0200
commitc76ff457079bf5901a6bb55377c14aeee856a354 (patch)
tree6a7d0c7606370b54fa77369dd101d035aad08918 /build2/install
parent20677fb264e743b8e5423af31a7d8dc06cf509f6 (diff)
Cleanup variable typing
Diffstat (limited to 'build2/install')
-rw-r--r--build2/install/module.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/build2/install/module.cxx b/build2/install/module.cxx
index 754fcb5..579d454 100644
--- a/build2/install/module.cxx
+++ b/build2/install/module.cxx
@@ -50,8 +50,7 @@ namespace build2
vn = "config.install.";
vn += name;
vn += var;
- const variable& vr (
- var_pool.find (move (vn), &value_traits<T>::value_type));
+ const variable& vr (var_pool.find<T> (move (vn)));
cv = dv != nullptr
? &config::required (r, vr, *dv, override).first.get ()
@@ -61,8 +60,7 @@ namespace build2
vn = "install.";
vn += name;
vn += var;
- const variable& vr (
- var_pool.find (move (vn), &value_traits<T>::value_type));
+ const variable& vr (var_pool.find<T> (move (vn)));
value& v (r.assign (vr));
@@ -139,7 +137,7 @@ namespace build2
{
auto& v (var_pool);
- v.find ("install", dir_path_type);
+ v.find<dir_path> ("install");
}
// Register our alias and file installer rule.