aboutsummaryrefslogtreecommitdiff
path: root/build/config/operation.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-08 16:24:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-08 16:24:14 +0200
commitb4ceb7b6aecb7492b28d7a0f6c53fa657a2cd2e5 (patch)
tree0452343b865b9c87b1f833fa1e2f4d90b249f643 /build/config/operation.cxx
parent6e2e56e8f70faed666a83797cebb96e844650a79 (diff)
Inherit list_value directly from names
Diffstat (limited to 'build/config/operation.cxx')
-rw-r--r--build/config/operation.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/config/operation.cxx b/build/config/operation.cxx
index e62d313..85d0d07 100644
--- a/build/config/operation.cxx
+++ b/build/config/operation.cxx
@@ -123,8 +123,8 @@ namespace build
//
const list_value& lv (dynamic_cast<const list_value&> (*pval));
- ofs << var.name << " = " << lv.data << endl;
- //text << var.name << " = " << lv.data;
+ ofs << var.name << " = " << lv << endl;
+ //text << var.name << " = " << lv;
}
else
{
@@ -180,7 +180,7 @@ namespace build
//
if (auto v = root.ro_variables ()["subprojects"])
{
- for (const name& n: v.as<const list_value&> ().data)
+ for (const name& n: v.as<const list_value&> ())
{
path out_nroot (out_root / n.dir);
scope& nroot (scopes.find (out_nroot));
@@ -274,7 +274,7 @@ namespace build
//
if (auto v = root.ro_variables ()["subprojects"])
{
- for (const name& n: v.as<const list_value&> ().data)
+ for (const name& n: v.as<const list_value&> ())
{
// Create and bootstrap subproject's root scope.
//