diff options
author | Noel Grandin <noel@peralex.com> | 2015-02-11 13:20:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-02-23 09:26:58 +0200 |
commit | ba233e87efddf0a6751b35784dca1c805364ff3b (patch) | |
tree | 9d7c8a4256e688c2d47cb6ecf580ac196c4da2c0 /filter | |
parent | a2fa9e2468aa5c4fd4b610c5d0ebc8959e87a072 (diff) |
remove unnecessary parenthesis in return statements
found with
$ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;'
Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/ieps/ieps.cxx | 2 | ||||
-rw-r--r-- | filter/source/msfilter/mscodec.cxx | 4 | ||||
-rw-r--r-- | filter/source/svg/svgdialog.cxx | 10 | ||||
-rw-r--r-- | filter/source/svg/svgwriter.cxx | 8 | ||||
-rw-r--r-- | filter/source/xsltdialog/xmlfiltertabpagexslt.cxx | 2 |
5 files changed, 13 insertions, 13 deletions
diff --git a/filter/source/graphicfilter/ieps/ieps.cxx b/filter/source/graphicfilter/ieps/ieps.cxx index 4261fe36918a..2e5f9a141fa4 100644 --- a/filter/source/graphicfilter/ieps/ieps.cxx +++ b/filter/source/graphicfilter/ieps/ieps.cxx @@ -757,7 +757,7 @@ GraphicImport( SvStream & rStream, Graphic & rGraphic, FilterConfigItem* ) delete[] pHeader; rStream.SetEndian(nOldFormat); rStream.Seek( nOrigPos ); - return ( bRetValue ); + return bRetValue; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/filter/source/msfilter/mscodec.cxx b/filter/source/msfilter/mscodec.cxx index 10b285432297..7a00f1666a9a 100644 --- a/filter/source/msfilter/mscodec.cxx +++ b/filter/source/msfilter/mscodec.cxx @@ -377,7 +377,7 @@ bool MSCodec_Std97::VerifyKey ( (void)memset (pDigest, 0, sizeof(pDigest)); } - return (result); + return result; } bool MSCodec_Std97::InitCipher (sal_uInt32 nCounter) @@ -435,7 +435,7 @@ bool MSCodec_Std97::CreateSaltDigest( const sal_uInt8 nSaltData[16], sal_uInt8 n (void)memcpy(nSaltDigest, pDigest, 16); } - return (result); + return result; } bool MSCodec_Std97::Encode ( diff --git a/filter/source/svg/svgdialog.cxx b/filter/source/svg/svgdialog.cxx index 4cd266721a2b..fe58a3a7652a 100644 --- a/filter/source/svg/svgdialog.cxx +++ b/filter/source/svg/svgdialog.cxx @@ -67,7 +67,7 @@ Sequence< OUString > SAL_CALL SVGDialog_getSupportedServiceNames() Reference< XInterface > SAL_CALL SVGDialog_createInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw( Exception ) { - return( static_cast< cppu::OWeakObject* >( new SVGDialog( comphelper::getComponentContext(rSMgr) ) ) ); + return static_cast< cppu::OWeakObject* >( new SVGDialog( comphelper::getComponentContext(rSMgr) ) ); } @@ -98,7 +98,7 @@ Any SAL_CALL SVGDialog::queryInterface( const Type& rType ) static_cast< XExporter* >( this ) ); } - return( aReturn ); + return aReturn; } @@ -165,13 +165,13 @@ void SVGDialog::executedDialog( sal_Int16 nExecutionResult ) Reference< XPropertySetInfo > SAL_CALL SVGDialog::getPropertySetInfo() throw(RuntimeException, std::exception) { - return( Reference< XPropertySetInfo >( createPropertySetInfo( getInfoHelper() ) ) ); + return Reference< XPropertySetInfo >( createPropertySetInfo( getInfoHelper() ) ); } ::cppu::IPropertyArrayHelper& SVGDialog::getInfoHelper() { - return( *const_cast< SVGDialog *>(this)->getArrayHelper() ); + return *const_cast< SVGDialog *>(this)->getArrayHelper(); } @@ -205,7 +205,7 @@ Sequence< PropertyValue > SAL_CALL SVGDialog::getPropertyValues() maMediaDescriptor[ i ].Value <<= maFilterData; - return( maMediaDescriptor ); + return maMediaDescriptor; } diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index 8b47676c7569..a9c0dc4e56fe 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -114,7 +114,7 @@ SVGAttributeWriter::~SVGAttributeWriter() double SVGAttributeWriter::ImplRound( double fValue, sal_Int32 nDecs ) { - return( floor( fValue * pow( 10.0, (int)nDecs ) + 0.5 ) / pow( 10.0, (int)nDecs ) ); + return floor( fValue * pow( 10.0, (int)nDecs ) + 0.5 ) / pow( 10.0, (int)nDecs ); } void SVGAttributeWriter::ImplGetColorStr( const Color& rColor, OUString& rColorStr ) @@ -1665,7 +1665,7 @@ long SVGActionWriter::ImplMap( sal_Int32 nVal ) const { Size aSz( nVal, nVal ); - return( ImplMap( aSz, aSz ).Width() ); + return ImplMap( aSz, aSz ).Width(); } Point& SVGActionWriter::ImplMap( const Point& rPt, Point& rDstPt ) const @@ -1696,7 +1696,7 @@ Polygon& SVGActionWriter::ImplMap( const Polygon& rPoly, Polygon& rDstPoly ) con rDstPoly.SetFlags( i, rPoly.GetFlags( i ) ); } - return( rDstPoly ); + return rDstPoly; } tools::PolyPolygon& SVGActionWriter::ImplMap( const tools::PolyPolygon& rPolyPoly, tools::PolyPolygon& rDstPolyPoly ) const @@ -1710,7 +1710,7 @@ tools::PolyPolygon& SVGActionWriter::ImplMap( const tools::PolyPolygon& rPolyPol rDstPolyPoly.Insert( ImplMap( rPolyPoly[ i ], aPoly ) ); } - return( rDstPolyPoly ); + return rDstPolyPoly; } OUString SVGActionWriter::GetPathString( const tools::PolyPolygon& rPolyPoly, bool bLine ) diff --git a/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx b/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx index ec812ddd937a..a9d1cae94360 100644 --- a/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx +++ b/filter/source/xsltdialog/xmlfiltertabpagexslt.cxx @@ -170,7 +170,7 @@ IMPL_LINK ( XMLFilterTabPageXSLT, ClickBrowseHdl_Impl, PushButton *, pButton ) SetURL( pURLBox, aURL ); } - return( 0L ); + return 0L; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |