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/cc/common | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'build2/cc/common') diff --git a/build2/cc/common b/build2/cc/common index 06df4c3..860913e 100644 --- a/build2/cc/common +++ b/build2/cc/common @@ -184,18 +184,16 @@ namespace build2 // public: void - process_libraries (const scope&, - lorder, - const dir_paths&, - file&, - bool, - const function&, - const function&, - const function&, - bool = false) const; + process_libraries ( + const scope&, + lorder, + const dir_paths&, + const file&, + bool, + const function&, + const function&, + const function&, + bool = false) const; target* search_library (const dir_paths& sysd, @@ -209,7 +207,7 @@ namespace build2 } private: - file& + const file& resolve_library (const scope&, name, lorder, -- cgit v1.1