diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-07 07:10:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-07 07:10:09 +0200 |
commit | 6c1ea91ca421a1b899af091043abdb58c2ed57e0 (patch) | |
tree | b2b529454d5d5e1f061eada6a030ca0898948a10 /libbuild2/in | |
parent | 459228c4c577be5b58e6e09ddc9404b07c12aee6 (diff) |
Use target::as instead of static_cast everywhere
Diffstat (limited to 'libbuild2/in')
-rw-r--r-- | libbuild2/in/rule.cxx | 4 |
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. // |