summaryrefslogtreecommitdiff
path: root/basic/source/inc
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2016-08-07 12:24:28 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-13 11:47:50 +0000
commitcb3a00514a6baa9fe7c0660a743b95e1baed7bb8 (patch)
tree9240dcb129cc7c82d41eb780f7ed1cc637c15931 /basic/source/inc
parentf8b734a4e2b235c12e86d84c7691e39d05786032 (diff)
BASIC: Use more often std::unique_ptr
Change-Id: I37f3b35afcf3b4dba30a6ba841a59e0d851f1ebb Reviewed-on: https://gerrit.libreoffice.org/27930 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic/source/inc')
-rw-r--r--basic/source/inc/runtime.hxx4
-rw-r--r--basic/source/inc/symtbl.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/inc/runtime.hxx b/basic/source/inc/runtime.hxx
index 78b39a80bb01..8278f76cbd7f 100644
--- a/basic/source/inc/runtime.hxx
+++ b/basic/source/inc/runtime.hxx
@@ -107,12 +107,12 @@ class SbiRTLData
{
public:
- ::osl::Directory* pDir;
+ std::unique_ptr<osl::Directory> pDir;
SbAttributes nDirFlags;
short nCurDirPos;
OUString sFullNameToBeChecked;
- WildCard* pWildCard;
+ std::unique_ptr<WildCard> pWildCard;
css::uno::Sequence< OUString > aDirSeq;
diff --git a/basic/source/inc/symtbl.hxx b/basic/source/inc/symtbl.hxx
index e51a846a2d02..1fff808467cb 100644
--- a/basic/source/inc/symtbl.hxx
+++ b/basic/source/inc/symtbl.hxx
@@ -88,7 +88,7 @@ protected:
OUString aName;
SbxDataType eType;
SbiSymPool* pIn; // parent pool
- SbiSymPool* pPool; // pool for sub-elements
+ std::unique_ptr<SbiSymPool> pPool; // pool for sub-elements
short nLen; // string length for STRING*n
short nDims;
sal_uInt16 nId;