Kaydet (Commit) 1fe8e60c authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unuseddefaultparam in reportdesign

Change-Id: I7663ed82da85794ed8409f03e21940cd26786c5a
üst 1e34462c
...@@ -137,7 +137,7 @@ namespace rptui ...@@ -137,7 +137,7 @@ namespace rptui
/** align all marked objects in all sections /** 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. /** All objects will be marked.
*/ */
......
...@@ -147,10 +147,9 @@ namespace rptui ...@@ -147,10 +147,9 @@ namespace rptui
* \param _pObj * \param _pObj
* \param _rPage * \param _rPage
* \param _rView * \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. * \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 /** retrieves the names of the parameters of the command which the given RowSet is bound to
*/ */
......
...@@ -906,13 +906,13 @@ SdrObject* isOver(const Rectangle& _rRect,SdrPage& _rPage,SdrView& _rView,bool _ ...@@ -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; SdrObject* pOverlappedObj = nullptr;
if (dynamic_cast<OUnoObject*>(_pObj) != nullptr || dynamic_cast<OOle2Obj*>(_pObj) != nullptr) // this doesn't need to be done for shapes if (dynamic_cast<OUnoObject*>(_pObj) != nullptr || dynamic_cast<OOle2Obj*>(_pObj) != nullptr) // this doesn't need to be done for shapes
{ {
Rectangle aRect = _pObj->GetCurrentBoundRect(); Rectangle aRect = _pObj->GetCurrentBoundRect();
pOverlappedObj = isOver(aRect,_rPage,_rView,_bUnMarkedObjects,_pObj); pOverlappedObj = isOver(aRect,_rPage,_rView,false/*_bUnMarkedObjects*/,_pObj);
} }
return pOverlappedObj; return pOverlappedObj;
} }
......
...@@ -581,9 +581,9 @@ void ODesignView::setCurrentPage(const OUString& _sLastActivePage) ...@@ -581,9 +581,9 @@ void ODesignView::setCurrentPage(const OUString& _sLastActivePage)
m_pPropWin->setCurrentPage(_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) bool ODesignView::handleKeyEvent(const KeyEvent& _rEvent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment