diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-27 09:03:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-30 13:21:13 +0100 |
commit | db378d64a9ca8675066fda31f3bd77dc37c52398 (patch) | |
tree | dc6c2c85b4996cff913c9f590eda19712bf9e309 /vcl/source/window | |
parent | 9ee60319c675087486907707c8a2b18b5c9dc9fc (diff) |
loplugin:constmethod in vcl and stoc
Change-Id: I7c02eecc16ca7cf89d9f7021116b0226885dbf06
Reviewed-on: https://gerrit.libreoffice.org/44044
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/builder.cxx | 4 | ||||
-rw-r--r-- | vcl/source/window/clipping.cxx | 16 | ||||
-rw-r--r-- | vcl/source/window/dialog.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/dlgctrl.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/settings.cxx | 2 |
5 files changed, 13 insertions, 13 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 9d1fedeebdf5..da1e806d3a4d 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -2364,7 +2364,7 @@ void VclBuilder::handleAtkObject(xmlreader::XmlReader &reader, vcl::Window *pWin } } -std::vector<OUString> VclBuilder::handleItems(xmlreader::XmlReader &reader) +std::vector<OUString> VclBuilder::handleItems(xmlreader::XmlReader &reader) const { int nLevel = 1; @@ -3120,7 +3120,7 @@ OString VclBuilder::getStyleClass(xmlreader::XmlReader &reader) return aRet; } -void VclBuilder::collectProperty(xmlreader::XmlReader &reader, stringmap &rMap) +void VclBuilder::collectProperty(xmlreader::XmlReader &reader, stringmap &rMap) const { xmlreader::Span name; int nsId; diff --git a/vcl/source/window/clipping.cxx b/vcl/source/window/clipping.cxx index 9d0f619e833d..922ff7104e30 100644 --- a/vcl/source/window/clipping.cxx +++ b/vcl/source/window/clipping.cxx @@ -190,7 +190,7 @@ void Window::ImplClipBoundaries( vcl::Region& rRegion, bool bThis, bool bOverlap ImplGetParent()->ImplIntersectWindowClipRegion( rRegion ); } -bool Window::ImplClipChildren( vcl::Region& rRegion ) +bool Window::ImplClipChildren( vcl::Region& rRegion ) const { bool bOtherClip = false; vcl::Window* pWindow = mpWindowImpl->mpFirstChild; @@ -213,7 +213,7 @@ bool Window::ImplClipChildren( vcl::Region& rRegion ) return bOtherClip; } -void Window::ImplClipAllChildren( vcl::Region& rRegion ) +void Window::ImplClipAllChildren( vcl::Region& rRegion ) const { vcl::Window* pWindow = mpWindowImpl->mpFirstChild; while ( pWindow ) @@ -224,7 +224,7 @@ void Window::ImplClipAllChildren( vcl::Region& rRegion ) } } -void Window::ImplClipSiblings( vcl::Region& rRegion ) +void Window::ImplClipSiblings( vcl::Region& rRegion ) const { vcl::Window* pWindow = ImplGetParent()->mpWindowImpl->mpFirstChild; while ( pWindow ) @@ -528,7 +528,7 @@ void Window::ImplExcludeWindowRegion( vcl::Region& rRegion ) } } -void Window::ImplExcludeOverlapWindows( vcl::Region& rRegion ) +void Window::ImplExcludeOverlapWindows( vcl::Region& rRegion ) const { vcl::Window* pWindow = mpWindowImpl->mpFirstOverlap; while ( pWindow ) @@ -551,7 +551,7 @@ void Window::ImplExcludeOverlapWindows2( vcl::Region& rRegion ) ImplExcludeOverlapWindows( rRegion ); } -void Window::ImplIntersectAndUnionOverlapWindows( const vcl::Region& rInterRegion, vcl::Region& rRegion ) +void Window::ImplIntersectAndUnionOverlapWindows( const vcl::Region& rInterRegion, vcl::Region& rRegion ) const { vcl::Window* pWindow = mpWindowImpl->mpFirstOverlap; while ( pWindow ) @@ -580,10 +580,10 @@ void Window::ImplIntersectAndUnionOverlapWindows2( const vcl::Region& rInterRegi ImplIntersectAndUnionOverlapWindows( rInterRegion, rRegion ); } -void Window::ImplCalcOverlapRegionOverlaps( const vcl::Region& rInterRegion, vcl::Region& rRegion ) +void Window::ImplCalcOverlapRegionOverlaps( const vcl::Region& rInterRegion, vcl::Region& rRegion ) const { // Clip Overlap Siblings - vcl::Window* pStartOverlapWindow; + vcl::Window const * pStartOverlapWindow; if ( !ImplIsOverlapWindow() ) pStartOverlapWindow = mpWindowImpl->mpOverlapWindow; else @@ -674,7 +674,7 @@ void Window::ImplCalcOverlapRegion( const tools::Rectangle& rSourceRect, vcl::Re } void Window::SaveBackground( const Point& rPos, const Size& rSize, - VirtualDevice& rSaveDevice ) + VirtualDevice& rSaveDevice ) const { if ( mpWindowImpl->mpPaintRegion ) { diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index eb196997c4b6..43e3ff7362ff 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -894,7 +894,7 @@ void Dialog::paintDialog(VirtualDevice& rDevice) PaintToDevice(&rDevice, Point(0, 0), Size()); } -Size Dialog::PaintActiveFloatingWindow(VirtualDevice& rDevice) +Size Dialog::PaintActiveFloatingWindow(VirtualDevice& rDevice) const { Size aRet; ImplSVData* pSVData = ImplGetSVData(); diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx index 9e7e21c0b42b..386abfaeac4f 100644 --- a/vcl/source/window/dlgctrl.cxx +++ b/vcl/source/window/dlgctrl.cxx @@ -944,7 +944,7 @@ bool Window::ImplDlgCtrl( const KeyEvent& rKEvt, bool bKeyInput ) } // checks if this window has dialog control -bool Window::ImplHasDlgCtrl() +bool Window::ImplHasDlgCtrl() const { vcl::Window* pDlgCtrlParent; diff --git a/vcl/source/window/settings.cxx b/vcl/source/window/settings.cxx index 4234d5327d20..f9ca0d2cb87b 100644 --- a/vcl/source/window/settings.cxx +++ b/vcl/source/window/settings.cxx @@ -145,7 +145,7 @@ void Window::UpdateSettings( const AllSettings& rSettings, bool bChild ) } } -void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl ) +void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl ) const { StyleSettings aTmpSt( rSettings.GetStyleSettings() ); aTmpSt.SetHighContrastMode( false ); |