[Libreoffice-commits] .: sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Mon Dec 20 16:29:03 PST 2010
sc/source/ui/vba/vbainterior.cxx | 2 +-
sc/source/ui/vba/vbainterior.hxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 18922c4a27a2fc118e1b7615ad0837d962ea5ad5
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Mon Dec 20 19:22:50 2010 -0500
cppcheck: this method can be const.
diff --git a/sc/source/ui/vba/vbainterior.cxx b/sc/source/ui/vba/vbainterior.cxx
index 0afd6a9..9bf1482 100644
--- a/sc/source/ui/vba/vbainterior.cxx
+++ b/sc/source/ui/vba/vbainterior.cxx
@@ -253,7 +253,7 @@ ScVbaInterior::GetMixedColor( const Color& rFore, const Color& rBack, sal_uInt8
GetMixedColorComp( rFore.GetBlue(), rBack.GetBlue(), nTrans ));
}
sal_uInt8
-ScVbaInterior::GetMixedColorComp( sal_uInt8 nFore, sal_uInt8 nBack, sal_uInt8 nTrans )
+ScVbaInterior::GetMixedColorComp( sal_uInt8 nFore, sal_uInt8 nBack, sal_uInt8 nTrans ) const
{
sal_uInt32 nTemp = ((static_cast< sal_Int32 >( nBack ) - nFore) * nTrans) / 0x80 + nFore;
return static_cast< sal_uInt8 >( nTemp );
diff --git a/sc/source/ui/vba/vbainterior.hxx b/sc/source/ui/vba/vbainterior.hxx
index 51b06e7..0d12260 100644
--- a/sc/source/ui/vba/vbainterior.hxx
+++ b/sc/source/ui/vba/vbainterior.hxx
@@ -58,7 +58,7 @@ class ScVbaInterior : public ScVbaInterior_BASE
protected:
Color GetPatternColor( const Color& rPattColor, const Color& rBackColor, sal_uInt32 nXclPattern );
Color GetMixedColor( const Color& rFore, const Color& rBack, sal_uInt8 nTrans );
- sal_uInt8 GetMixedColorComp( sal_uInt8 nFore, sal_uInt8 nBack, sal_uInt8 nTrans );
+ sal_uInt8 GetMixedColorComp( sal_uInt8 nFore, sal_uInt8 nBack, sal_uInt8 nTrans ) const;
css::uno::Any GetIndexColor( const sal_Int32& nColorIndex );
sal_Int32 GetColorIndex( const sal_Int32 nColor );
css::uno::Any GetUserDefinedAttributes( const rtl::OUString& sName );
More information about the Libreoffice-commits
mailing list