diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-16 14:41:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-19 08:58:46 +0200 |
commit | 263d7325691f4b0a1bda155f1c53bbcf712e9f09 (patch) | |
tree | 024ca8d5fd98d09053faa6c4b22afb91098890d2 /include/basic | |
parent | 9653ac69f8c9fdfcd353a1b15c701139dd541e9b (diff) |
loplugin:useuniqueptr in SbModule
Change-Id: I20525bd69c91ff35c9e569525a0d4556bc184982
Diffstat (limited to 'include/basic')
-rw-r--r-- | include/basic/sbmod.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/basic/sbmod.hxx b/include/basic/sbmod.hxx index 56a139e23e59..c38c7435ccef 100644 --- a/include/basic/sbmod.hxx +++ b/include/basic/sbmod.hxx @@ -28,6 +28,7 @@ #include <rtl/ustring.hxx> #include <vector> #include <deque> +#include <memory> #include <basic/basicdllapi.h> #include <basic/codecompletecache.hxx> @@ -62,9 +63,9 @@ protected: css::uno::Reference< css::script::XInvocation > mxWrapper; OUString aOUSource; OUString aComment; - SbiImage* pImage; // the Image - SbiBreakpoints* pBreaks; // Breakpoints - SbClassData* pClassData; + std::unique_ptr<SbiImage> pImage; // the Image + std::unique_ptr<SbiBreakpoints> pBreaks; // Breakpoints + std::unique_ptr<SbClassData> pClassData; bool mbVBACompat; sal_Int32 mnType; SbxObjectRef pDocObject; // an impl object ( used by Document Modules ) |