diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-11-14 10:50:41 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-11-14 10:50:41 +0300 |
commit | 62a688e3fd7d1fdb8ce5590ebe9cb99e90cbe5d7 (patch) | |
tree | 7c134dfb04815fb41c22d150fe1e481916536888 /libbuild2/utility.cxx | |
parent | c03fc4a34ad47f5951633f1e9602b250c53c1927 (diff) |
Make use of butl::to_stream(ostream, path, bool)
Diffstat (limited to 'libbuild2/utility.cxx')
-rw-r--r-- | libbuild2/utility.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libbuild2/utility.cxx b/libbuild2/utility.cxx index 528b435..8e38213 100644 --- a/libbuild2/utility.cxx +++ b/libbuild2/utility.cxx @@ -39,9 +39,10 @@ namespace std { using namespace build2; - return os << (stream_verb (os).path < 1 - ? diag_relative (p) - : p.representation ()); + if (stream_verb (os).path < 1) + return os << diag_relative (p); + else + return to_stream (os, p, true /* representation */); } ostream& |