From c0105aad0074aee0efb3ba41f8132496412f8790 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 28 Jan 2020 08:11:16 +0200 Subject: Use scope::insert_rule() --- libbuild2/version/init.cxx | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'libbuild2/version') diff --git a/libbuild2/version/init.cxx b/libbuild2/version/init.cxx index 3ab3621..ea4c71a 100644 --- a/libbuild2/version/init.cxx +++ b/libbuild2/version/init.cxx @@ -342,18 +342,14 @@ namespace build2 // Register rules. // - { - auto& r (rs.rules); - - r.insert (perform_update_id, "version.in", in_rule_); - r.insert (perform_clean_id, "version.in", in_rule_); - r.insert (configure_update_id, "version.in", in_rule_); + rs.insert_rule (perform_update_id, "version.in", in_rule_); + rs.insert_rule (perform_clean_id, "version.in", in_rule_); + rs.insert_rule (configure_update_id, "version.in", in_rule_); - if (cast_false (rs["install.booted"])) - { - r.insert ( - perform_install_id, "version.manifest", manifest_install_rule_); - } + if (cast_false (rs["install.booted"])) + { + rs.insert_rule ( + perform_install_id, "version.manifest", manifest_install_rule_); } return true; -- cgit v1.1