diff options
Diffstat (limited to 'svx/source/sdr/contact/viewcontactofe3dcube.cxx')
-rw-r--r-- | svx/source/sdr/contact/viewcontactofe3dcube.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/svx/source/sdr/contact/viewcontactofe3dcube.cxx b/svx/source/sdr/contact/viewcontactofe3dcube.cxx index 94c9776448f7..c717c04feccc 100644 --- a/svx/source/sdr/contact/viewcontactofe3dcube.cxx +++ b/svx/source/sdr/contact/viewcontactofe3dcube.cxx @@ -24,7 +24,7 @@ #include <svx/sdr/primitive2d/sdrattributecreator.hxx> #include <sdr/primitive3d/sdrattributecreator3d.hxx> #include <basegfx/range/b3drange.hxx> - +#include <boost/scoped_ptr.hpp> namespace sdr @@ -71,7 +71,7 @@ namespace sdr aWorldTransform.translate(aCubeRange.getMinX(), aCubeRange.getMinY(), aCubeRange.getMinZ()); // get 3D Object Attributes - drawinglayer::attribute::Sdr3DObjectAttribute* pSdr3DObjectAttribute = drawinglayer::primitive2d::createNewSdr3DObjectAttribute(rItemSet); + boost::scoped_ptr<drawinglayer::attribute::Sdr3DObjectAttribute> pSdr3DObjectAttribute(drawinglayer::primitive2d::createNewSdr3DObjectAttribute(rItemSet)); // calculate texture size to get a perfect mapping for // the front/back sides @@ -83,9 +83,6 @@ namespace sdr aWorldTransform, aTextureSize, aAttribute, *pSdr3DObjectAttribute)); xRetval = drawinglayer::primitive3d::Primitive3DSequence(&xReference, 1); - // delete 3D Object Attributes - delete pSdr3DObjectAttribute; - return xRetval; } } // end of namespace contact |