[Libreoffice-commits] .: svtools/source
Michael Stahl
mst at kemper.freedesktop.org
Tue Jul 24 06:17:17 PDT 2012
svtools/source/misc/langtab.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 117fb70532aeae01327bfe0d828ef8a2d4793b85
Author: Michael Stahl <mstahl at redhat.com>
Date: Tue Jul 24 15:14:53 2012 +0200
fdo#51659: static assertion for STR_ARR_SVT_LANGUAGE_TABLE
Change-Id: I5588198452a609dd541d51ac7a84cd5773949ae7
diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx
index 9168daf..92c91a6 100644
--- a/svtools/source/misc/langtab.cxx
+++ b/svtools/source/misc/langtab.cxx
@@ -26,6 +26,7 @@
*
************************************************************************/
+#include <boost/static_assert.hpp>
#include <tools/shl.hxx>
@@ -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 ) )
{
More information about the Libreoffice-commits
mailing list