From e8945fbb15e472afca16fe1c3f36997742a2d64a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Jul 2015 08:17:00 +0200 Subject: Common types cleanup (strings, cstrings) --- build/cxx/rule.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'build/cxx') diff --git a/build/cxx/rule.cxx b/build/cxx/rule.cxx index 7547201..e0e5c0f 100644 --- a/build/cxx/rule.cxx +++ b/build/cxx/rule.cxx @@ -6,7 +6,6 @@ #include #include -#include #include // size_t #include // exit #include // move() @@ -17,6 +16,7 @@ #include #include +#include #include #include #include @@ -40,7 +40,7 @@ namespace build using config::append_options; static void - append_std (vector& args, target& t, string& opt) + append_std (cstrings& args, target& t, string& opt) { if (auto val = t["cxx.std"]) { @@ -66,7 +66,7 @@ namespace build // recursively, prerequisite libraries first. // static void - append_lib_options (vector& args, target& l, const char* var) + append_lib_options (cstrings& args, target& l, const char* var) { for (target* t: l.prerequisite_targets) { @@ -381,7 +381,7 @@ namespace build scope& rs (t.root_scope ()); const string& cxx (rs["config.cxx"].as ()); - vector args {cxx.c_str ()}; + cstrings args {cxx.c_str ()}; // Add cxx.export.poptions from prerequisite libraries. Note // that here we don't need to see group members (see apply()). @@ -725,7 +725,7 @@ namespace build scope& rs (t.root_scope ()); const string& cxx (rs["config.cxx"].as ()); - vector args {cxx.c_str ()}; + cstrings args {cxx.c_str ()}; // Add cxx.export.poptions from prerequisite libraries. Note that // here we don't need to see group members (see apply()). @@ -1175,7 +1175,7 @@ namespace build path relt (relative (t.path ())); scope& rs (t.root_scope ()); - vector args; + cstrings args; string storage1; if (lt == type::a) @@ -1206,7 +1206,7 @@ namespace build // Reserve enough space so that we don't reallocate. Reallocating // means pointers to elements may no longer be valid. // - vector relo; + paths relo; relo.reserve (t.prerequisite_targets.size ()); for (target* pt: t.prerequisite_targets) -- cgit v1.1