From 117fb70532aeae01327bfe0d828ef8a2d4793b85 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 24 Jul 2012 15:14:53 +0200 Subject: fdo#51659: static assertion for STR_ARR_SVT_LANGUAGE_TABLE Change-Id: I5588198452a609dd541d51ac7a84cd5773949ae7 --- svtools/source/misc/langtab.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'svtools') diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx index 9168dafa5145..92c91a6c7229 100644 --- a/svtools/source/misc/langtab.cxx +++ b/svtools/source/misc/langtab.cxx @@ -26,6 +26,7 @@ * ************************************************************************/ +#include #include @@ -122,6 +123,12 @@ SVT_DLLPUBLIC const String ApplyLreOrRleEmbedding( const String &rText ) //------------------------------------------------------------------------ +namespace { + BOOST_STATIC_ASSERT( + 16642 == STR_ARR_SVT_LANGUAGE_TABLE); +// "The value of STR_ARR_SVT_LANGUAGE_TABLE has changed. wizards/com/sun/star/wizards/letter/LocaleCodes.java has this value hard coded, please adapt it to your change." +} + SvtLanguageTable::SvtLanguageTable() : ResStringArray( SvtResId( STR_ARR_SVT_LANGUAGE_TABLE ) ) { -- cgit