From fc27ec48c9d63879e4b0f049060e943233cb540d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 17 Oct 2016 15:43:47 +0200 Subject: Cleanup match_result mess --- build2/dist/rule | 4 ++-- build2/dist/rule.cxx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'build2/dist') diff --git a/build2/dist/rule b/build2/dist/rule index f428ff2..0c40cf0 100644 --- a/build2/dist/rule +++ b/build2/dist/rule @@ -20,10 +20,10 @@ namespace build2 { public: virtual match_result - match (action, target&, const string&) const; + match (action, target&, const string&) const override; virtual recipe - apply (action, target&, const match_result&) const; + apply (action, target&) const override; }; } } diff --git a/build2/dist/rule.cxx b/build2/dist/rule.cxx index e2bad9a..f6b50f7 100644 --- a/build2/dist/rule.cxx +++ b/build2/dist/rule.cxx @@ -16,13 +16,13 @@ namespace build2 namespace dist { match_result rule:: - match (action, target& t, const string&) const + match (action, target&, const string&) const { - return t; // We always match. + return true; // We always match. } recipe rule:: - apply (action a, target& t, const match_result&) const + apply (action a, target& t) const { const dir_path& out_root (t.root_scope ().out_path ()); -- cgit v1.1