summaryrefslogtreecommitdiff
path: root/include/editeng/eerdll.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-11 12:53:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-13 13:08:52 +0000
commitcd8fdb46fd9a215532688585f3466d36b1daa1ac (patch)
tree8e25067a0e72ce5afe9c490f9eef567821f594c7 /include/editeng/eerdll.hxx
parente6d7d737522124350a17a3cfdee055f03200a274 (diff)
new loplugin: useuniqueptr: editeng
Change-Id: I6df65eab882780d996ee996b5fef8020186b6d98 Reviewed-on: https://gerrit.libreoffice.org/32958 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng/eerdll.hxx')
-rw-r--r--include/editeng/eerdll.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/editeng/eerdll.hxx b/include/editeng/eerdll.hxx
index bbf2a6ca65c3..74034f249bd3 100644
--- a/include/editeng/eerdll.hxx
+++ b/include/editeng/eerdll.hxx
@@ -24,6 +24,7 @@ class GlobalEditData;
#include <tools/resid.hxx>
#include <editeng/editengdllapi.h>
+#include <memory>
class EDITENG_DLLPUBLIC EditResId: public ResId
{
@@ -33,14 +34,14 @@ public:
class EditDLL
{
- GlobalEditData* pGlobalData;
+ std::unique_ptr<GlobalEditData> pGlobalData;
public:
EditDLL();
~EditDLL();
static ResMgr* GetResMgr();
- GlobalEditData* GetGlobalData() const { return pGlobalData; }
+ GlobalEditData* GetGlobalData() const { return pGlobalData.get(); }
static EditDLL& Get();
};