summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-04 08:53:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-04 10:52:41 +0200
commit7aa7f4d9e4294959748bccf9e763154740251635 (patch)
tree79fc3855ce0cc1141abdda514df374cd42ab259c /svtools
parent6f511a5de909b2fb6cb42b851e0cc90f54fbdd59 (diff)
loplugin:unnecessaryparen include c++ casts
Change-Id: I132d3c66f0562e2c37a02eaf4c168d06c2b473eb Reviewed-on: https://gerrit.libreoffice.org/41874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/imap.cxx6
-rw-r--r--svtools/source/uno/unoiface.cxx26
2 files changed, 16 insertions, 16 deletions
diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx
index f22c87ca6240..c0c1bdfa1cc4 100644
--- a/svtools/source/misc/imap.cxx
+++ b/svtools/source/misc/imap.cxx
@@ -687,21 +687,21 @@ bool ImageMap::operator==( const ImageMap& rImageMap )
{
case IMAP_OBJ_RECTANGLE:
{
- if ( !( static_cast<IMapRectangleObject*>(pObj) )->IsEqual( *static_cast<IMapRectangleObject*>(pEqObj) ) )
+ if ( ! static_cast<IMapRectangleObject*>(pObj)->IsEqual( *static_cast<IMapRectangleObject*>(pEqObj) ) )
bDifferent = true;
}
break;
case IMAP_OBJ_CIRCLE:
{
- if ( !( static_cast<IMapCircleObject*>(pObj) )->IsEqual( *static_cast<IMapCircleObject*>(pEqObj) ) )
+ if ( ! static_cast<IMapCircleObject*>(pObj)->IsEqual( *static_cast<IMapCircleObject*>(pEqObj) ) )
bDifferent = true;
}
break;
case IMAP_OBJ_POLYGON:
{
- if ( !( static_cast<IMapPolygonObject*>(pObj) )->IsEqual( *static_cast<IMapPolygonObject*>(pEqObj) ) )
+ if ( ! static_cast<IMapPolygonObject*>(pObj)->IsEqual( *static_cast<IMapPolygonObject*>(pEqObj) ) )
bDifferent = true;
}
break;
diff --git a/svtools/source/uno/unoiface.cxx b/svtools/source/uno/unoiface.cxx
index 69c413493975..f72207e74133 100644
--- a/svtools/source/uno/unoiface.cxx
+++ b/svtools/source/uno/unoiface.cxx
@@ -187,10 +187,10 @@ VCLXMultiLineEdit::~VCLXMultiLineEdit()
css::uno::Any VCLXMultiLineEdit::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = ::cppu::queryInterface( rType,
- (static_cast< css::awt::XTextComponent* >(this)),
- (static_cast< css::awt::XTextArea* >(this)),
- (static_cast< css::awt::XTextLayoutConstrains* >(this)),
- (static_cast< css::lang::XTypeProvider* >(this)) );
+ static_cast< css::awt::XTextComponent* >(this),
+ static_cast< css::awt::XTextArea* >(this),
+ static_cast< css::awt::XTextLayoutConstrains* >(this),
+ static_cast< css::lang::XTypeProvider* >(this) );
return (aRet.hasValue() ? aRet : VCLXWindow::queryInterface( rType ));
}
@@ -550,9 +550,9 @@ VCLXFileControl::~VCLXFileControl()
css::uno::Any VCLXFileControl::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = ::cppu::queryInterface( rType,
- (static_cast< css::awt::XTextComponent* >(this)),
- (static_cast< css::awt::XTextLayoutConstrains* >(this)),
- (static_cast< css::lang::XTypeProvider* >(this)) );
+ static_cast< css::awt::XTextComponent* >(this),
+ static_cast< css::awt::XTextLayoutConstrains* >(this),
+ static_cast< css::lang::XTypeProvider* >(this) );
return (aRet.hasValue() ? aRet : VCLXWindow::queryInterface( rType ));
}
@@ -1648,8 +1648,8 @@ SVTXNumericField::~SVTXNumericField()
css::uno::Any SVTXNumericField::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = ::cppu::queryInterface( rType,
- (static_cast< css::awt::XNumericField* >(this)),
- (static_cast< css::lang::XTypeProvider* >(this)) );
+ static_cast< css::awt::XNumericField* >(this),
+ static_cast< css::lang::XTypeProvider* >(this) );
return (aRet.hasValue() ? aRet : SVTXFormattedField::queryInterface( rType ));
}
@@ -1815,8 +1815,8 @@ SVTXCurrencyField::~SVTXCurrencyField()
css::uno::Any SVTXCurrencyField::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = ::cppu::queryInterface( rType,
- (static_cast< css::awt::XCurrencyField* >(this)),
- (static_cast< css::lang::XTypeProvider* >(this)) );
+ static_cast< css::awt::XCurrencyField* >(this),
+ static_cast< css::lang::XTypeProvider* >(this) );
return (aRet.hasValue() ? aRet : SVTXFormattedField::queryInterface( rType ));
}
@@ -2103,8 +2103,8 @@ void VCLXProgressBar::ImplUpdateValue()
css::uno::Any VCLXProgressBar::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = ::cppu::queryInterface( rType,
- (static_cast< css::awt::XProgressBar* >(this)),
- (static_cast< css::lang::XTypeProvider* >(this)) );
+ static_cast< css::awt::XProgressBar* >(this),
+ static_cast< css::lang::XTypeProvider* >(this) );
return (aRet.hasValue() ? aRet : VCLXWindow::queryInterface( rType ));
}