summaryrefslogtreecommitdiff
path: root/vcl/inc/accmgr.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-10 15:36:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-11 07:40:35 +0100
commiteefd133d901a3f701cfaa8bbc04c7c99ef56161d (patch)
tree0e0e29d8ec950f2a360add18de8f84fd113ccf6b /vcl/inc/accmgr.hxx
parentb27fee9e0ebb445ce82baeade3b249807dca392b (diff)
loplugin:useuniqueptr in ImplAccelManager
Change-Id: Ie7968fc709255b07a7045d50aa7641aa4fa70098 Reviewed-on: https://gerrit.libreoffice.org/47728 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc/accmgr.hxx')
-rw-r--r--vcl/inc/accmgr.hxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/vcl/inc/accmgr.hxx b/vcl/inc/accmgr.hxx
index 5cf64501cd8e..1e57ed44dd07 100644
--- a/vcl/inc/accmgr.hxx
+++ b/vcl/inc/accmgr.hxx
@@ -21,24 +21,21 @@
#define INCLUDED_VCL_INC_ACCMGR_HXX
#include <vector>
+#include <memory>
#include <vcl/keycod.hxx>
class Accelerator;
-typedef ::std::vector< Accelerator* > ImplAccelList;
-
class ImplAccelManager
{
private:
- ImplAccelList* mpAccelList;
- ImplAccelList* mpSequenceList;
+ std::unique_ptr<std::vector< Accelerator* >> mpAccelList;
+ std::unique_ptr<std::vector< Accelerator* >> mpSequenceList;
public:
ImplAccelManager()
{
- mpAccelList = nullptr;
- mpSequenceList = nullptr;
}
~ImplAccelManager();