aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/types.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-11-08 00:17:47 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-11-11 18:41:06 +0300
commit07e0d37aba5cd72ff2d53eda654a4d5466e38627 (patch)
tree80ab6452b0fc489833fb911926ca872e51ec1575 /libbuild2/types.hxx
parent5935476651cd063a53d08ec33b04513a7a8127e3 (diff)
Use path_name for `-` to stdin/stdout translation
Diffstat (limited to 'libbuild2/types.hxx')
-rw-r--r--libbuild2/types.hxx7
1 files changed, 4 insertions, 3 deletions
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;