diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-05 08:32:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-05 11:08:48 +0200 |
commit | 4b2262ab5b10f334f1984fec84d2978db81c58f1 (patch) | |
tree | de56663eba6ed2edf7a26127339dd8563fdf47be /sax | |
parent | ec1de6895d84fbe4f2d5fb7135a59a918138d970 (diff) |
new loplugin unnecessaryparen
Change-Id: Ic883a07b30069ca6342d7521c8ad890f4326f0ec
Reviewed-on: https://gerrit.libreoffice.org/39549
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/qa/cppunit/xmlimport.cxx | 2 | ||||
-rw-r--r-- | sax/source/expatwrap/xml2utf.cxx | 2 | ||||
-rw-r--r-- | sax/source/tools/converter.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sax/qa/cppunit/xmlimport.cxx b/sax/qa/cppunit/xmlimport.cxx index f6f320696d3d..543de556b8e8 100644 --- a/sax/qa/cppunit/xmlimport.cxx +++ b/sax/qa/cppunit/xmlimport.cxx @@ -287,7 +287,7 @@ const OString DummyTokenHandler::namespacePrefixes[] = { "", "w", "Player" }; Sequence< sal_Int8 > DummyTokenHandler::getUTF8Identifier( sal_Int32 nToken ) { OString aUtf8Token; - if ( ( ( nToken & 0xffff0000 ) != 0 ) ) //namespace + if ( ( nToken & 0xffff0000 ) != 0 ) //namespace { sal_uInt32 nNamespaceToken = ( nToken >> 16 ) - 1; if ( nNamespaceToken < SAL_N_ELEMENTS(namespacePrefixes) ) diff --git a/sax/source/expatwrap/xml2utf.cxx b/sax/source/expatwrap/xml2utf.cxx index f11062c3bc32..64d21ca88c70 100644 --- a/sax/source/expatwrap/xml2utf.cxx +++ b/sax/source/expatwrap/xml2utf.cxx @@ -182,7 +182,7 @@ bool XMLFile2UTFConverter::isEncodingRecognizable( const Sequence< sal_Int8 > &s bCheckIfFirstClosingBracketExsists = true; } else if( ('<' == pSource[0] || '<' == pSource[2] ) && - ( ('?' == pSource[4] || '?' == pSource[6] ) ) ) + ('?' == pSource[4] || '?' == pSource[6] ) ) { // check for utf-16 bCheckIfFirstClosingBracketExsists = true; diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index 6144fac70dee..b1e7344ebf74 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -1063,7 +1063,7 @@ readDurationComponent(const OUString & rString, sal_Int32 & io_rnPos, sal_Int32 & io_rnTemp, bool & io_rbTimePart, sal_Int32 & o_rnTarget, const sal_Unicode c) { - if ((io_rnPos < rString.getLength())) + if (io_rnPos < rString.getLength()) { if (c == rString[io_rnPos]) { |