Kaydet (Commit) b5ed99e5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

More loplugin:cstylecast: xmlscript

Change-Id: I0dcb16ad325665ac435c2434648ea087ecb5c79f
üst c1f9d1a4
...@@ -833,7 +833,7 @@ void ElementDescriptor::readButtonTypeAttr( OUString const & rPropName, OUString ...@@ -833,7 +833,7 @@ void ElementDescriptor::readButtonTypeAttr( OUString const & rPropName, OUString
Any a( _xProps->getPropertyValue( rPropName ) ); Any a( _xProps->getPropertyValue( rPropName ) );
if (auto n = o3tl::tryAccess<sal_Int16>(a)) if (auto n = o3tl::tryAccess<sal_Int16>(a))
{ {
switch ((awt::PushButtonType)*n) switch (static_cast<awt::PushButtonType>(*n))
{ {
case awt::PushButtonType_STANDARD: case awt::PushButtonType_STANDARD:
addAttribute( rAttrName, "standard" ); addAttribute( rAttrName, "standard" );
......
...@@ -1090,7 +1090,7 @@ bool ImportContext::importButtonTypeProperty( ...@@ -1090,7 +1090,7 @@ bool ImportContext::importButtonTypeProperty(
throw xml::sax::SAXException( "invalid button-type value!", Reference< XInterface >(), Any() ); 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 true;
} }
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment