aboutsummaryrefslogtreecommitdiff
path: root/build2/target.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/target.hxx')
-rw-r--r--build2/target.hxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/build2/target.hxx b/build2/target.hxx
index 0f8c8ea..db5de67 100644
--- a/build2/target.hxx
+++ b/build2/target.hxx
@@ -882,14 +882,12 @@ namespace build2
return member != nullptr ? member->dir : prerequisite.dir;
}
- const optional<string>&
+ const optional<project_name>&
proj () const
{
// Member cannot be project-qualified.
//
- return member != nullptr
- ? prerequisite_key::nullproj
- : prerequisite.proj;
+ return member != nullptr ? nullopt_project_name : prerequisite.proj;
}
const scope_type&