diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:23:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:23:58 +0100 |
commit | 1099ae1c16cd8323d877e894d8ce213ef8e1c349 (patch) | |
tree | f5eb610a9a27de258415a9ae1d14b2972c7a84cb /forms/source/component/FormComponent.cxx | |
parent | 11e93c64c33ed17e2286bf3be7a473df43425012 (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.cxx | 12 |
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 ) ) |