diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-04 08:53:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-04 10:52:41 +0200 |
commit | 7aa7f4d9e4294959748bccf9e763154740251635 (patch) | |
tree | 79fc3855ce0cc1141abdda514df374cd42ab259c /toolkit/source/controls/unocontrols.cxx | |
parent | 6f511a5de909b2fb6cb42b851e0cc90f54fbdd59 (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 'toolkit/source/controls/unocontrols.cxx')
-rw-r--r-- | toolkit/source/controls/unocontrols.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx index 89ab2d222520..b7f5466ab9ef 100644 --- a/toolkit/source/controls/unocontrols.cxx +++ b/toolkit/source/controls/unocontrols.cxx @@ -1645,8 +1645,8 @@ OUString UnoFixedHyperlinkControl::GetComponentServiceName() uno::Any UnoFixedHyperlinkControl::queryAggregation( const uno::Type & rType ) { uno::Any aRet = ::cppu::queryInterface( rType, - (static_cast< awt::XFixedHyperlink* >(this)), - (static_cast< awt::XLayoutConstrains* >(this)) ); + static_cast< awt::XFixedHyperlink* >(this), + static_cast< awt::XLayoutConstrains* >(this) ); return (aRet.hasValue() ? aRet : UnoControlBase::queryAggregation( rType )); } @@ -1846,8 +1846,8 @@ OUString UnoFixedTextControl::GetComponentServiceName() uno::Any UnoFixedTextControl::queryAggregation( const uno::Type & rType ) { uno::Any aRet = ::cppu::queryInterface( rType, - (static_cast< awt::XFixedText* >(this)), - (static_cast< awt::XLayoutConstrains* >(this)) ); + static_cast< awt::XFixedText* >(this), + static_cast< awt::XLayoutConstrains* >(this) ); return (aRet.hasValue() ? aRet : UnoControlBase::queryAggregation( rType )); } @@ -3164,15 +3164,15 @@ void UnoComboBoxControl::dispose() uno::Any UnoComboBoxControl::queryAggregation( const uno::Type & rType ) { uno::Any aRet = ::cppu::queryInterface( rType, - (static_cast< awt::XComboBox* >(this)) ); + static_cast< awt::XComboBox* >(this) ); if ( !aRet.hasValue() ) { aRet = ::cppu::queryInterface( rType, - (static_cast< awt::XItemListener* >(this)) ); + static_cast< awt::XItemListener* >(this) ); if ( !aRet.hasValue() ) { aRet = ::cppu::queryInterface( rType, - (static_cast< awt::XItemListListener* >(this)) ); + static_cast< awt::XItemListListener* >(this) ); } } return (aRet.hasValue() ? aRet : UnoEditControl::queryAggregation( rType )); @@ -3457,7 +3457,7 @@ UnoSpinFieldControl::UnoSpinFieldControl() uno::Any UnoSpinFieldControl::queryAggregation( const uno::Type & rType ) { uno::Any aRet = ::cppu::queryInterface( rType, - (static_cast< awt::XSpinField* >(this)) ); + static_cast< awt::XSpinField* >(this) ); return (aRet.hasValue() ? aRet : UnoEditControl::queryAggregation( rType )); } @@ -3620,7 +3620,7 @@ OUString UnoDateFieldControl::GetComponentServiceName() uno::Any UnoDateFieldControl::queryAggregation( const uno::Type & rType ) { uno::Any aRet = ::cppu::queryInterface( rType, - (static_cast< awt::XDateField* >(this)) ); + static_cast< awt::XDateField* >(this) ); return (aRet.hasValue() ? aRet : UnoSpinFieldControl::queryAggregation( rType )); } @@ -3894,7 +3894,7 @@ OUString UnoTimeFieldControl::GetComponentServiceName() uno::Any UnoTimeFieldControl::queryAggregation( const uno::Type & rType ) { uno::Any aRet = ::cppu::queryInterface( rType, - (static_cast< awt::XTimeField* >(this)) ); + static_cast< awt::XTimeField* >(this) ); return (aRet.hasValue() ? aRet : UnoSpinFieldControl::queryAggregation( rType )); } @@ -4128,7 +4128,7 @@ OUString UnoNumericFieldControl::GetComponentServiceName() uno::Any UnoNumericFieldControl::queryAggregation( const uno::Type & rType ) { uno::Any aRet = ::cppu::queryInterface( rType, - (static_cast< awt::XNumericField* >(this)) ); + static_cast< awt::XNumericField* >(this) ); return (aRet.hasValue() ? aRet : UnoSpinFieldControl::queryAggregation( rType )); } @@ -4357,7 +4357,7 @@ OUString UnoCurrencyFieldControl::GetComponentServiceName() uno::Any UnoCurrencyFieldControl::queryAggregation( const uno::Type & rType ) { uno::Any aRet = ::cppu::queryInterface( rType, - (static_cast< awt::XCurrencyField* >(this)) ); + static_cast< awt::XCurrencyField* >(this) ); return (aRet.hasValue() ? aRet : UnoSpinFieldControl::queryAggregation( rType )); } @@ -4604,7 +4604,7 @@ void UnoPatternFieldControl::ImplSetPeerProperty( const OUString& rPropName, con uno::Any UnoPatternFieldControl::queryAggregation( const uno::Type & rType ) { uno::Any aRet = ::cppu::queryInterface( rType, - (static_cast< awt::XPatternField* >(this)) ); + static_cast< awt::XPatternField* >(this) ); return (aRet.hasValue() ? aRet : UnoSpinFieldControl::queryAggregation( rType )); } @@ -4762,7 +4762,7 @@ OUString UnoProgressBarControl::GetComponentServiceName() uno::Any UnoProgressBarControl::queryAggregation( const uno::Type & rType ) { uno::Any aRet = ::cppu::queryInterface( rType, - (static_cast< awt::XProgressBar* >(this)) ); + static_cast< awt::XProgressBar* >(this) ); return (aRet.hasValue() ? aRet : UnoControlBase::queryAggregation( rType )); } |