summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-12-17 09:12:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-17 08:59:30 +0100
commit20ff62d319d9a8195a59d5b27ccc52d9000992c0 (patch)
treef32c6393778d7718e1cdda7f2281f8dfbf4dd591 /basegfx
parent8eb2d2972583b909a249f5b0f22a9b1fbf533d24 (diff)
loplugin:expandablemethods
Change-Id: Ifc269d9996928085a3ab78033788465b4f029368 Reviewed-on: https://gerrit.libreoffice.org/85255 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/color/bcolormodifier.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/basegfx/source/color/bcolormodifier.cxx b/basegfx/source/color/bcolormodifier.cxx
index 182083f6fbdb..9758767ed39b 100644
--- a/basegfx/source/color/bcolormodifier.cxx
+++ b/basegfx/source/color/bcolormodifier.cxx
@@ -124,7 +124,7 @@ namespace basegfx
return false;
}
- return getBColor() == pCompare->getBColor() && getValue() == pCompare->getValue();
+ return maBColor == pCompare->maBColor && mfValue == pCompare->mfValue;
}
::basegfx::BColor BColorModifier_interpolate::getModifiedColor(const ::basegfx::BColor& aSourceColor) const
@@ -148,7 +148,7 @@ namespace basegfx
return false;
}
- return getValue() == pCompare->getValue();
+ return mfValue == pCompare->mfValue;
}
::basegfx::BColor BColorModifier_black_and_white::getModifiedColor(const ::basegfx::BColor& aSourceColor) const
@@ -194,7 +194,7 @@ namespace basegfx
}
// getValue is sufficient, mfInvValue and mbUseIt are only helper values
- return getValue() == pCompare->getValue();
+ return mfValue == pCompare->mfValue;
}
::basegfx::BColor BColorModifier_gamma::getModifiedColor(const ::basegfx::BColor& aSourceColor) const
@@ -274,11 +274,11 @@ namespace basegfx
}
// no need to compare other values, these are just helpers
- return getRed() == pCompare->getRed()
- && getGreen() == pCompare->getGreen()
- && getBlue() == pCompare->getBlue()
- && getLuminance() == pCompare->getLuminance()
- && getContrast() == pCompare->getContrast();
+ return mfRed == pCompare->mfRed
+ && mfGreen == pCompare->mfGreen
+ && mfBlue == pCompare->mfBlue
+ && mfLuminance == pCompare->mfLuminance
+ && mfContrast == pCompare->mfContrast;
}
::basegfx::BColor BColorModifier_RGBLuminanceContrast::getModifiedColor(const ::basegfx::BColor& aSourceColor) const