From 7299481834b15c920f996f4b0f3b5f821a82a10d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 20 Mar 2017 09:01:33 +0200 Subject: loplugin:redundantcast find redundant c-style enum casts Change-Id: I2dab376d87804521aed6b6bd41ad7762830fa349 Reviewed-on: https://gerrit.libreoffice.org/35467 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/core/data/dptabsrc.cxx | 4 ++-- sc/source/core/tool/interpr1.cxx | 2 +- sc/source/ui/vba/vbarange.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sc') diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx index 1b650bfb8641..27a79cdd93db 100644 --- a/sc/source/core/data/dptabsrc.cxx +++ b/sc/source/core/data/dptabsrc.cxx @@ -1587,10 +1587,10 @@ uno::Any SAL_CALL ScDPDimension::getPropertyValue( const OUString& aPropertyName case sheet::DataPilotFieldReferenceType::ROW_PERCENTAGE: case sheet::DataPilotFieldReferenceType::COLUMN_PERCENTAGE: case sheet::DataPilotFieldReferenceType::TOTAL_PERCENTAGE: - nFormat = pSource->GetData()->GetNumberFormatByIdx( (NfIndexTableOffset)NF_PERCENT_DEC2 ); + nFormat = pSource->GetData()->GetNumberFormatByIdx( NF_PERCENT_DEC2 ); break; case sheet::DataPilotFieldReferenceType::INDEX: - nFormat = pSource->GetData()->GetNumberFormatByIdx( (NfIndexTableOffset)NF_NUMBER_SYSTEM ); + nFormat = pSource->GetData()->GetNumberFormatByIdx( NF_NUMBER_SYSTEM ); break; default: break; diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 96fee0feaee2..fc5e8384c9b6 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -8077,7 +8077,7 @@ bool SAL_CALL lcl_getScriptClass(sal_uInt32 currentChar) return true; sal_uInt16 i; static bool bRet = false; - UBlockCode block = (UBlockCode)ublock_getCode((sal_uInt32)currentChar); + UBlockCode block = ublock_getCode((sal_uInt32)currentChar); for ( i = 0; i < scriptListCount; i++) { if (block <= scriptList[i].to) break; } diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 6a35cd4ece88..534c2922fdc4 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -3604,7 +3604,7 @@ ScVbaRange::End( ::sal_Int32 Direction ) } if ( pDispatcher ) { - pDispatcher->Execute( nSID, (SfxCallMode)SfxCallMode::SYNCHRON, aArgs ); + pDispatcher->Execute( nSID, SfxCallMode::SYNCHRON, aArgs ); } } -- cgit