From 07e0d37aba5cd72ff2d53eda654a4d5466e38627 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 8 Nov 2019 00:17:47 +0300 Subject: Use path_name for `-` to stdin/stdout translation --- libbuild2/types.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbuild2/types.hxx') diff --git a/libbuild2/types.hxx b/libbuild2/types.hxx index 192b01f..bedcf1a 100644 --- a/libbuild2/types.hxx +++ b/libbuild2/types.hxx @@ -228,6 +228,7 @@ namespace build2 // using butl::path; using butl::path_name; + using butl::path_name_value; using butl::dir_path; using butl::path_cast; using butl::basic_path; @@ -321,11 +322,11 @@ namespace build2 : file (f), line (l), column (c) {} explicit - location (const path_name& f, uint64_t l = 0, uint64_t c = 0) - : file (f), line (l), column (c) {} + location (path_name f, uint64_t l = 0, uint64_t c = 0) + : file (std::move (f)), line (l), column (c) {} bool - empty () const {return file.path == nullptr;} + empty () const {return file.empty ();} path_name file; uint64_t line; -- cgit v1.1