From 1d2777650439108d082bf2c4e9541a499c086ab7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 29 Jun 2018 15:52:53 +0200 Subject: Improved loplugin:redundantcast (const-qualified typedefs): forms Change-Id: Iaf50a40576e0fc1dde1e221a791bda6e183e5072 Reviewed-on: https://gerrit.libreoffice.org/56696 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- forms/source/component/DatabaseForm.cxx | 2 +- forms/source/component/FormComponent.cxx | 4 ++-- forms/source/component/Grid.cxx | 2 +- forms/source/component/scrollbar.cxx | 2 +- forms/source/component/spinbutton.cxx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'forms') diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 58c4d8b7f727..4d7cc390171a 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -1504,7 +1504,7 @@ void ODatabaseForm::getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) const rValue <<= m_bAllowDelete; break; case PROPERTY_ID_PRIVILEGES: - rValue <<= static_cast(m_nPrivileges); + rValue <<= m_nPrivileges; break; case PROPERTY_ID_DYNAMIC_CONTROL_BORDER: rValue = m_aDynamicControlBorder; diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx index a28e9ab5bcb6..b9d9317985ba 100644 --- a/forms/source/component/FormComponent.cxx +++ b/forms/source/component/FormComponent.cxx @@ -914,10 +914,10 @@ void OControlModel::getFastPropertyValue( Any& _rValue, sal_Int32 _nHandle ) con break; // added for exporting OCX control case PROPERTY_ID_CONTROL_TYPE_IN_MSO: - _rValue <<= static_cast(m_nControlTypeinMSO); + _rValue <<= m_nControlTypeinMSO; break; case PROPERTY_ID_OBJ_ID_IN_MSO: - _rValue <<= static_cast(m_nObjIDinMSO); + _rValue <<= m_nObjIDinMSO; break; default: if ( m_aPropertyBagHelper.hasDynamicPropertyByHandle( _nHandle ) ) diff --git a/forms/source/component/Grid.cxx b/forms/source/component/Grid.cxx index 03336a91fa08..652926936842 100644 --- a/forms/source/component/Grid.cxx +++ b/forms/source/component/Grid.cxx @@ -461,7 +461,7 @@ void OGridControlModel::getFastPropertyValue(Any& rValue, sal_Int32 nHandle ) co rValue <<= m_bEnableVisible; break; case PROPERTY_ID_BORDER: - rValue <<= static_cast(m_nBorder); + rValue <<= m_nBorder; break; case PROPERTY_ID_BORDERCOLOR: rValue = m_aBorderColor; diff --git a/forms/source/component/scrollbar.cxx b/forms/source/component/scrollbar.cxx index 1d8e1aacc988..7878c161e7e4 100644 --- a/forms/source/component/scrollbar.cxx +++ b/forms/source/component/scrollbar.cxx @@ -225,7 +225,7 @@ namespace frm Any OScrollBarModel::getDefaultForReset() const { - return makeAny( static_cast(m_nDefaultScrollValue) ); + return makeAny( m_nDefaultScrollValue ); } diff --git a/forms/source/component/spinbutton.cxx b/forms/source/component/spinbutton.cxx index 3156418a4b43..e7699bfbb83c 100644 --- a/forms/source/component/spinbutton.cxx +++ b/forms/source/component/spinbutton.cxx @@ -179,7 +179,7 @@ namespace frm Any OSpinButtonModel::getDefaultForReset() const { - return makeAny( static_cast(m_nDefaultSpinValue) ); + return makeAny( m_nDefaultSpinValue ); } -- cgit