summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-31 11:05:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-04 08:40:36 +0200
commit05a1ca8e7c86a9928696e6bc5599dbf51b4d7c47 (patch)
tree2113472f9264b3b4c99a7ac53a1a5bb937d91a79 /svx
parent4f2d47bb9a0a66ed37b5364fbdf4cfe902864c5a (diff)
loplugin:useuniqueptr in SvxPreviewBase
Change-Id: I777da1279f1a8c6d6f5ac80e4d72a733d55794ef Reviewed-on: https://gerrit.libreoffice.org/55231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/dlgctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index a5a93dde36c6..b6d9f52709ad 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -1806,7 +1806,7 @@ SvxPreviewBase::~SvxPreviewBase()
void SvxPreviewBase::dispose()
{
- delete mpModel;
+ mpModel.reset();
mpBufferDevice.disposeAndClear();
Control::dispose();
}