diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-15 15:54:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-16 08:30:26 +0000 |
commit | a2b77b43685884fb4e9be04152a49294fa50db36 (patch) | |
tree | 00d599e81a653dc5c663f9dd179970b3e6aa11f2 /idl | |
parent | 389939b02bde4ea72268960310bbd1f2984200bf (diff) |
loplugin:singlevalfields in basic..idl
Also fix obvious bug in the initialisation of the
connectivity::odbc::OConnection::m_bClosed field.
Probably closes some kind of connection leak there.
Change-Id: I04579cf91bcd6d6c51c697d83971da4142743a82
Reviewed-on: https://gerrit.libreoffice.org/28932
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idl')
-rw-r--r-- | idl/inc/lex.hxx | 2 | ||||
-rw-r--r-- | idl/source/cmptools/lex.cxx | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/idl/inc/lex.hxx b/idl/inc/lex.hxx index 10e41022ae23..102a08882343 100644 --- a/idl/inc/lex.hxx +++ b/idl/inc/lex.hxx @@ -101,7 +101,7 @@ class SvTokenStream sal_uLong nLine, nColumn; int nBufPos; int c; // next character - sal_uInt16 nTabSize; // length of tabulator + static const sal_uInt16 nTabSize = 4; // length of tabulator OString aStrTrue; OString aStrFalse; sal_uLong nMaxPos; diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx index 9774991793a7..1626b203119c 100644 --- a/idl/source/cmptools/lex.cxx +++ b/idl/source/cmptools/lex.cxx @@ -77,7 +77,6 @@ void SvTokenStream::InitCtor() aStrFalse = OString("FALSE"); nLine = nColumn = 0; nBufPos = 0; - nTabSize = 4; nMaxPos = 0; c = GetNextChar(); FillTokenList(); |