From 0fe6f1a196b70f0ba4c948389b2ef9b1e77187b8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 3 Apr 2017 10:55:16 +0200 Subject: use actual UNO enums in vcl..xmlsecurity Change-Id: Id862544f27ebcbe8363f93dc83192d0f0cddb5cc Reviewed-on: https://gerrit.libreoffice.org/36041 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlscript/source/xmldlg_imexp/xmldlg_export.cxx | 2 +- xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xmlscript') diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx index f88f86119ff1..0e3bc40c3b0b 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx @@ -834,7 +834,7 @@ void ElementDescriptor::readButtonTypeAttr( OUString const & rPropName, OUString Any a( _xProps->getPropertyValue( rPropName ) ); if (auto n = o3tl::tryAccess(a)) { - switch (*n) + switch ((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 1e9f6e990d45..32edd32ea4cf 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx @@ -1070,7 +1070,7 @@ bool ImportContext::importButtonTypeProperty( _pImport->XMLNS_DIALOGS_UID, rAttrName ) ); if (!buttonType.isEmpty()) { - sal_Int16 nButtonType; + awt::PushButtonType nButtonType; if ( buttonType == "standard" ) { nButtonType = awt::PushButtonType_STANDARD; -- cgit