summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_export.cxx2
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_import.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
index 5d802a380d93..fad368c04117 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
@@ -833,7 +833,7 @@ void ElementDescriptor::readButtonTypeAttr( OUString const & rPropName, OUString
Any a( _xProps->getPropertyValue( rPropName ) );
if (auto n = o3tl::tryAccess<sal_Int16>(a))
{
- switch ((awt::PushButtonType)*n)
+ switch (static_cast<awt::PushButtonType>(*n))
{
case awt::PushButtonType_STANDARD:
addAttribute( rAttrName, "standard" );
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
index 8104ac4495ab..0abf8453843a 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
@@ -1090,7 +1090,7 @@ bool ImportContext::importButtonTypeProperty(
throw xml::sax::SAXException( "invalid button-type value!", Reference< XInterface >(), Any() );
}
- _xControlModel->setPropertyValue( rPropName, makeAny( (sal_Int16)nButtonType ) );
+ _xControlModel->setPropertyValue( rPropName, makeAny( static_cast<sal_Int16>(nButtonType) ) );
return true;
}
return false;