summaryrefslogtreecommitdiff
path: root/svx/source/form
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-23 09:47:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-23 09:48:10 +0000
commited76d1d3504c92bff6bb3e6417e4440572fcd959 (patch)
tree6d06b4a20bef5acf0c1a4118685f09acdd27fbb7 /svx/source/form
parenta61c4ae9cef23a53ea88f957e090bd5ee9b28ca6 (diff)
loplugins:redundantcast teach it about c-style typedef casts
Change-Id: I1ac11a2481c0f4d8be1e1fd7c7637ac0ece3d65c Reviewed-on: https://gerrit.libreoffice.org/35558 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/form')
-rw-r--r--svx/source/form/fmpgeimp.cxx2
-rw-r--r--svx/source/form/fmshell.cxx2
-rw-r--r--svx/source/form/fmshimp.cxx2
-rw-r--r--svx/source/form/formcontrolfactory.cxx6
4 files changed, 6 insertions, 6 deletions
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)!" );