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/name.cxx | |
parent | c03fc4a34ad47f5951633f1e9602b250c53c1927 (diff) |
Make use of butl::to_stream(ostream, path, bool)
Diffstat (limited to 'libbuild2/name.cxx')
-rw-r--r-- | libbuild2/name.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
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. |