summaryrefslogtreecommitdiffstats
path: root/src/color-profile.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-04-21 09:56:09 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-04-21 09:56:09 +0000
commit8d793593fff1737c91b76f820e1b4aa021897cee (patch)
tree7e23a82675cbb16050942625337c35836a17f59a /src/color-profile.cpp
parentFix symbols not being installed bug reported by suv (diff)
downloadinkscape-8d793593fff1737c91b76f820e1b4aa021897cee.tar.gz
inkscape-8d793593fff1737c91b76f820e1b4aa021897cee.zip
cppcheck
(bzr r12293)
Diffstat (limited to 'src/color-profile.cpp')
-rw-r--r--src/color-profile.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index 14f88c77e..5fb84d8ac 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -619,8 +619,6 @@ cmsHTRANSFORM ColorProfile::getTransfGamutCheck()
bool ColorProfile::GamutCheck(SPColor color)
{
- bool result = false;
-
guint32 val = color.toRGBA32(0);
#if HAVE_LIBLCMS1
@@ -651,9 +649,7 @@ bool ColorProfile::GamutCheck(SPColor color)
cmsSetAlarmCodes(oldAlarmCodes);
#endif // HAVE_LIBLCMS1
- result = (outofgamut != 0);
-
- return result;
+ return (outofgamut != 0);
}
class ProfileInfo