summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-06-29 15:52:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-06-29 22:46:50 +0200
commit1d2777650439108d082bf2c4e9541a499c086ab7 (patch)
treec1a2f38cdb63f463003cac7c2b2c183bbbafdebb /forms
parent202fc3fcdf58c967c6806ecd2d0b11a4cb436522 (diff)
Improved loplugin:redundantcast (const-qualified typedefs): forms
Change-Id: Iaf50a40576e0fc1dde1e221a791bda6e183e5072 Reviewed-on: https://gerrit.libreoffice.org/56696 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/DatabaseForm.cxx2
-rw-r--r--forms/source/component/FormComponent.cxx4
-rw-r--r--forms/source/component/Grid.cxx2
-rw-r--r--forms/source/component/scrollbar.cxx2
-rw-r--r--forms/source/component/spinbutton.cxx2
5 files changed, 6 insertions, 6 deletions
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<sal_Int32>(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<sal_Int16>(m_nControlTypeinMSO);
+ _rValue <<= m_nControlTypeinMSO;
break;
case PROPERTY_ID_OBJ_ID_IN_MSO:
- _rValue <<= static_cast<sal_uInt16>(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<sal_Int16>(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<sal_Int32>(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<sal_Int32>(m_nDefaultSpinValue) );
+ return makeAny( m_nDefaultSpinValue );
}