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/install/init.cxx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'libbuild2/install') diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx index 1054e83..98eec91 100644 --- a/libbuild2/install/init.cxx +++ b/libbuild2/install/init.cxx @@ -216,24 +216,22 @@ namespace build2 // Register our rules. // { - auto& r (bs.rules); - const auto& ar (alias_rule::instance); const auto& dr (fsdir_rule::instance); const auto& fr (file_rule::instance); const auto& gr (group_rule_); - r.insert (perform_install_id, "install.alias", ar); - r.insert (perform_uninstall_id, "uninstall.alias", ar); + bs.insert_rule (perform_install_id, "install.alias", ar); + bs.insert_rule (perform_uninstall_id, "uninstall.alias", ar); - r.insert (perform_install_id, "install.fsdir", dr); - r.insert (perform_uninstall_id, "install.fsdir", dr); + bs.insert_rule (perform_install_id, "install.fsdir", dr); + bs.insert_rule (perform_uninstall_id, "install.fsdir", dr); - r.insert (perform_install_id, "install.file", fr); - r.insert (perform_uninstall_id, "uninstall.file", fr); + bs.insert_rule (perform_install_id, "install.file", fr); + bs.insert_rule (perform_uninstall_id, "uninstall.file", fr); - r.insert (perform_install_id, "install.file", gr); - r.insert (perform_uninstall_id, "uninstall.file", gr); + bs.insert_rule (perform_install_id, "install.file", gr); + bs.insert_rule (perform_uninstall_id, "uninstall.file", gr); } // Configuration. -- cgit v1.1