diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-08 16:24:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-08 16:24:14 +0200 |
commit | b4ceb7b6aecb7492b28d7a0f6c53fa657a2cd2e5 (patch) | |
tree | 0452343b865b9c87b1f833fa1e2f4d90b249f643 /build/variable.cxx | |
parent | 6e2e56e8f70faed666a83797cebb96e844650a79 (diff) |
Inherit list_value directly from names
Diffstat (limited to 'build/variable.cxx')
-rw-r--r-- | build/variable.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
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 string&> () const { const list_value& lv (as<list_value&> ()); - 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 path&> () const { const list_value& lv (as<list_value&> ()); - 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; |