From 62a688e3fd7d1fdb8ce5590ebe9cb99e90cbe5d7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 14 Nov 2019 10:50:41 +0300 Subject: Make use of butl::to_stream(ostream, path, bool) --- libbuild2/utility.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbuild2/utility.cxx') 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& -- cgit v1.1