aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/in
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-02-07 07:10:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-02-07 07:10:09 +0200
commit6c1ea91ca421a1b899af091043abdb58c2ed57e0 (patch)
treeb2b529454d5d5e1f061eada6a030ca0898948a10 /libbuild2/in
parent459228c4c577be5b58e6e09ddc9404b07c12aee6 (diff)
Use target::as instead of static_cast everywhere
Diffstat (limited to 'libbuild2/in')
-rw-r--r--libbuild2/in/rule.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/in/rule.cxx b/libbuild2/in/rule.cxx
index 2117b0e..dd39485 100644
--- a/libbuild2/in/rule.cxx
+++ b/libbuild2/in/rule.cxx
@@ -30,7 +30,7 @@ namespace build2
if (!xt.is_a<file> ()) // See module init() for details.
return false;
- file& t (static_cast<file&> (xt));
+ file& t (xt.as<file> ());
bool fi (false); // Found in.
for (prerequisite_member p: group_prerequisite_members (a, t))
@@ -53,7 +53,7 @@ namespace build2
recipe rule::
apply (action a, target& xt) const
{
- file& t (static_cast<file&> (xt));
+ file& t (xt.as<file> ());
// Derive the file name.
//