[Libreoffice-commits] core.git: xmloff/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Mar 4 21:13:05 UTC 2020
xmloff/source/text/XMLLineNumberingImportContext.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 368e9a829e07b3f8624898d69d2c00ec3bc590ec
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Mar 4 14:09:56 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Mar 4 22:12:13 2020 +0100
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 at redhat.com>
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;
More information about the Libreoffice-commits
mailing list