From ed76d1d3504c92bff6bb3e6417e4440572fcd959 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Mar 2017 09:47:49 +0200 Subject: loplugins:redundantcast teach it about c-style typedef casts Change-Id: I1ac11a2481c0f4d8be1e1fd7c7637ac0ece3d65c Reviewed-on: https://gerrit.libreoffice.org/35558 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/form/fmpgeimp.cxx | 2 +- svx/source/form/fmshell.cxx | 2 +- svx/source/form/fmshimp.cxx | 2 +- svx/source/form/formcontrolfactory.cxx | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'svx/source/form') diff --git a/svx/source/form/fmpgeimp.cxx b/svx/source/form/fmpgeimp.cxx index 7ed87afc1257..5b74fffb0f21 100644 --- a/svx/source/form/fmpgeimp.cxx +++ b/svx/source/form/fmpgeimp.cxx @@ -599,7 +599,7 @@ Reference< XForm > FmFormPageImpl::findFormForDataSource( if (aCursorSource.isEmpty()) { xFormProps->setPropertyValue(FM_PROP_COMMAND, makeAny(_rCursorSource)); - xFormProps->setPropertyValue(FM_PROP_COMMANDTYPE, makeAny((sal_Int32)nCommandType)); + xFormProps->setPropertyValue(FM_PROP_COMMANDTYPE, makeAny(nCommandType)); } } } diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx index 46ded85224d6..d73936b3544f 100644 --- a/svx/source/form/fmshell.cxx +++ b/svx/source/form/fmshell.cxx @@ -751,7 +751,7 @@ void FmFormShell::Execute(SfxRequest &rReq) } if ( nRecord != -1 ) - rController->execute( nSlot, "Position", makeAny( (sal_Int32)nRecord ) ); + rController->execute( nSlot, "Position", makeAny( nRecord ) ); rReq.Done(); } break; diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index c8ba3be334e8..95ab5fa4fc34 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -3267,7 +3267,7 @@ void FmXFormShell::CreateExternalView() #endif // remember the position within the columns if (aRadioPositions.find(aGroupName) == aRadioPositions.end()) - aRadioPositions[aGroupName] = (sal_Int16)nAddedColumns; + aRadioPositions[aGroupName] = nAddedColumns; // any further handling is done below } diff --git a/svx/source/form/formcontrolfactory.cxx b/svx/source/form/formcontrolfactory.cxx index 69768810846f..b86d281fc42e 100644 --- a/svx/source/form/formcontrolfactory.cxx +++ b/svx/source/form/formcontrolfactory.cxx @@ -168,7 +168,7 @@ namespace svxform { OUStringBuffer aBuffer( _rBaseLabel ); aBuffer.append( " " ); - aBuffer.append( (sal_Int32)i++ ); + aBuffer.append( i++ ); sLabel = aBuffer.makeStringAndClear(); } } @@ -604,7 +604,7 @@ namespace svxform if ( aProperty.Type.getTypeClass() == TypeClass_DOUBLE ) aValue <<= (double)nMinValue; else if ( aProperty.Type.getTypeClass() == TypeClass_LONG ) - aValue <<= (sal_Int32)nMinValue; + aValue <<= nMinValue; else { OSL_FAIL( "FormControlFactory::initializeFieldDependentProperties: unexpected property type (MinValue)!" ); @@ -616,7 +616,7 @@ namespace svxform if ( aProperty.Type.getTypeClass() == TypeClass_DOUBLE ) aValue <<= (double)nMaxValue; else if ( aProperty.Type.getTypeClass() == TypeClass_LONG ) - aValue <<= (sal_Int32)nMaxValue; + aValue <<= nMaxValue; else { OSL_FAIL( "FormControlFactory::initializeFieldDependentProperties: unexpected property type (MaxValue)!" ); -- cgit