From b4ceb7b6aecb7492b28d7a0f6c53fa657a2cd2e5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 8 Apr 2015 16:24:14 +0200 Subject: Inherit list_value directly from names --- build/variable.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build/variable.cxx') diff --git a/build/variable.cxx b/build/variable.cxx index 56d5a08..7067d9b 100644 --- a/build/variable.cxx +++ b/build/variable.cxx @@ -28,12 +28,12 @@ namespace build as () const { const list_value& lv (as ()); - assert (lv.data.size () < 2); + assert (lv.size () < 2); - if (lv.data.empty ()) + if (lv.empty ()) return empty_string; - const name& n (lv.data.front ()); + const name& n (lv.front ()); assert (n.type.empty () && n.dir.empty ()); return n.value; @@ -46,12 +46,12 @@ namespace build as () const { const list_value& lv (as ()); - assert (lv.data.size () < 2); + assert (lv.size () < 2); - if (lv.data.empty ()) + if (lv.empty ()) return empty_path; - const name& n (lv.data.front ()); + const name& n (lv.front ()); assert (n.type.empty () && n.value.empty ()); return n.dir; -- cgit v1.1