From 6c1ea91ca421a1b899af091043abdb58c2ed57e0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 7 Feb 2022 07:10:09 +0200 Subject: Use target::as instead of static_cast everywhere --- libbuild2/in/rule.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/in/rule.cxx') 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 ()) // See module init() for details. return false; - file& t (static_cast (xt)); + file& t (xt.as ()); 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 (xt)); + file& t (xt.as ()); // Derive the file name. // -- cgit v1.1