aboutsummaryrefslogtreecommitdiff
path: root/build2/name.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/name.cxx')
-rw-r--r--build2/name.cxx4
1 files changed, 2 insertions, 2 deletions
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 << '%';