[Libreoffice-commits] .: vcl/inc vcl/source

Caolán McNamara caolan at kemper.freedesktop.org
Sat Feb 4 06:01:20 PST 2012


 vcl/inc/vcl/outdev.hxx          |    2 +-
 vcl/source/gdi/outdevnative.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 55da16210363cb2dc1f43731ebe6ebc601a50d86
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Feb 3 20:10:24 2012 +0100

    these methods can be const

diff --git a/vcl/inc/vcl/outdev.hxx b/vcl/inc/vcl/outdev.hxx
index 63458cb..f4b2c6f 100644
--- a/vcl/inc/vcl/outdev.hxx
+++ b/vcl/inc/vcl/outdev.hxx
@@ -1196,7 +1196,7 @@ public:
                                                 const ImplControlValue& aValue,
                                                 ::rtl::OUString aCaption,
                                                 Rectangle &rNativeBoundingRegion,
-                                                Rectangle &rNativeContentRegion );
+                                                Rectangle &rNativeContentRegion ) const;
 
 };
 
diff --git a/vcl/source/gdi/outdevnative.cxx b/vcl/source/gdi/outdevnative.cxx
index f37417e..e791c99 100644
--- a/vcl/source/gdi/outdevnative.cxx
+++ b/vcl/source/gdi/outdevnative.cxx
@@ -194,7 +194,7 @@ sal_Bool OutputDevice::HitTestNativeControl( ControlType nType,
 
 // -----------------------------------------------------------------------
 
-static boost::shared_ptr< ImplControlValue > lcl_transformControlValue( const ImplControlValue& rVal, OutputDevice& rDev )
+static boost::shared_ptr< ImplControlValue > lcl_transformControlValue( const ImplControlValue& rVal, const OutputDevice& rDev )
 {
     boost::shared_ptr< ImplControlValue > aResult;
     switch( rVal.getType() )
@@ -321,7 +321,7 @@ sal_Bool OutputDevice::GetNativeControlRegion(  ControlType nType,
                                 const ImplControlValue& aValue,
                                 ::rtl::OUString aCaption,
                                 Rectangle &rNativeBoundingRegion,
-                                Rectangle &rNativeContentRegion )
+                                Rectangle &rNativeContentRegion ) const
 {
     if( !lcl_enableNativeWidget( *this ) )
         return sal_False;


More information about the Libreoffice-commits mailing list