aboutsummaryrefslogtreecommitdiff
path: root/build2/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-19 12:45:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-01-19 12:45:04 +0200
commit5607313a91e5ca0113b1f8b9acfd02c1fb105346 (patch)
treeb14fd2737b88f90e9d142d8e6eff36876e0f8b5a /build2/parser
parent8ecc2d18bf86b1021a31a2e5d01e71afbaa1efd0 (diff)
Get rid of project_name_pool
With small string optimizations this is most likely a hindrance rather that an optimization.
Diffstat (limited to 'build2/parser')
-rw-r--r--build2/parser8
1 files changed, 4 insertions, 4 deletions
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<bool, const value_type*> 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<string>& 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<string>& prj,
const dir_path* dir,
const string* type);