diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-03 15:55:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-06 12:40:33 +0200 |
commit | 2855fa6eef83ec670d927b46dc7f987c66d93057 (patch) | |
tree | 3778a32a82115ed8db5897bdce5a1ca3d4db2a8a /sd/source/ui | |
parent | fc79121c95d111d519e58478b48957d2d4f8612d (diff) |
loplugin:useuniqueptr in DeleteOnDeinit
Change-Id: If7428654a2577ba67aea57904d2a2b5099c4d602
Reviewed-on: https://gerrit.libreoffice.org/58568
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/view/viewoverlaymanager.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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 <sddll.hxx> +#include <o3tl/make_unique.hxx> #include <sfx2/viewfrm.hxx> #include <sfx2/bindings.hxx> #include <sfx2/app.hxx> @@ -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<BitmapEx>(aSmallPlaceHolders[i])); + gLargeButtonImages[i].set(o3tl::make_unique<BitmapEx>(aBigPlaceHolders[i])); } } |