From 7dd5c37e1e4113cac967082bf0f6b66adfbbd326 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Mon, 19 Mar 2018 11:08:11 +0100 Subject: Improve error message on token inconsistency Change-Id: Ib8f4d0d008b495139defb162b1b5105e5e271c67 Reviewed-on: https://gerrit.libreoffice.org/51536 Reviewed-by: Samuel Mehrbrodt Tested-by: Samuel Mehrbrodt --- xmloff/source/core/xmltoken.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmloff') 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(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; } -- cgit