summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-06-06 00:50:58 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-06 07:07:21 +0000
commitfd393faa68d5979d319900438a789d40630a56ec (patch)
treebfe2043301ca06d919dce9799ed4b9296edd1420 /svx/source
parenta6ea18a9cc83a85f4bf4fce78b7dbef3d1a419c6 (diff)
tdf#89329: use unique_ptr for pImpl in svdmodel
Change-Id: Ied5f57b2cf4004de70d0aec8e1b6b69603428a69 Reviewed-on: https://gerrit.libreoffice.org/25940 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/svdraw/svdmodel.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index b654568ec920..acef3ac0a307 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -107,7 +107,7 @@ struct SdrModelImpl
void SdrModel::ImpCtor(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* _pEmbeddedHelper,
bool bUseExtColorTable)
{
- mpImpl = new SdrModelImpl;
+ mpImpl.reset(new SdrModelImpl);
mpImpl->mpUndoManager=nullptr;
mpImpl->mpUndoFactory=nullptr;
mbInDestruction = false;
@@ -316,7 +316,6 @@ SdrModel::~SdrModel()
delete mpNumberFormatter;
delete mpImpl->mpUndoFactory;
- delete mpImpl;
}
void SdrModel::SetSwapGraphics()