summaryrefslogtreecommitdiff
path: root/forms/source/component/FormComponent.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:23:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:23:58 +0100
commit1099ae1c16cd8323d877e894d8ce213ef8e1c349 (patch)
treef5eb610a9a27de258415a9ae1d14b2972c7a84cb /forms/source/component/FormComponent.cxx
parent11e93c64c33ed17e2286bf3be7a473df43425012 (diff)
More loplugin:cstylecast: forms
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I91065e9ff1c160e5becda1ffa033de7c1b48b7f3
Diffstat (limited to 'forms/source/component/FormComponent.cxx')
-rw-r--r--forms/source/component/FormComponent.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index 5f970008b50a..0f63b890b208 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -863,10 +863,10 @@ Any OControlModel::getPropertyDefaultByHandle( sal_Int32 _nHandle ) const
aReturn <<= OUString();
break;
case PROPERTY_ID_CLASSID:
- aReturn <<= (sal_Int16)FormComponentType::CONTROL;
+ aReturn <<= sal_Int16(FormComponentType::CONTROL);
break;
case PROPERTY_ID_TABINDEX:
- aReturn <<= (sal_Int16)FRM_DEFAULT_TABINDEX;
+ aReturn <<= sal_Int16(FRM_DEFAULT_TABINDEX);
break;
case PROPERTY_ID_NATIVE_LOOK:
aReturn <<= true;
@@ -876,10 +876,10 @@ Any OControlModel::getPropertyDefaultByHandle( sal_Int32 _nHandle ) const
break;
// added for exporting OCX control
case PROPERTY_ID_CONTROL_TYPE_IN_MSO:
- aReturn <<= (sal_Int16)0;
+ aReturn <<= sal_Int16(0);
break;
case PROPERTY_ID_OBJ_ID_IN_MSO:
- aReturn <<= (sal_uInt16)INVALID_OBJ_ID_IN_MSO;
+ aReturn <<= sal_uInt16(INVALID_OBJ_ID_IN_MSO);
break;
default:
if ( m_aPropertyBagHelper.hasDynamicPropertyByHandle( _nHandle ) )
@@ -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 <<= (sal_Int16)m_nControlTypeinMSO;
+ _rValue <<= static_cast<sal_Int16>(m_nControlTypeinMSO);
break;
case PROPERTY_ID_OBJ_ID_IN_MSO:
- _rValue <<= (sal_uInt16)m_nObjIDinMSO;
+ _rValue <<= static_cast<sal_uInt16>(m_nObjIDinMSO);
break;
default:
if ( m_aPropertyBagHelper.hasDynamicPropertyByHandle( _nHandle ) )