From 460eb164f0051cf0ffab6860220649c4f03c74fb Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 15 Nov 2019 13:27:23 +0300 Subject: Use path_name_view in location and path_name_value in location_value --- libbuild2/utility.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbuild2/utility.cxx') diff --git a/libbuild2/utility.cxx b/libbuild2/utility.cxx index 8e38213..20f0c22 100644 --- a/libbuild2/utility.cxx +++ b/libbuild2/utility.cxx @@ -46,11 +46,11 @@ namespace std } ostream& - operator<< (ostream& os, const ::butl::path_name& pn) + operator<< (ostream& os, const ::butl::path_name_view& v) { - assert (!pn.empty ()); + assert (!v.empty ()); - return pn.name ? (os << *pn.name) : (os << *pn.path); + return v.name != nullptr && *v.name ? (os << **v.name) : (os << *v.path); } ostream& -- cgit v1.1