From 47b55c0d9fccf3994f86fd764cefca3a2f734dbe Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Sat, 15 Oct 2011 22:03:44 +0200 Subject: cppcheck (bzr r10678) --- src/color-rgba.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/color-rgba.h') diff --git a/src/color-rgba.h b/src/color-rgba.h index 8c21d5e52..543ef5926 100644 --- a/src/color-rgba.h +++ b/src/color-rgba.h @@ -111,7 +111,7 @@ public: Check each value to see if they are equal. If they all are, return TRUE. */ - bool operator== (const ColorRGBA other) const { + bool operator== (const ColorRGBA &other) const { for (int i = 0; i < 4; i++) { if (_c[i] != other[i]) return false; @@ -135,7 +135,7 @@ public: value are multiplied by 1.0 - weight and the second object by weight. This means that they should always be balanced by the parameter. */ - ColorRGBA average (const ColorRGBA second, const float weight = 0.5) const { + ColorRGBA average (const ColorRGBA &second, const float weight = 0.5) const { float returnval[4]; for (int i = 0; i < 4; i++) { -- cgit v1.2.3