summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-27 09:03:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-30 13:21:13 +0100
commitdb378d64a9ca8675066fda31f3bd77dc37c52398 (patch)
treedc6c2c85b4996cff913c9f590eda19712bf9e309 /include
parent9ee60319c675087486907707c8a2b18b5c9dc9fc (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 'include')
-rw-r--r--include/vcl/builder.hxx4
-rw-r--r--include/vcl/dialog.hxx2
-rw-r--r--include/vcl/dockwin.hxx4
-rw-r--r--include/vcl/gfxlink.hxx4
-rw-r--r--include/vcl/menu.hxx2
-rw-r--r--include/vcl/toolbox.hxx2
-rw-r--r--include/vcl/window.hxx18
7 files changed, 18 insertions, 18 deletions
diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx
index 6d1fe7eed0a2..e696c1dc04d8 100644
--- a/include/vcl/builder.hxx
+++ b/include/vcl/builder.hxx
@@ -341,7 +341,7 @@ private:
static std::vector<vcl::EnumContext::Context> handleStyle(xmlreader::XmlReader &reader, int &nPriority);
static OString getStyleClass(xmlreader::XmlReader &reader);
void applyPackingProperty(vcl::Window *pCurrent, vcl::Window *pParent, xmlreader::XmlReader &reader);
- void collectProperty(xmlreader::XmlReader &reader, stringmap &rVec);
+ void collectProperty(xmlreader::XmlReader &reader, stringmap &rVec) const;
static void collectPangoAttribute(xmlreader::XmlReader &reader, stringmap &rMap);
static void collectAtkAttribute(xmlreader::XmlReader &reader, stringmap &rMap);
static void collectAccelerator(xmlreader::XmlReader &reader, accelmap &rMap);
@@ -361,7 +361,7 @@ private:
void handleRow(xmlreader::XmlReader &reader, const OString &rID);
void handleTabChild(vcl::Window *pParent, xmlreader::XmlReader &reader);
void handleMenu(xmlreader::XmlReader &reader, const OString &rID);
- std::vector<OUString> handleItems(xmlreader::XmlReader &reader);
+ std::vector<OUString> handleItems(xmlreader::XmlReader &reader) const;
void handleSizeGroup(xmlreader::XmlReader &reader);
diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx
index 4ae5e040103a..d7d7ce292cf6 100644
--- a/include/vcl/dialog.hxx
+++ b/include/vcl/dialog.hxx
@@ -85,7 +85,7 @@ public:
virtual void LogicInvalidate(const tools::Rectangle* pRectangle) override;
void InvalidateFloatingWindow(const Point& rPos);
void CloseFloatingWindow();
- Size PaintActiveFloatingWindow(VirtualDevice& rDevice);
+ Size PaintActiveFloatingWindow(VirtualDevice& rDevice) const;
/// Necessary to register dialog renderable instance to emit LOK callbacks
void registerDialogRenderable(vcl::IDialogRenderable* pDialogRenderable, const OUString& aDialogId);
diff --git a/include/vcl/dockwin.hxx b/include/vcl/dockwin.hxx
index 00e8f58d87fa..63301f56c369 100644
--- a/include/vcl/dockwin.hxx
+++ b/include/vcl/dockwin.hxx
@@ -110,14 +110,14 @@ private:
DECL_LINK( PopupModeEnd, FloatingWindow*, void );
void ImplEnableStartDocking() { mbStartDockingEnabled = true; }
- bool ImplStartDockingEnabled() { return mbStartDockingEnabled; }
+ bool ImplStartDockingEnabled() const { return mbStartDockingEnabled; }
void ImplPreparePopupMode( FloatWinPopupFlags nFlags );
public:
ImplDockingWindowWrapper( const vcl::Window *pWindow );
~ImplDockingWindowWrapper();
- vcl::Window* GetWindow() { return mpDockingWindow; }
+ vcl::Window* GetWindow() { return mpDockingWindow; }
bool ImplStartDocking( const Point& rPos );
// those methods actually call the corresponding handlers
diff --git a/include/vcl/gfxlink.hxx b/include/vcl/gfxlink.hxx
index d8eef9e3ce3a..2d84fd293e4f 100644
--- a/include/vcl/gfxlink.hxx
+++ b/include/vcl/gfxlink.hxx
@@ -95,11 +95,11 @@ public:
const Size& GetPrefSize() const { return maPrefSize;}
void SetPrefSize( const Size& rPrefSize );
- bool IsPrefSizeValid() { return mbPrefSizeValid;}
+ bool IsPrefSizeValid() const { return mbPrefSizeValid;}
const MapMode& GetPrefMapMode() const { return maPrefMapMode;}
void SetPrefMapMode( const MapMode& rPrefMapMode );
- bool IsPrefMapModeValid() { return mbPrefMapModeValid;}
+ bool IsPrefMapModeValid() const { return mbPrefMapModeValid;}
bool IsNative() const;
diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx
index 669271494f4c..d8d61f72bdbd 100644
--- a/include/vcl/menu.hxx
+++ b/include/vcl/menu.hxx
@@ -334,7 +334,7 @@ public:
aSelectHdl = rLink;
}
- sal_uInt16 GetTitleHeight()
+ sal_uInt16 GetTitleHeight() const
{
return nTitleHeight;
}
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index 3ee08e7fea24..d5dc93a63770 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -452,7 +452,7 @@ public:
sal_uInt16 GetOutStyle() const { return mnOutStyle; }
void EnableCustomize( bool bEnable = true );
- bool IsCustomize() { return mbCustomize; }
+ bool IsCustomize() const { return mbCustomize; }
using DockingWindow::SetHelpText;
using DockingWindow::GetHelpText;
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index c4d3540df1d9..bc51c1f8de3d 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -664,21 +664,21 @@ private:
SAL_DLLPRIVATE void ImplIntersectWindowClipRegion( vcl::Region& rRegion );
SAL_DLLPRIVATE void ImplIntersectWindowRegion( vcl::Region& rRegion );
SAL_DLLPRIVATE void ImplExcludeWindowRegion( vcl::Region& rRegion );
- SAL_DLLPRIVATE void ImplExcludeOverlapWindows( vcl::Region& rRegion );
+ SAL_DLLPRIVATE void ImplExcludeOverlapWindows( vcl::Region& rRegion ) const;
SAL_DLLPRIVATE void ImplExcludeOverlapWindows2( vcl::Region& rRegion );
SAL_DLLPRIVATE void ImplClipBoundaries( vcl::Region& rRegion, bool bThis, bool bOverlaps );
- SAL_DLLPRIVATE bool ImplClipChildren( vcl::Region& rRegion );
- SAL_DLLPRIVATE void ImplClipAllChildren( vcl::Region& rRegion );
- SAL_DLLPRIVATE void ImplClipSiblings( vcl::Region& rRegion );
+ SAL_DLLPRIVATE bool ImplClipChildren( vcl::Region& rRegion ) const;
+ SAL_DLLPRIVATE void ImplClipAllChildren( vcl::Region& rRegion ) const;
+ SAL_DLLPRIVATE void ImplClipSiblings( vcl::Region& rRegion ) const;
SAL_DLLPRIVATE void ImplInitWinClipRegion();
SAL_DLLPRIVATE void ImplInitWinChildClipRegion();
SAL_DLLPRIVATE vcl::Region* ImplGetWinChildClipRegion();
- SAL_DLLPRIVATE void ImplIntersectAndUnionOverlapWindows( const vcl::Region& rInterRegion, vcl::Region& rRegion );
+ SAL_DLLPRIVATE void ImplIntersectAndUnionOverlapWindows( const vcl::Region& rInterRegion, vcl::Region& rRegion ) const;
SAL_DLLPRIVATE void ImplIntersectAndUnionOverlapWindows2( const vcl::Region& rInterRegion, vcl::Region& rRegion );
- SAL_DLLPRIVATE void ImplCalcOverlapRegionOverlaps( const vcl::Region& rInterRegion, vcl::Region& rRegion );
+ SAL_DLLPRIVATE void ImplCalcOverlapRegionOverlaps( const vcl::Region& rInterRegion, vcl::Region& rRegion ) const;
SAL_DLLPRIVATE void ImplCalcOverlapRegion( const tools::Rectangle& rSourceRect, vcl::Region& rRegion,
bool bChildren, bool bSiblings );
@@ -699,7 +699,7 @@ private:
SAL_DLLPRIVATE bool ImplUpdatePos();
SAL_DLLPRIVATE void ImplUpdateSysObjPos();
- SAL_DLLPRIVATE void ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl = true );
+ SAL_DLLPRIVATE void ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl = true ) const;
SAL_DLLPRIVATE void ImplToBottomChild();
@@ -712,7 +712,7 @@ private:
SAL_DLLPRIVATE void ImplHideAllOverlaps();
SAL_DLLPRIVATE bool ImplDlgCtrl( const KeyEvent& rKEvt, bool bKeyInput );
- SAL_DLLPRIVATE bool ImplHasDlgCtrl();
+ SAL_DLLPRIVATE bool ImplHasDlgCtrl() const;
SAL_DLLPRIVATE void ImplDlgCtrlNextWindow();
SAL_DLLPRIVATE void ImplDlgCtrlFocusChanged( vcl::Window* pWindow, bool bGetFocus );
SAL_DLLPRIVATE vcl::Window* ImplFindDlgCtrlWindow( vcl::Window* pWindow );
@@ -1192,7 +1192,7 @@ public:
ScrollBar* pVScrl );
void SaveBackground( const Point& rPos, const Size& rSize,
- VirtualDevice& rSaveDevice );
+ VirtualDevice& rSaveDevice ) const;
virtual const SystemEnvData* GetSystemData() const;
css::uno::Any GetSystemDataAny() const;