summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-16 14:15:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-17 08:34:42 +0000
commit7a60e90ef05c84923f83882efc01c33fef1ed305 (patch)
tree4c49f1ab14fda2a79e0d8efdb731d4d6fe924eba /idl
parenta9367c1b39600d5a5e2d0067113f06ad59cc37a1 (diff)
new loplugin: useuniqueptr: helpcompiler..io
Change-Id: I6b394163c144e6b5540cb160abb613d56fe327de Reviewed-on: https://gerrit.libreoffice.org/33165 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idl')
-rw-r--r--idl/inc/lex.hxx4
-rw-r--r--idl/source/cmptools/lex.cxx1
2 files changed, 2 insertions, 3 deletions
diff --git a/idl/inc/lex.hxx b/idl/inc/lex.hxx
index 102a08882343..40e7fe1f24a9 100644
--- a/idl/inc/lex.hxx
+++ b/idl/inc/lex.hxx
@@ -106,8 +106,8 @@ class SvTokenStream
OString aStrFalse;
sal_uLong nMaxPos;
- SvFileStream * pInStream;
- OUString aFileName;
+ std::unique_ptr<SvFileStream> pInStream;
+ OUString aFileName;
std::vector<std::unique_ptr<SvToken> > aTokList;
std::vector<std::unique_ptr<SvToken> >::iterator pCurToken;
diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx
index 1626b203119c..58ccf2b3c497 100644
--- a/idl/source/cmptools/lex.cxx
+++ b/idl/source/cmptools/lex.cxx
@@ -91,7 +91,6 @@ SvTokenStream::SvTokenStream( const OUString & rFileName )
SvTokenStream::~SvTokenStream()
{
- delete pInStream;
}
void SvTokenStream::FillTokenList()