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/name.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'libbuild2/name.cxx') diff --git a/libbuild2/name.cxx b/libbuild2/name.cxx index 84e03db..9b76327 100644 --- a/libbuild2/name.cxx +++ b/libbuild2/name.cxx @@ -110,13 +110,10 @@ namespace build2 auto write_dir = [dv, quote, &os, &write_string] (const dir_path& d) { - const string& s (dv < 1 - ? diag_relative (d) - : d.representation ()); if (quote) - write_string (s); + write_string (dv < 1 ? diag_relative (d) : d.representation ()); else - os << s; + os << d; }; // Note: similar to to_string() below. -- cgit v1.1