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/name.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/name.cxx') diff --git a/build2/name.cxx b/build2/name.cxx index e4ecd52..0b3d00f 100644 --- a/build2/name.cxx +++ b/build2/name.cxx @@ -22,7 +22,7 @@ namespace build2 if (n.empty ()) return r; - if (n.proj != nullptr) + if (n.proj) { r += *n.proj; r += '%'; @@ -113,7 +113,7 @@ namespace build2 if (quote && n.empty ()) return os << "''"; - if (n.proj != nullptr) + if (n.proj) { write_string (*n.proj); os << '%'; -- cgit v1.1