From 7b9eb752cad04aaadc4552d0f26d307b04af1869 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Feb 2017 08:09:53 +0200 Subject: Pass const target& to recipes --- build2/test/script/script | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/test/script/script') diff --git a/build2/test/script/script b/build2/test/script/script index e528cdd..2438fa5 100644 --- a/build2/test/script/script +++ b/build2/test/script/script @@ -511,8 +511,8 @@ namespace build2 class script: public script_base, public group { public: - script (target& test_target, - testscript& script_target, + script (const target& test_target, + const testscript& script_target, const dir_path& root_wd); script (script&&) = delete; @@ -521,8 +521,8 @@ namespace build2 script& operator= (const script&) = delete; public: - target& test_target; // Target we are testing. - testscript& script_target; // Target of the testscript file. + const target& test_target; // Target we are testing. + const testscript& script_target; // Target of the testscript file. // Pre-parse data. // -- cgit v1.1