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/version | |
parent | 459228c4c577be5b58e6e09ddc9404b07c12aee6 (diff) |
Use target::as instead of static_cast everywhere
Diffstat (limited to 'libbuild2/version')
-rw-r--r-- | libbuild2/version/rule.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/version/rule.cxx b/libbuild2/version/rule.cxx index 4da4e3f..3da69cc 100644 --- a/libbuild2/version/rule.cxx +++ b/libbuild2/version/rule.cxx @@ -51,7 +51,7 @@ namespace build2 { tracer trace ("version::in_rule::match"); - file& t (static_cast<file&> (xt)); + file& t (xt.as<file> ()); const scope& rs (t.root_scope ()); bool fm (false); // Found manifest. |