summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-03-04 14:09:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-03-04 22:12:13 +0100
commit368e9a829e07b3f8624898d69d2c00ec3bc590ec (patch)
treea828b76a598574f65b8d6ab0676edb43c99afded /xmloff
parent6a05f8810684024303047ac9105be4ff5ae8c536 (diff)
ofz#21045 Invalid-enum-value
runtime error: load of value 65535, which is not a valid value for type 'enum LineNumberingToken' Change-Id: I432ba6f46838b499c690f717216b61b127dc2dda Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89977 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLLineNumberingImportContext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/text/XMLLineNumberingImportContext.cxx b/xmloff/source/text/XMLLineNumberingImportContext.cxx
index 6cd7f48575b9..6207df4e48cf 100644
--- a/xmloff/source/text/XMLLineNumberingImportContext.cxx
+++ b/xmloff/source/text/XMLLineNumberingImportContext.cxx
@@ -110,7 +110,7 @@ void XMLLineNumberingImportContext::SetAttribute( sal_uInt16 nPrefixKey,
static const SvXMLTokenMap aTokenMap(aLineNumberingTokenMap);
- enum LineNumberingToken eToken = static_cast<enum LineNumberingToken>(aTokenMap.Get(nPrefixKey, rLocalName));
+ auto eToken = aTokenMap.Get(nPrefixKey, rLocalName);
bool bTmp(false);
sal_Int32 nTmp;