summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdedtv.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-21 10:15:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-21 10:07:37 +0000
commit0649622956431e0a1955cb80d1175025401ab5e5 (patch)
treecdaa1ff406d232399d53594ad1a32691402ab665 /svx/source/svdraw/svdedtv.cxx
parentede35e5c693a287f31e3c02d8afd33580e827380 (diff)
loplugin:unusedmethods
Change-Id: I52a9f16f3ed543a3c83ca111df70e3f7ae1ef33c Reviewed-on: https://gerrit.libreoffice.org/34508 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdedtv.cxx')
-rw-r--r--svx/source/svdraw/svdedtv.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/svx/source/svdraw/svdedtv.cxx b/svx/source/svdraw/svdedtv.cxx
index 74de5e46e874..97bd8a7b9287 100644
--- a/svx/source/svdraw/svdedtv.cxx
+++ b/svx/source/svdraw/svdedtv.cxx
@@ -676,8 +676,7 @@ void SdrEditView::ForceMarkedObjToAnotherPage()
if(bFnd)
{
pM->GetPageView()->GetObjList()->RemoveObject(pObj->GetOrdNum());
- SdrInsertReason aReason(SdrInsertReasonKind::ViewCall);
- pPV->GetObjList()->InsertObject(pObj, SAL_MAX_SIZE, &aReason);
+ pPV->GetObjList()->InsertObject(pObj, SAL_MAX_SIZE);
pM->SetPageView(pPV);
InvalidateAllWin(aObjRect);
bFlg=true;
@@ -906,8 +905,7 @@ void SdrEditView::CopyMarkedObj()
SdrMark* pM=aSourceObjectsForCopy.GetMark(nm);
SdrObject* pO=pM->GetMarkedSdrObj()->Clone();
if (pO!=nullptr) {
- SdrInsertReason aReason(SdrInsertReasonKind::ViewCall);
- pM->GetPageView()->GetObjList()->InsertObject(pO, SAL_MAX_SIZE, &aReason);
+ pM->GetPageView()->GetObjList()->InsertObject(pO, SAL_MAX_SIZE);
if( bUndo )
AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoCopyObject(*pO));
@@ -969,11 +967,10 @@ bool SdrEditView::InsertObjectAtView(SdrObject* pObj, SdrPageView& rPV, SdrInser
pObj->SetMergedItemSet(maDefaultAttr);
}
if (!pObj->IsInserted()) {
- SdrInsertReason aReason(SdrInsertReasonKind::ViewCall);
if (nOptions & SdrInsertFlags::NOBROADCAST) {
- rPV.GetObjList()->NbcInsertObject(pObj, SAL_MAX_SIZE, &aReason);
+ rPV.GetObjList()->NbcInsertObject(pObj, SAL_MAX_SIZE);
} else {
- rPV.GetObjList()->InsertObject(pObj, SAL_MAX_SIZE, &aReason);
+ rPV.GetObjList()->InsertObject(pObj, SAL_MAX_SIZE);
}
}
if( IsUndoEnabled() )