summaryrefslogtreecommitdiff
path: root/forms/source/component/Button.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:05:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:05:33 +0100
commitc6a62b3694b8d779f9385c0e15d8f94d5067416d (patch)
treeb3be82eccbfe4ef99479b45684ffa5e9b9aeb222 /forms/source/component/Button.cxx
parentbb60b49c3ad5203a657ebd0b2a10fa77fc6a9b05 (diff)
More loplugin:cstylecast: forms
Change-Id: Ide91ff51ef5c048272d742547597d6c66fc3abea
Diffstat (limited to 'forms/source/component/Button.cxx')
-rw-r--r--forms/source/component/Button.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/component/Button.cxx b/forms/source/component/Button.cxx
index 65d72c9b87a1..2ec073bc0e8a 100644
--- a/forms/source/component/Button.cxx
+++ b/forms/source/component/Button.cxx
@@ -143,7 +143,7 @@ void OButtonModel::write(const Reference<XObjectOutputStream>& _rxOutStream)
OStreamSection aSection( _rxOutStream.get() );
// this will allow readers to skip unknown bytes in their dtor
- _rxOutStream->writeShort( (sal_uInt16)m_eButtonType );
+ _rxOutStream->writeShort( static_cast<sal_uInt16>(m_eButtonType) );
OUString sTmp = INetURLObject::decode( m_sTargetURL, INetURLObject::DecodeMechanism::Unambiguous);
_rxOutStream << sTmp;
@@ -163,7 +163,7 @@ void OButtonModel::read(const Reference<XObjectInputStream>& _rxInStream)
{
case 0x0001:
{
- m_eButtonType = (FormButtonType)_rxInStream->readShort();
+ m_eButtonType = static_cast<FormButtonType>(_rxInStream->readShort());
_rxInStream >> m_sTargetURL;
_rxInStream >> m_sTargetFrame;
@@ -172,7 +172,7 @@ void OButtonModel::read(const Reference<XObjectInputStream>& _rxInStream)
case 0x0002:
{
- m_eButtonType = (FormButtonType)_rxInStream->readShort();
+ m_eButtonType = static_cast<FormButtonType>(_rxInStream->readShort());
_rxInStream >> m_sTargetURL;
_rxInStream >> m_sTargetFrame;
@@ -186,7 +186,7 @@ void OButtonModel::read(const Reference<XObjectInputStream>& _rxInStream)
// this will skip any unknown bytes in its dtor
// button type
- m_eButtonType = (FormButtonType)_rxInStream->readShort();
+ m_eButtonType = static_cast<FormButtonType>(_rxInStream->readShort());
// URL
_rxInStream >> m_sTargetURL;
@@ -267,7 +267,7 @@ void SAL_CALL OButtonModel::setFastPropertyValue_NoBroadcast( sal_Int32 _nHandle
{
sal_Int16 nDefaultState = sal_Int16(TRISTATE_FALSE);
OSL_VERIFY( _rValue >>= nDefaultState );
- m_eDefaultState = (ToggleState)nDefaultState;
+ m_eDefaultState = static_cast<ToggleState>(nDefaultState);
impl_resetNoBroadcast_nothrow();
}
break;