From 5814f08c01ab7973cc83e6721ef434f5acc63a1a Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 9 May 2020 11:11:13 +0300 Subject: Document relation between three lists that must be in sync Change-Id: I9fc44b6878450d147d21f77ff4daa6939edfa0c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93837 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- xmloff/qa/unit/tokenmap-test.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xmloff/qa/unit') diff --git a/xmloff/qa/unit/tokenmap-test.cxx b/xmloff/qa/unit/tokenmap-test.cxx index fb6916444454..476416fc3933 100644 --- a/xmloff/qa/unit/tokenmap-test.cxx +++ b/xmloff/qa/unit/tokenmap-test.cxx @@ -62,6 +62,8 @@ void TokenmapTest::test_roundTrip() void TokenmapTest::test_listEquality() { //make sure the two token lists stay in sync + // This depends on same order in three places: XMLTokenEnum in include/xmloff/xmltoken.hxx, + // aTokenList in xmloff/source/core/xmltoken.cxx, and xmloff/source/token/tokens.txt for ( sal_Int32 nToken = 0; nToken < XML_TOKEN_COUNT; ++nToken ) { Sequence< sal_Int8 > rUtf8Name = pTokenMap->getUtf8TokenName(nToken); -- cgit