aboutsummaryrefslogtreecommitdiff
path: root/build2/cli
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cli')
-rw-r--r--build2/cli/module.cxx4
-rw-r--r--build2/cli/rule.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/build2/cli/module.cxx b/build2/cli/module.cxx
index 907bd0b..4e81908 100644
--- a/build2/cli/module.cxx
+++ b/build2/cli/module.cxx
@@ -45,7 +45,7 @@ namespace build2
{
auto l (base["cxx.loaded"]);
- if (!l || !cast<bool> (*l))
+ if (!l || !cast<bool> (l))
fail (loc) << "cxx module must be loaded before cli";
}
@@ -90,7 +90,7 @@ namespace build2
{
auto l (root["config.cli.configured"]);
- if (l && !cast<bool> (*l))
+ if (l && !cast<bool> (l))
return false;
}
diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx
index 243c6aa..de14aa1 100644
--- a/build2/cli/rule.cxx
+++ b/build2/cli/rule.cxx
@@ -244,7 +244,7 @@ namespace build2
path rels (relative (s->path ()));
scope& rs (t.root_scope ());
- const string& cli (cast<string> (*rs["config.cli"]));
+ const string& cli (cast<string> (rs["config.cli"]));
cstrings args {cli.c_str ()};