From 1fe8e60c014df28c6d5a9bf06e868d4764e661d5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 1 Mar 2016 15:20:46 +0200 Subject: loplugin:unuseddefaultparam in reportdesign Change-Id: I7663ed82da85794ed8409f03e21940cd26786c5a --- reportdesign/source/ui/inc/DesignView.hxx | 2 +- reportdesign/source/ui/inc/UITools.hxx | 3 +-- reportdesign/source/ui/misc/UITools.cxx | 4 ++-- reportdesign/source/ui/report/DesignView.cxx | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) (limited to 'reportdesign') diff --git a/reportdesign/source/ui/inc/DesignView.hxx b/reportdesign/source/ui/inc/DesignView.hxx index 2f30567452c2..c37abf7e635e 100644 --- a/reportdesign/source/ui/inc/DesignView.hxx +++ b/reportdesign/source/ui/inc/DesignView.hxx @@ -137,7 +137,7 @@ namespace rptui /** align all marked objects in all sections */ - void alignMarkedObjects(sal_Int32 _nControlModification, bool _bAlignAtSection, bool bBoundRects = false); + void alignMarkedObjects(sal_Int32 _nControlModification, bool _bAlignAtSection); /** All objects will be marked. */ diff --git a/reportdesign/source/ui/inc/UITools.hxx b/reportdesign/source/ui/inc/UITools.hxx index cc0f8cae4e82..4587542ed81b 100644 --- a/reportdesign/source/ui/inc/UITools.hxx +++ b/reportdesign/source/ui/inc/UITools.hxx @@ -147,10 +147,9 @@ namespace rptui * \param _pObj * \param _rPage * \param _rView - * \param _bAllObjects if all objects are taken into account, otherwise only not marked ones * \return the object which is overlapped, otherwise . If the given object is not of type OUnoObject will be returned. */ - SdrObject* isOver(SdrObject* _pObj,SdrPage& _rPage,SdrView& _rView,bool _bAllObjects = false); + SdrObject* isOver(SdrObject* _pObj,SdrPage& _rPage,SdrView& _rView); /** retrieves the names of the parameters of the command which the given RowSet is bound to */ diff --git a/reportdesign/source/ui/misc/UITools.cxx b/reportdesign/source/ui/misc/UITools.cxx index efe32db2776a..0feab73edb01 100644 --- a/reportdesign/source/ui/misc/UITools.cxx +++ b/reportdesign/source/ui/misc/UITools.cxx @@ -906,13 +906,13 @@ SdrObject* isOver(const Rectangle& _rRect,SdrPage& _rPage,SdrView& _rView,bool _ } -SdrObject* isOver(SdrObject* _pObj,SdrPage& _rPage,SdrView& _rView,bool _bUnMarkedObjects) +SdrObject* isOver(SdrObject* _pObj,SdrPage& _rPage,SdrView& _rView) { SdrObject* pOverlappedObj = nullptr; if (dynamic_cast(_pObj) != nullptr || dynamic_cast(_pObj) != nullptr) // this doesn't need to be done for shapes { Rectangle aRect = _pObj->GetCurrentBoundRect(); - pOverlappedObj = isOver(aRect,_rPage,_rView,_bUnMarkedObjects,_pObj); + pOverlappedObj = isOver(aRect,_rPage,_rView,false/*_bUnMarkedObjects*/,_pObj); } return pOverlappedObj; } diff --git a/reportdesign/source/ui/report/DesignView.cxx b/reportdesign/source/ui/report/DesignView.cxx index eb2cdb072f2e..b73bca1a48bc 100644 --- a/reportdesign/source/ui/report/DesignView.cxx +++ b/reportdesign/source/ui/report/DesignView.cxx @@ -581,9 +581,9 @@ void ODesignView::setCurrentPage(const OUString& _sLastActivePage) m_pPropWin->setCurrentPage(_sLastActivePage); } -void ODesignView::alignMarkedObjects(sal_Int32 _nControlModification,bool _bAlignAtSection, bool bBoundRects) +void ODesignView::alignMarkedObjects(sal_Int32 _nControlModification,bool _bAlignAtSection) { - m_aScrollWindow->alignMarkedObjects(_nControlModification, _bAlignAtSection,bBoundRects); + m_aScrollWindow->alignMarkedObjects(_nControlModification, _bAlignAtSection); } bool ODesignView::handleKeyEvent(const KeyEvent& _rEvent) -- cgit