From 8aee78c8d0eb06334571e596f6fbdf7ed5756f0c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 8 Feb 2017 09:24:07 +0200 Subject: Tighten target constness further --- build2/cc/utility.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'build2/cc/utility.cxx') diff --git a/build2/cc/utility.cxx b/build2/cc/utility.cxx index 4ccdcaf..62febfa 100644 --- a/build2/cc/utility.cxx +++ b/build2/cc/utility.cxx @@ -62,10 +62,8 @@ namespace build2 } } - target* r (ls ? static_cast (l.s) : l.a); - + const target* r (ls ? static_cast (l.s) : l.a); assert (r != nullptr); - return *r; } -- cgit v1.1