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 --- forms/source/component/Columns.cxx | 2 +- forms/source/component/DatabaseForm.cxx | 2 +- forms/source/component/EditBase.cxx | 2 +- forms/source/component/FormattedField.cxx | 2 +- forms/source/component/Grid.cxx | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'forms/source/component') diff --git a/forms/source/component/Columns.cxx b/forms/source/component/Columns.cxx index c221024dd533..a3ea165dd123 100644 --- a/forms/source/component/Columns.cxx +++ b/forms/source/component/Columns.cxx @@ -539,7 +539,7 @@ void SAL_CALL OGridColumn::read(const Reference& _rxInStream if (nAnyMask & WIDTH) { sal_Int32 nValue = _rxInStream->readLong(); - m_aWidth <<= (sal_Int32)nValue; + m_aWidth <<= nValue; } if (nAnyMask & ALIGN) diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index a98e62422f0e..b8e25b4e2f11 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -1165,7 +1165,7 @@ bool ODatabaseForm::executeRowSet(::osl::ResettableMutexGuard& _rClearForNotifie else nConcurrency = ResultSetConcurrency::READ_ONLY; - m_xAggregateSet->setPropertyValue( PROPERTY_RESULTSET_CONCURRENCY, makeAny( (sal_Int32)nConcurrency ) ); + m_xAggregateSet->setPropertyValue( PROPERTY_RESULTSET_CONCURRENCY, makeAny( nConcurrency ) ); m_xAggregateSet->setPropertyValue( PROPERTY_RESULTSET_TYPE, makeAny( (sal_Int32)ResultSetType::SCROLL_SENSITIVE ) ); bool bSuccess = false; diff --git a/forms/source/component/EditBase.cxx b/forms/source/component/EditBase.cxx index aedecc889582..261efa16073c 100644 --- a/forms/source/component/EditBase.cxx +++ b/forms/source/component/EditBase.cxx @@ -184,7 +184,7 @@ void OEditBaseModel::read(const Reference& _rxInStream) if ((nAnyMask & DEFAULT_LONG) == DEFAULT_LONG) { sal_Int32 nValue = _rxInStream->readLong(); - m_aDefault <<= (sal_Int32)nValue; + m_aDefault <<= nValue; } else if ((nAnyMask & DEFAULT_DOUBLE) == DEFAULT_DOUBLE) { diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx index df531277fe5b..67c0a2b11d51 100644 --- a/forms/source/component/FormattedField.cxx +++ b/forms/source/component/FormattedField.cxx @@ -793,7 +793,7 @@ void OFormattedModel::read(const Reference& _rxInStream) if ((nKey != -1) && m_xAggregateSet.is()) { m_xAggregateSet->setPropertyValue(PROPERTY_FORMATSSUPPLIER, makeAny(xSupplier)); - m_xAggregateSet->setPropertyValue(PROPERTY_FORMATKEY, makeAny((sal_Int32)nKey)); + m_xAggregateSet->setPropertyValue(PROPERTY_FORMATKEY, makeAny(nKey)); } else { diff --git a/forms/source/component/Grid.cxx b/forms/source/component/Grid.cxx index c8128f3e8d9e..c2bb083b7f9c 100644 --- a/forms/source/component/Grid.cxx +++ b/forms/source/component/Grid.cxx @@ -928,7 +928,7 @@ void OGridControlModel::read(const Reference& _rxInStream) if (nAnyMask & ROWHEIGHT) { sal_Int32 nValue = _rxInStream->readLong(); - m_aRowHeight <<= (sal_Int32)nValue; + m_aRowHeight <<= nValue; } FontDescriptor aFont( getFont() ); if ( nAnyMask & FONTATTRIBS ) @@ -970,7 +970,7 @@ void OGridControlModel::read(const Reference& _rxInStream) if (nAnyMask & TEXTCOLOR) { sal_Int32 nValue = _rxInStream->readLong(); - setTextColor( (sal_Int32)nValue ); + setTextColor( nValue ); } // new since version 6 if (nVersion > 5) @@ -989,7 +989,7 @@ void OGridControlModel::read(const Reference& _rxInStream) if (nAnyMask & BACKGROUNDCOLOR) { sal_Int32 nValue = _rxInStream->readLong(); - m_aBackgroundColor <<= (sal_Int32)nValue; + m_aBackgroundColor <<= nValue; } } -- cgit