From 2855fa6eef83ec670d927b46dc7f987c66d93057 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 3 Aug 2018 15:55:58 +0200 Subject: loplugin:useuniqueptr in DeleteOnDeinit Change-Id: If7428654a2577ba67aea57904d2a2b5099c4d602 Reviewed-on: https://gerrit.libreoffice.org/58568 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/view/viewoverlaymanager.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sd/source/ui') diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx index 215a3a0038e7..c65380d83d7d 100644 --- a/sd/source/ui/view/viewoverlaymanager.cxx +++ b/sd/source/ui/view/viewoverlaymanager.cxx @@ -19,6 +19,7 @@ #include +#include #include #include #include @@ -94,8 +95,8 @@ static BitmapEx* getButtonImage( int index, bool large ) { for (sal_uInt16 i = 0; i < SAL_N_ELEMENTS(aSmallPlaceHolders); i++ ) { - gSmallButtonImages[i].set(new BitmapEx(aSmallPlaceHolders[i])); - gLargeButtonImages[i].set(new BitmapEx(aBigPlaceHolders[i])); + gSmallButtonImages[i].set(o3tl::make_unique(aSmallPlaceHolders[i])); + gLargeButtonImages[i].set(o3tl::make_unique(aBigPlaceHolders[i])); } } -- cgit