summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:00:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:00:52 +0100
commitb5ed99e5a5adc097283f1409a06d770949fb22af (patch)
treea7bc11f48dbfa92188d152519da56eed8c937e48 /xmlscript
parentc1f9d1a42600e2f5d4fe51d67f461b0397675070 (diff)
More loplugin:cstylecast: xmlscript
Change-Id: I0dcb16ad325665ac435c2434648ea087ecb5c79f
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;