aboutsummaryrefslogtreecommitdiff
path: root/build/scope.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-13 15:50:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-13 15:50:17 +0200
commitace1743f7f78bb13f99553d6e97ad1beecf1ba99 (patch)
tree595bc9dad989e44f4be9a67e351219f3248dc5f0 /build/scope.cxx
parent534f9d8db025d58c9ce23f3b81a37e8c34386a27 (diff)
Add separate type to represent directory paths
Diffstat (limited to 'build/scope.cxx')
-rw-r--r--build/scope.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/scope.cxx b/build/scope.cxx
index 68eba3d..aced21b 100644
--- a/build/scope.cxx
+++ b/build/scope.cxx
@@ -36,7 +36,7 @@ namespace build
scope* global_scope;
pair<scope&, bool> scope_map::
- insert (const path& k, bool root)
+ insert (const dir_path& k, bool root)
{
auto er (emplace (k, scope ()));
scope& s (er.first->second);
@@ -104,7 +104,7 @@ namespace build
// Find the most qualified scope that encompasses this path.
//
scope& scope_map::
- find (const path& k)
+ find (const dir_path& k)
{
// Normally we would have a scope for the full path so try
// that before making any copies.
@@ -114,7 +114,7 @@ namespace build
if (i != end ())
return i->second;
- for (path d (k.directory ());; d = d.directory ())
+ for (dir_path d (k.directory ());; d = d.directory ())
{
auto i (base::find (d));