summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-03-19 11:08:11 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-03-19 14:34:42 +0100
commit7dd5c37e1e4113cac967082bf0f6b66adfbbd326 (patch)
treeee1160d950d5db1b3451ee11792e716de68ffa3d /xmloff
parent5bb7894a490be0823197d602899d0438e57bfb31 (diff)
Improve error message on token inconsistency
Change-Id: Ib8f4d0d008b495139defb162b1b5105e5e271c67 Reviewed-on: https://gerrit.libreoffice.org/51536 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmltoken.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx
index e28178afdda5..4893fade61ab 100644
--- a/xmloff/source/core/xmltoken.cxx
+++ b/xmloff/source/core/xmltoken.cxx
@@ -3322,7 +3322,8 @@ namespace xmloff { namespace token {
while (pEntry < pEntryEnd)
{
assert(nPos == static_cast<sal_uInt16>(pEntry->eToken));
- // "xmloff::GetXMLToken: inconsistency in the token list!"
+ // Inconsistency in the token list!
+ // The positions in xmltoken.hxx and xmltoken.cxx need to match.
++pEntry;
++nPos;
}