aboutsummaryrefslogtreecommitdiff
path: root/butl/path.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-30 17:34:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-30 17:34:45 +0200
commitefb5db56425245a20df704e707f6a91190eb67f3 (patch)
treed8206f236fda128b875908372b1cb72112e48078 /butl/path.txx
parentbc5df38d08cb0dbe5b55c145ecce93581de77fee (diff)
Don't use hard-coded directory separators
Diffstat (limited to 'butl/path.txx')
-rw-r--r--butl/path.txx4
1 files changed, 2 insertions, 2 deletions
diff --git a/butl/path.txx b/butl/path.txx
index 08af340..44c03c3 100644
--- a/butl/path.txx
+++ b/butl/path.txx
@@ -80,14 +80,14 @@ namespace butl
basic_path<C, K> basic_path<C, K>::
relative (basic_path<C, K> d) const
{
- basic_path r;
+ dir_type r;
for (;; d = d.directory ())
{
if (sub (d))
break;
- r /= basic_path ("../");
+ r /= "..";
// Roots of the paths do not match.
//