summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-03 10:55:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-03 11:05:13 +0000
commit0fe6f1a196b70f0ba4c948389b2ef9b1e77187b8 (patch)
treea35bd01d1c9a015cbcca380bc5cb177abc83e3fe /xmlscript
parentd68927c7fd4346311dce58e6059186633996d68b (diff)
use actual UNO enums in vcl..xmlsecurity
Change-Id: Id862544f27ebcbe8363f93dc83192d0f0cddb5cc Reviewed-on: https://gerrit.libreoffice.org/36041 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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 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<sal_Int16>(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;