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/target | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build2/target') diff --git a/build2/target b/build2/target index dd9461c..48c5ebc 100644 --- a/build2/target +++ b/build2/target @@ -748,12 +748,14 @@ namespace build2 return target != nullptr ? target->name : prerequisite.get ().name; } - const string* + const optional& proj () const { // Target cannot be project-qualified. // - return target != nullptr ? nullptr : prerequisite.get ().proj; + return target != nullptr + ? prerequisite_key::nullproj + : prerequisite.get ().proj; } target_type& -- cgit v1.1