From 4e665067ff264c55086fdfb776a95b0fbb4d432c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 12 Feb 2016 16:10:48 +0200 Subject: / scheme cleanup --- build2/scope | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'build2/scope') diff --git a/build2/scope b/build2/scope index 192ba10..158f967 100644 --- a/build2/scope +++ b/build2/scope @@ -5,7 +5,6 @@ #ifndef BUILD2_SCOPE #define BUILD2_SCOPE -#include // function #include #include @@ -96,7 +95,7 @@ namespace build2 } build2::lookup - operator[] (const std::string& name) const + operator[] (const string& name) const { return operator[] (var_pool.find (name)); } @@ -142,7 +141,7 @@ namespace build2 assign (const variable& var) {return vars.assign (var).first.get ();} value& - assign (const std::string& name, const build2::value_type* type = nullptr) + assign (const string& name, const build2::value_type* type = nullptr) { return vars.assign (name, type).first.get (); } @@ -157,7 +156,7 @@ namespace build2 append (const variable&); value& - append (const std::string& name) + append (const string& name) { return append (var_pool.find (name)); } -- cgit v1.1