summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-03 20:10:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-02-04 15:01:10 +0100
commit55da16210363cb2dc1f43731ebe6ebc601a50d86 (patch)
tree1b139fae1a02a5d8ae645906c1992326a2127b9a /vcl
parentextract max legal dff length to header (diff)
downloadcore-55da16210363cb2dc1f43731ebe6ebc601a50d86.tar.gz
core-55da16210363cb2dc1f43731ebe6ebc601a50d86.zip
these methods can be const
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/outdev.hxx2
-rw-r--r--vcl/source/gdi/outdevnative.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/vcl/outdev.hxx b/vcl/inc/vcl/outdev.hxx
index 63458cbddaf7..f4b2c6f8d8f8 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 f37417ebeca2..e791c99ce157 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;