diff options
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. |