diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-24 13:08:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-27 10:44:25 +0100 |
commit | 2e5508a17660401e1b4b489dbc9f70b978745b75 (patch) | |
tree | 881afcf9d8b9f0a653df0c94a8a2deefdf85670e /filter | |
parent | 470682b3abf0622f5e9663d62d8641f63ceb6f30 (diff) |
loplugin:unnecessaryparen check for (f1()).f2
Change-Id: I93257b0ddd41c649875124d6d5c5faeaa431bae3
Reviewed-on: https://gerrit.libreoffice.org/45218
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/ios2met/ios2met.cxx | 10 | ||||
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 4 | ||||
-rw-r--r-- | filter/source/svg/svgexport.cxx | 4 | ||||
-rw-r--r-- | filter/source/svg/svgwriter.cxx | 4 | ||||
-rw-r--r-- | filter/source/xsltdialog/xmlfiltersettingsdialog.cxx | 4 | ||||
-rw-r--r-- | filter/source/xsltdialog/xmlfiltertabdialog.cxx | 12 |
6 files changed, 19 insertions, 19 deletions
diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx b/filter/source/graphicfilter/ios2met/ios2met.cxx index 8870797d151e..0fde944a6fd7 100644 --- a/filter/source/graphicfilter/ios2met/ios2met.cxx +++ b/filter/source/graphicfilter/ios2met/ios2met.cxx @@ -2275,14 +2275,14 @@ void OS2METReader::ReadImageData(sal_uInt16 nDataID, sal_uInt16 nDataLen) return; } // write (Windows-)BITMAPINFOHEADER: - (p->pBMP)->WriteUInt32( 40 ).WriteUInt32( p->nWidth ).WriteUInt32( p->nHeight ); - (p->pBMP)->WriteUInt16( 1 ).WriteUInt16( p->nBitsPerPixel ); - (p->pBMP)->WriteUInt32( 0 ).WriteUInt32( 0 ).WriteUInt32( 0 ).WriteUInt32( 0 ); - (p->pBMP)->WriteUInt32( 0 ).WriteUInt32( 0 ); + p->pBMP->WriteUInt32( 40 ).WriteUInt32( p->nWidth ).WriteUInt32( p->nHeight ); + p->pBMP->WriteUInt16( 1 ).WriteUInt16( p->nBitsPerPixel ); + p->pBMP->WriteUInt32( 0 ).WriteUInt32( 0 ).WriteUInt32( 0 ).WriteUInt32( 0 ); + p->pBMP->WriteUInt32( 0 ).WriteUInt32( 0 ); // write color table: if (p->nBitsPerPixel<=8) { sal_uInt16 i, nColTabSize=1<<(p->nBitsPerPixel); - for (i=0; i<nColTabSize; i++) (p->pBMP)->WriteUInt32( GetPalette0RGB(i) ); + for (i=0; i<nColTabSize; i++) p->pBMP->WriteUInt32( GetPalette0RGB(i) ); } } // OK, now the map data is being pushed. Unfortunately OS2 and BMP diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index f1b8c65759d6..aedba3aad7b9 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -5412,7 +5412,7 @@ void PPTStyleTextPropReader::Init( SvStream& rIn, const DffRecordHeader& rTextHe if ( !aCharPropList.empty() && ( aCharPropList.back()->mnParagraph != nCurrentPara ) ) { PPTCharPropSet* pCharPropSet = new PPTCharPropSet( *aCharPropList.back(), nCurrentPara ); - (pCharPropSet->maString).clear(); + pCharPropSet->maString.clear(); pCharPropSet->mnOriginalTextPos = nStringLen - 1; aCharPropList.push_back( pCharPropSet ); } @@ -7060,7 +7060,7 @@ PPTTextObj::PPTTextObj( SvStream& rIn, SdrPowerPointImport& rSdrPowerPointImport pCurrent->mpFieldItem.reset( new SvxFieldItem( SvxURLField( pField->GetURL(), aRepresentation, SvxURLFormat::Repr ), EE_FEATURE_FIELD ) ); nHyperLenLeft = 0; } - (pCurrent->maString).clear(); + pCurrent->maString.clear(); pCurrent->SetColor( PPT_COLSCHEME_A_UND_HYPERLINK ); } nIdx++; diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index a01a959bd43e..ce4c169f78bc 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -2093,13 +2093,13 @@ OUString SVGFilter::implGetClassFromShape( const Reference< XShape >& rxShape ) void SVGFilter::implRegisterInterface( const Reference< XInterface >& rxIf ) { if( rxIf.is() ) - (mpSVGExport->getInterfaceToIdentifierMapper()).registerReference( rxIf ); + mpSVGExport->getInterfaceToIdentifierMapper().registerReference( rxIf ); } const OUString & SVGFilter::implGetValidIDFromInterface( const Reference< XInterface >& rxIf ) { - return (mpSVGExport->getInterfaceToIdentifierMapper()).getIdentifier( rxIf ); + return mpSVGExport->getInterfaceToIdentifierMapper().getIdentifier( rxIf ); } diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index 83f4e8ec2580..a77c53b231ed 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -484,13 +484,13 @@ SVGTextWriter::~SVGTextWriter() void SVGTextWriter::implRegisterInterface( const Reference< XInterface >& rxIf ) { if( rxIf.is() ) - (mrExport.getInterfaceToIdentifierMapper()).registerReference( rxIf ); + mrExport.getInterfaceToIdentifierMapper().registerReference( rxIf ); } const OUString & SVGTextWriter::implGetValidIDFromInterface( const Reference< XInterface >& rxIf ) { - return (mrExport.getInterfaceToIdentifierMapper()).getIdentifier( rxIf ); + return mrExport.getInterfaceToIdentifierMapper().getIdentifier( rxIf ); } diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx index c782149148e8..35ece49e3b4c 100644 --- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx +++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx @@ -422,7 +422,7 @@ bool XMLFilterSettingsDialog::insertOrEdit( filter_info_impl* pNewInfo, const fi { if( pOldInfo->maType == pOldInfo->maFilterName ) { - (pNewInfo->maType).clear(); + pNewInfo->maType.clear(); } } @@ -1130,7 +1130,7 @@ void XMLFilterSettingsDialog::initFilterList() Sequence< OUString > aExtensions; if( pValues2->Value >>= aExtensions ) { - (pTempFilter->maExtension).clear(); + pTempFilter->maExtension.clear(); sal_Int32 nCount3( aExtensions.getLength() ); OUString* pExtensions = aExtensions.getArray(); diff --git a/filter/source/xsltdialog/xmlfiltertabdialog.cxx b/filter/source/xsltdialog/xmlfiltertabdialog.cxx index 06c98a1dc6aa..c937e15a9e08 100644 --- a/filter/source/xsltdialog/xmlfiltertabdialog.cxx +++ b/filter/source/xsltdialog/xmlfiltertabdialog.cxx @@ -117,7 +117,7 @@ bool XMLFilterTabDialog::onOk() { nErrorPage = m_nBasicPageId; pErrorId = STR_ERROR_FILTER_NAME_EXISTS; - pFocusWindow = (mpBasicPage->m_pEDFilterName); + pFocusWindow = mpBasicPage->m_pEDFilterName; aReplace1 = mpNewInfo->maFilterName; } @@ -172,7 +172,7 @@ bool XMLFilterTabDialog::onOk() { nErrorPage = m_nBasicPageId; pErrorId = STR_ERROR_TYPE_NAME_EXISTS; - pFocusWindow = (mpBasicPage->m_pEDInterfaceName); + pFocusWindow = mpBasicPage->m_pEDInterfaceName; aReplace1 = mpNewInfo->maInterfaceName; aReplace2 = *pFilterName; } @@ -199,7 +199,7 @@ bool XMLFilterTabDialog::onOk() { pErrorId = STR_ERROR_EXPORT_XSLT_NOT_FOUND; nErrorPage = m_nXSLTPageId; - pFocusWindow = (mpXSLTPage->m_pEDExportXSLT); + pFocusWindow = mpXSLTPage->m_pEDExportXSLT; } } } @@ -215,7 +215,7 @@ bool XMLFilterTabDialog::onOk() { pErrorId = STR_ERROR_IMPORT_XSLT_NOT_FOUND; nErrorPage = m_nXSLTPageId; - pFocusWindow = (mpXSLTPage->m_pEDImportTemplate); + pFocusWindow = mpXSLTPage->m_pEDImportTemplate; } } } @@ -225,7 +225,7 @@ bool XMLFilterTabDialog::onOk() { pErrorId = STR_ERROR_EXPORT_XSLT_NOT_FOUND; nErrorPage = m_nXSLTPageId; - pFocusWindow = (mpXSLTPage->m_pEDExportXSLT); + pFocusWindow = mpXSLTPage->m_pEDExportXSLT; } if (!pErrorId) @@ -239,7 +239,7 @@ bool XMLFilterTabDialog::onOk() { pErrorId = STR_ERROR_IMPORT_TEMPLATE_NOT_FOUND; nErrorPage = m_nXSLTPageId; - pFocusWindow = (mpXSLTPage->m_pEDImportTemplate); + pFocusWindow = mpXSLTPage->m_pEDImportTemplate; } } } |