summaryrefslogtreecommitdiff
path: root/sal/textenc/tables.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/textenc/tables.cxx')
-rw-r--r--sal/textenc/tables.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sal/textenc/tables.cxx b/sal/textenc/tables.cxx
index ebea916043ad..7400abb1111e 100644
--- a/sal/textenc/tables.cxx
+++ b/sal/textenc/tables.cxx
@@ -22,6 +22,8 @@
#include <cassert>
#include <cstddef>
+#include <boost/static_assert.hpp>
+
#include "rtl/textenc.h"
#include "sal/types.h"
@@ -206,11 +208,17 @@ extern "C" SAL_DLLPUBLIC_EXPORT ImplTextEncodingData const *
&aImplBig5HkscsTextEncodingData, /* BIG5_HKSCS */
&aImplTis620TextEncodingData, /* TIS_620 */
&aImplKoi8UTextEncodingData, /* KOI8_U */
+ NULL, /* TODO! ISCII_DEVANAGARI */
NULL, /* JAVA_UTF8, see above */
&adobeStandardEncodingData, /* ADOBE_STANDARD */
&adobeSymbolEncodingData, /* ADOBE_SYMBOL */
&aImplPT154TextEncodingData, /* PT154 */
&adobeDingbatsEncodingData }; /* ADOBE_DINGBATS */
+
+ //update table above if a new encoding is added
+ BOOST_STATIC_ASSERT(
+ SAL_N_ELEMENTS(aData) == RTL_TEXTENCODING_ADOBE_DINGBATS + 1);
+
return
nEncoding < SAL_N_ELEMENTS(aData) ? aData[nEncoding] : NULL;
}