diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-25 13:31:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-26 03:04:57 +0200 |
commit | 5440274a2a295fb2662ea415f25b89fc298930c8 (patch) | |
tree | 12bd533de441a263c4fb8ecb83846b7d32906d67 /reportdesign | |
parent | 4e67474a6e4dbfeff5316dcf08b44cfead148609 (diff) |
loplugin:constmethod in reportdesign
Change-Id: I0076890abb4b5bb179171353b19097f6ebf8aa31
Reviewed-on: https://gerrit.libreoffice.org/79542
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/inc/RptPage.hxx | 2 | ||||
-rw-r--r-- | reportdesign/inc/UndoActions.hxx | 2 | ||||
-rw-r--r-- | reportdesign/source/core/inc/Group.hxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/dlg/GroupsSorting.cxx | 4 | ||||
-rw-r--r-- | reportdesign/source/ui/inc/dlgedfunc.hxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/report/dlgedfunc.cxx | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/reportdesign/inc/RptPage.hxx b/reportdesign/inc/RptPage.hxx index 80d65c6777f6..abfa883f93eb 100644 --- a/reportdesign/inc/RptPage.hxx +++ b/reportdesign/inc/RptPage.hxx @@ -71,7 +71,7 @@ public: void removeSdrObject(const css::uno::Reference< css::report::XReportComponent >& _xObject); void setSpecialMode() {m_bSpecialInsertMode = true;} - bool getSpecialMode() {return m_bSpecialInsertMode;} + bool getSpecialMode() const {return m_bSpecialInsertMode;} // all temporary objects will remove and destroy void resetSpecialMode(); diff --git a/reportdesign/inc/UndoActions.hxx b/reportdesign/inc/UndoActions.hxx index 883d409f9e93..4b52aeef31fb 100644 --- a/reportdesign/inc/UndoActions.hxx +++ b/reportdesign/inc/UndoActions.hxx @@ -64,7 +64,7 @@ namespace rptui } css::uno::Reference< css::report::XSection > getHeader() { return m_xGroup->getHeader(); } css::uno::Reference< css::report::XSection > getFooter() { return m_xGroup->getFooter(); } - const css::uno::Reference< css::report::XGroup >& getGroup() { return m_xGroup; } + const css::uno::Reference< css::report::XGroup >& getGroup() const { return m_xGroup; } bool getHeaderOn() { return m_xGroup->getHeaderOn(); } bool getFooterOn() { return m_xGroup->getFooterOn(); } diff --git a/reportdesign/source/core/inc/Group.hxx b/reportdesign/source/core/inc/Group.hxx index e4039c120178..ef2587bd36bd 100644 --- a/reportdesign/source/core/inc/Group.hxx +++ b/reportdesign/source/core/inc/Group.hxx @@ -160,7 +160,7 @@ namespace reportdesign cppu::WeakComponentImplHelperBase::removeEventListener(aListener); } - const css::uno::Reference< css::uno::XComponentContext >& getContext(){ return m_xContext; } + const css::uno::Reference< css::uno::XComponentContext >& getContext() const { return m_xContext; } }; } // namespace reportdesign diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx index 5bdc020c929c..abd9102c46fa 100644 --- a/reportdesign/source/ui/dlg/GroupsSorting.cxx +++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx @@ -119,7 +119,7 @@ public: void fillColumns(const uno::Reference< container::XNameAccess>& _xColumns); void lateInit(); - bool IsDeleteAllowed( ); + bool IsDeleteAllowed( ) const; void DeleteRows(); sal_Int32 getGroupPosition(sal_Int32 _nRow) const { return _nRow != BROWSER_ENDOFSELECTION ? m_aGroupPositions[_nRow] : sal_Int32(NO_GROUP); } @@ -654,7 +654,7 @@ void OFieldExpressionControl::elementRemoved(const container::ContainerEvent& ev } } -bool OFieldExpressionControl::IsDeleteAllowed( ) +bool OFieldExpressionControl::IsDeleteAllowed( ) const { return !m_pParent->isReadOnly() && GetSelectRowCount() > 0; } diff --git a/reportdesign/source/ui/inc/dlgedfunc.hxx b/reportdesign/source/ui/inc/dlgedfunc.hxx index e4a546d9f76d..a7bfac55421d 100644 --- a/reportdesign/source/ui/inc/dlgedfunc.hxx +++ b/reportdesign/source/ui/inc/dlgedfunc.hxx @@ -73,7 +73,7 @@ protected: returns true, as long as only customshapes in the marked list, custom shapes can drop every where */ - bool isOnlyCustomShapeMarked(); + bool isOnlyCustomShapeMarked() const; /** activate object if it is of type OBJ_OLE2 */ diff --git a/reportdesign/source/ui/report/dlgedfunc.cxx b/reportdesign/source/ui/report/dlgedfunc.cxx index 19aa64308845..10eb3b4a1d11 100644 --- a/reportdesign/source/ui/report/dlgedfunc.cxx +++ b/reportdesign/source/ui/report/dlgedfunc.cxx @@ -533,7 +533,7 @@ void DlgEdFunc::checkMovementAllowed(const MouseEvent& rMEvt) m_pParent->getSectionWindow()->getViewsWindow()->EndAction(); } -bool DlgEdFunc::isOnlyCustomShapeMarked() +bool DlgEdFunc::isOnlyCustomShapeMarked() const { bool bReturn = true; const SdrMarkList& rMarkList = m_rView.GetMarkedObjectList(); |