diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2011-10-15 20:03:44 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2011-10-15 20:03:44 +0000 |
| commit | 47b55c0d9fccf3994f86fd764cefca3a2f734dbe (patch) | |
| tree | fae67e17d41b9848ab204db00cc37ecbd2b9098b /src/color-rgba.h | |
| parent | Use desktop coordinates for finding snap candidates (regression introduced in... (diff) | |
| download | inkscape-47b55c0d9fccf3994f86fd764cefca3a2f734dbe.tar.gz inkscape-47b55c0d9fccf3994f86fd764cefca3a2f734dbe.zip | |
cppcheck
(bzr r10678)
Diffstat (limited to 'src/color-rgba.h')
| -rw-r--r-- | src/color-rgba.h | 4 |
1 files changed, 2 insertions, 2 deletions
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++) { |
