From 4250b25c6ae361359300ab6ccde27230f8e01039 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Jul 2017 14:49:15 +0200 Subject: teach unnecessaryparen loplugin about identifiers Change-Id: I5710b51e53779c222cec0bf08cd34bda330fec4b Reviewed-on: https://gerrit.libreoffice.org/39737 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- extensions/source/bibliography/bibload.cxx | 4 ++-- extensions/source/logging/loggerconfig.cxx | 2 +- extensions/source/propctrlr/formcomponenthandler.cxx | 2 +- extensions/source/propctrlr/taborder.cxx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'extensions/source') diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx index 121641c5966f..830cd0a4295f 100644 --- a/extensions/source/bibliography/bibload.cxx +++ b/extensions/source/bibliography/bibload.cxx @@ -349,9 +349,9 @@ Reference< XNameAccess > const & BibliographyLoader::GetDataColumns() const xResultSetProps->setPropertyValue("CommandType", aCommandType); Any aTableName; aTableName <<= aBibDesc.sTableOrQuery; xResultSetProps->setPropertyValue("Command", aTableName); - Any aResultSetType; aResultSetType <<= (sal_Int32)(ResultSetType::SCROLL_INSENSITIVE); + Any aResultSetType; aResultSetType <<= (sal_Int32)ResultSetType::SCROLL_INSENSITIVE; xResultSetProps->setPropertyValue("ResultSetType", aResultSetType); - Any aResultSetCurrency; aResultSetCurrency <<= (sal_Int32)(ResultSetConcurrency::UPDATABLE); + Any aResultSetCurrency; aResultSetCurrency <<= (sal_Int32)ResultSetConcurrency::UPDATABLE; xResultSetProps->setPropertyValue("ResultSetConcurrency", aResultSetCurrency); bool bSuccess = false; diff --git a/extensions/source/logging/loggerconfig.cxx b/extensions/source/logging/loggerconfig.cxx index 1d1938936cd0..02ddd0e52776 100644 --- a/extensions/source/logging/loggerconfig.cxx +++ b/extensions/source/logging/loggerconfig.cxx @@ -187,7 +187,7 @@ namespace logging pSetting->Value = xServiceSettingsNode->getByName( *pSettingNames ); if ( _pSettingTranslation ) - (_pSettingTranslation)( _rxLogger, pSetting->Name, pSetting->Value ); + _pSettingTranslation( _rxLogger, pSetting->Name, pSetting->Value ); } } diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index b3d451142417..fefcf1173935 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -865,7 +865,7 @@ namespace pcr case PROPERTY_ID_TABSTOP: // BORDER and TABSTOP are normalized (see impl_normalizePropertyValue_nothrow) // to not allow VOID values - pProperty->Attributes &= ~( PropertyAttribute::MAYBEVOID ); + pProperty->Attributes &= ~PropertyAttribute::MAYBEVOID; break; case PROPERTY_ID_LISTSOURCE: diff --git a/extensions/source/propctrlr/taborder.cxx b/extensions/source/propctrlr/taborder.cxx index 5a68e8b42f1e..b78f8e49f80d 100644 --- a/extensions/source/propctrlr/taborder.cxx +++ b/extensions/source/propctrlr/taborder.cxx @@ -374,7 +374,7 @@ namespace pcr if ( ( nThumbPos + nVisibleSize + 1 ) < (long)( nLastSelPos + 3 ) ) GetVScroll()->DoScrollAction(ScrollType::LineDown); - else if((nThumbPos+nVisibleSize+1) >= (nFirstVisible)) + else if((nThumbPos+nVisibleSize+1) >= nFirstVisible) GetVScroll()->DoScrollAction(ScrollType::LineUp); } } -- cgit