summaryrefslogtreecommitdiff
path: root/basic/source/inc
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/inc')
-rw-r--r--basic/source/inc/buffer.hxx3
-rw-r--r--basic/source/inc/iosys.hxx4
-rw-r--r--basic/source/inc/token.hxx2
3 files changed, 5 insertions, 4 deletions
diff --git a/basic/source/inc/buffer.hxx b/basic/source/inc/buffer.hxx
index 3b1b5a8b555e..525a193566c6 100644
--- a/basic/source/inc/buffer.hxx
+++ b/basic/source/inc/buffer.hxx
@@ -21,12 +21,13 @@
#define INCLUDED_BASIC_SOURCE_INC_BUFFER_HXX
#include <rtl/ustring.hxx>
+#include <memory>
class SbiParser;
class SbiBuffer {
SbiParser* pParser; // for error messages
- char* pBuf;
+ std::unique_ptr<char[]> pBuf;
char* pCur;
sal_uInt32 nOff;
sal_uInt32 nSize;
diff --git a/basic/source/inc/iosys.hxx b/basic/source/inc/iosys.hxx
index 151bdf11d6b7..9deb4bda4c96 100644
--- a/basic/source/inc/iosys.hxx
+++ b/basic/source/inc/iosys.hxx
@@ -47,7 +47,7 @@ namespace o3tl
class SbiStream
{
- SvStream* pStrm;
+ std::unique_ptr<SvStream> pStrm;
sal_uInt64 nExpandOnWriteTo; // during writing access expand the stream to this size
OString aLine;
sal_uInt64 nLine;
@@ -76,7 +76,7 @@ public:
sal_uInt64 GetLine() const { return nLine; }
void SetExpandOnWriteTo( sal_uInt64 n ) { nExpandOnWriteTo = n; }
void ExpandFile();
- SvStream* GetStrm() { return pStrm; }
+ SvStream* GetStrm() { return pStrm.get(); }
};
class SbiIoSystem
diff --git a/basic/source/inc/token.hxx b/basic/source/inc/token.hxx
index e3b3a8a5473b..43f535b8cc0d 100644
--- a/basic/source/inc/token.hxx
+++ b/basic/source/inc/token.hxx
@@ -117,7 +117,7 @@ enum SbiToken {
// #i109076
class TokenLabelInfo
{
- bool* m_pTokenCanBeLabelTab;
+ std::unique_ptr<bool[]> m_pTokenCanBeLabelTab;
public:
TokenLabelInfo();