diff options
author | Eike Rathke <erack@redhat.com> | 2019-08-19 18:28:19 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2019-08-19 19:50:03 +0200 |
commit | 3eb837565878ebb2da5a11c3286a1f1ef0899183 (patch) | |
tree | 9f1ec60928f5b07bf709b131c0a8a4e00ec8291d /svl | |
parent | 8efd46ed867b66f9fbc31dbaa1d46bc91ea29ae2 (diff) |
Add build time check for NF_INDEX_TABLE_ENTRIES <= nFirstFreeFormatIndex
This was just tribal knowledge..
Change-Id: I3d4d93d6eae01c2f3f73a309043bf59dcca10ff6
Reviewed-on: https://gerrit.libreoffice.org/77749
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index 6d8a906a0038..5b7aadb8ebd5 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -45,6 +45,7 @@ #include "zforscan.hxx" #include "zforfind.hxx" #include <svl/zformat.hxx> +#include <i18npool/reservedconstants.hxx> #include <unotools/syslocaleoptions.hxx> #include <unotools/digitgroupingiterator.hxx> @@ -92,6 +93,12 @@ using namespace ::std; static_assert( ZF_STANDARD_TEXT == NF_STANDARD_FORMAT_TEXT, "definition mismatch" ); +static_assert( NF_INDEX_TABLE_ENTRIES <= i18npool::nFirstFreeFormatIndex, + "NfIndexTableOffset crosses i18npool's locale data reserved format code index bounds.\n" + "You will need to adapt all locale data files defining index values " + "(formatIndex=\"...\") in that range and increment those and when done " + "adjust nFirstFreeFormatIndex in i18npool/reservedconstants.hxx"); + /* Locale that is set if an unknown locale (from another system) is loaded of * legacy documents. Can not be SYSTEM because else, for example, a German "DM" * (old currency) is recognized as a date (#53155#). */ |