From 8d2e541ab1aa24140eb680fb046e49a4a3f0bbd2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 12 Oct 2016 14:51:27 +0200 Subject: Various design/implementation cleanups --- build2/config/utility | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/config') diff --git a/build2/config/utility b/build2/config/utility index aa7dc7e..de75de4 100644 --- a/build2/config/utility +++ b/build2/config/utility @@ -51,7 +51,7 @@ namespace build2 uint64_t save_flags = 0) { return required ( - root, var_pool.find (name), default_value, override, save_flags); + root, var_pool[name], default_value, override, save_flags); } inline pair, bool> @@ -77,7 +77,7 @@ namespace build2 inline pair omitted (scope& root, const string& name) { - return omitted (root, var_pool.find (name)); + return omitted (root, var_pool[name]); } // Set, if necessary, an optional config.* variable. In particular, @@ -93,7 +93,7 @@ namespace build2 inline const value& optional (scope& root, const string& var) { - return optional (root, var_pool.find (var)); + return optional (root, var_pool[var]); } // Check whether there are any variables specified from the config -- cgit v1.1