diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-06-06 00:50:58 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-07-20 01:26:07 -0400 |
commit | 008a4e976c10b1023ccf7045d357b07486d1d9be (patch) | |
tree | b08e62bda33399036d7fa3f05b0879741244b15b /svx | |
parent | fc6faa580f0c9848622ea28eb1d68c170db31bb0 (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>
(cherry picked from commit fd393faa68d5979d319900438a789d40630a56ec)
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdmodel.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index 5fd292fe131b..1def8fffa55f 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -108,7 +108,7 @@ struct SdrModelImpl void SdrModel::ImpCtor(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* _pEmbeddedHelper, bool bUseExtColorTable, bool bLoadRefCounts) { - mpImpl = new SdrModelImpl; + mpImpl.reset(new SdrModelImpl); mpImpl->mpUndoManager=nullptr; mpImpl->mpUndoFactory=nullptr; mbInDestruction = false; @@ -318,7 +318,6 @@ SdrModel::~SdrModel() delete mpNumberFormatter; delete mpImpl->mpUndoFactory; - delete mpImpl; } void SdrModel::SetSwapGraphics( bool bSwap ) |