summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-20 17:08:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-23 08:15:55 +0200
commite098e2d5bf0f0f9452774c133cca23ba7fbd16df (patch)
treedffee85041e308bf0714f0b1bd31b06fb2d667c1 /include
parent00dd50d1a82d04df2baebcc3ae2f5ddab5c43997 (diff)
loplugin:useuniqueptr in MoreButton
and remove unused mpItemList field in ImplMoreButtonData Change-Id: I1eee6958d0f064cec22028399de5fb28e8647617 Reviewed-on: https://gerrit.libreoffice.org/53236 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/morebtn.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/morebtn.hxx b/include/vcl/morebtn.hxx
index 1ee17a348380..4243a1438045 100644
--- a/include/vcl/morebtn.hxx
+++ b/include/vcl/morebtn.hxx
@@ -24,13 +24,14 @@
#include <vcl/dllapi.h>
#include <vcl/mapmod.hxx>
#include <vcl/button.hxx>
+#include <memory>
struct ImplMoreButtonData;
class VCL_DLLPUBLIC MoreButton : public PushButton
{
- ImplMoreButtonData* mpMBData;
+ std::unique_ptr<ImplMoreButtonData> mpMBData;
bool mbState;
MoreButton( const MoreButton & ) = delete;