summaryrefslogtreecommitdiff
path: root/svx/source/engine3d/view3d.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-04 11:23:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-04 12:14:56 +0200
commit97f391d4e5ed89425ca6c5ad52d159a7ce8fdee2 (patch)
treef9ac19fde17d7c25fc36e065f0b220f034ce7532 /svx/source/engine3d/view3d.cxx
parent214e0847f5d1666b4cf23a833bb757f6bace04d0 (diff)
loplugin:checkunusedparams in svx(part1)
Change-Id: Ie98ec3be5ece2579feca050563c5ab7776ad6a7e Reviewed-on: https://gerrit.libreoffice.org/37227 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/engine3d/view3d.cxx')
-rw-r--r--svx/source/engine3d/view3d.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/engine3d/view3d.cxx b/svx/source/engine3d/view3d.cxx
index 8c61c239b913..deb4ffe1d24d 100644
--- a/svx/source/engine3d/view3d.cxx
+++ b/svx/source/engine3d/view3d.cxx
@@ -838,7 +838,7 @@ void E3dView::ConvertMarkedObjTo3D(bool bExtrude, const basegfx::B2DPoint& rPnt1
BegUndo(SVX_RESSTR(RID_SVX_3D_UNDO_LATHE));
// Create a new scene for the created 3D object
- E3dScene* pScene = new E3dScene(Get3DDefaultAttributes());
+ E3dScene* pScene = new E3dScene;
// Determine rectangle and possibly correct it
tools::Rectangle aRect = GetAllMarkedRect();
@@ -1292,7 +1292,6 @@ bool E3dView::BegDragObj(const Point& rPnt, OutputDevice* pOut,
E3dScene* E3dView::SetCurrent3DObj(E3dObject* p3DObj)
{
DBG_ASSERT(p3DObj != nullptr, "Who puts in a NULL-pointer here");
- E3dScene* pScene = nullptr;
// get transformed BoundVolume of the object
basegfx::B3DRange aVolume(p3DObj->GetBoundVolume());
@@ -1302,7 +1301,7 @@ E3dScene* E3dView::SetCurrent3DObj(E3dObject* p3DObj)
tools::Rectangle aRect(0,0, (long) fW, (long) fH);
- pScene = new E3dScene(Get3DDefaultAttributes());
+ E3dScene* pScene = new E3dScene;
InitScene(pScene, fW, fH, aVolume.getMaxZ() + ((fW + fH) / 4.0));