diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-01 15:20:46 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-02 07:57:37 +0200 |
commit | 1fe8e60c014df28c6d5a9bf06e868d4764e661d5 (patch) | |
tree | 0ac60084df7ddc18c9c00edb617776c7b9226703 /reportdesign | |
parent | 1e34462c538cda04f9afcbdb0f7b9ead26fc94be (diff) |
loplugin:unuseddefaultparam in reportdesign
Change-Id: I7663ed82da85794ed8409f03e21940cd26786c5a
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/inc/DesignView.hxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/inc/UITools.hxx | 3 | ||||
-rw-r--r-- | reportdesign/source/ui/misc/UITools.cxx | 4 | ||||
-rw-r--r-- | reportdesign/source/ui/report/DesignView.cxx | 4 |
4 files changed, 6 insertions, 7 deletions
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 <TRUE/> all objects are taken into account, otherwise only not marked ones * \return the object which is overlapped, otherwise <NULL/>. If the given object is not of type OUnoObject <NULL/> 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<OUnoObject*>(_pObj) != nullptr || dynamic_cast<OOle2Obj*>(_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) |