From c76ff457079bf5901a6bb55377c14aeee856a354 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 16 Mar 2016 16:02:06 +0200 Subject: Cleanup variable typing --- build2/test/module.cxx | 12 ++++++------ build2/test/rule.cxx | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'build2/test') diff --git a/build2/test/module.cxx b/build2/test/module.cxx index c8c0fa7..10948ab 100644 --- a/build2/test/module.cxx +++ b/build2/test/module.cxx @@ -38,12 +38,12 @@ namespace build2 { auto& v (var_pool); - v.find ("test", bool_type); - v.find ("test.input", name_type); - v.find ("test.output", name_type); - v.find ("test.roundtrip", name_type); - v.find ("test.options", strings_type); - v.find ("test.arguments", strings_type); + v.find ("test"); + v.find ("test.input"); + v.find ("test.output"); + v.find ("test.roundtrip"); + v.find ("test.options"); + v.find ("test.arguments"); } } diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index 39b7d01..efe265b 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -68,7 +68,7 @@ namespace build2 // if (!l.defined ()) l = t.base_scope ()[ - var_pool.find (string("test.") + t.type ().name, bool_type)]; + var_pool.find (string("test.") + t.type ().name)]; r = l && as (*l); } @@ -146,9 +146,9 @@ namespace build2 string n ("test."); n += t.type ().name; - const variable& in (var_pool.find (n + ".input", name_type)); - const variable& on (var_pool.find (n + ".output", name_type)); - const variable& rn (var_pool.find (n + ".roundtrip", name_type)); + const variable& in (var_pool.find (n + ".input")); + const variable& on (var_pool.find (n + ".output")); + const variable& rn (var_pool.find (n + ".roundtrip")); // We should only keep value(s) that were specified together // in the innermost scope. @@ -292,7 +292,7 @@ namespace build2 var += t.type ().name; var += '.'; var += n; - l = t.base_scope ()[var_pool.find (var, strings_type)]; + l = t.base_scope ()[var_pool.find (var)]; } if (l) -- cgit v1.1