summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdedtv.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-13 10:58:54 +0200
committerNoel Grandin <noel@peralex.com>2016-01-13 12:16:23 +0200
commit139c2e8cbde7e176d184c46583d1b78ef851515a (patch)
tree1df9c43c20ceaf4a461d9291e7359ddfde129adb /svx/source/svdraw/svdedtv.cxx
parent6cbf151fa91ce50f7b1582c6e502a4474ba54b8e (diff)
loplugin:unusedmethods unused return value in include/svx
Change-Id: I9a5e937905fd71ecbbf9cb215ff6cc2b7defc6f3
Diffstat (limited to 'svx/source/svdraw/svdedtv.cxx')
-rw-r--r--svx/source/svdraw/svdedtv.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdedtv.cxx b/svx/source/svdraw/svdedtv.cxx
index c2d705c17ff0..ab122e9dbd93 100644
--- a/svx/source/svdraw/svdedtv.cxx
+++ b/svx/source/svdraw/svdedtv.cxx
@@ -104,18 +104,17 @@ SdrEditView::~SdrEditView()
-SdrLayer* SdrEditView::InsertNewLayer(const OUString& rName, sal_uInt16 nPos)
+void SdrEditView::InsertNewLayer(const OUString& rName, sal_uInt16 nPos)
{
SdrLayerAdmin& rLA=mpModel->GetLayerAdmin();
sal_uInt16 nMax=rLA.GetLayerCount();
if (nPos>nMax) nPos=nMax;
- SdrLayer* pNewLayer=rLA.NewLayer(rName,nPos);
+ rLA.NewLayer(rName,nPos);
if( GetModel()->IsUndoEnabled() )
AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoNewLayer(nPos,rLA,*mpModel));
mpModel->SetChanged();
- return pNewLayer;
}
#include <svx/svdogrp.hxx>