From 5607313a91e5ca0113b1f8b9acfd02c1fb105346 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 19 Jan 2017 12:45:04 +0200 Subject: Get rid of project_name_pool With small string optimizations this is most likely a hindrance rather that an optimization. --- build2/parser | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/parser') diff --git a/build2/parser b/build2/parser index 5909328..f91bbb6 100644 --- a/build2/parser +++ b/build2/parser @@ -199,7 +199,7 @@ namespace build2 { names ns; parse_names ( - t, tt, ns, chunk, what, separators, 0, nullptr, nullptr, nullptr); + t, tt, ns, chunk, what, separators, 0, nullopt, nullptr, nullptr); return ns; } @@ -214,7 +214,7 @@ namespace build2 names ns; pair p ( parse_names ( - t, tt, ns, chunk, what, separators, 0, nullptr, nullptr, nullptr)); + t, tt, ns, chunk, what, separators, 0, nullopt, nullptr, nullptr)); value r (p.second); // Potentially typed NULL value. @@ -250,7 +250,7 @@ namespace build2 const char* what = "name", const string* separators = &name_separators, size_t pair = 0, - const string* prj = nullptr, + const optional& prj = nullopt, const dir_path* dir = nullptr, const string* type = nullptr); @@ -260,7 +260,7 @@ namespace build2 const char* what, const string* separators, size_t pair, - const string* prj, + const optional& prj, const dir_path* dir, const string* type); -- cgit v1.1