diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-07-09 15:09:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-07-09 15:09:22 +0200 |
commit | 4bdd6e8fd5ea5318553b3f8834fce705da5ae5d3 (patch) | |
tree | 7a139fe4c32fbd4d54169c2cabfa8cd6c88b776b /sal/qa | |
parent | a93cfd5afb9072de00fc4b2a070f23ebdad6e4fe (diff) |
Do not call SAL_N_ELEMENTS on empty array
Change-Id: I8b73c61a9662079927344029eb9872c6a19aad76
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/rtl/textenc/rtl_textcvt.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/qa/rtl/textenc/rtl_textcvt.cxx b/sal/qa/rtl/textenc/rtl_textcvt.cxx index 7a142394a538..75a6fb7507a3 100644 --- a/sal/qa/rtl/textenc/rtl_textcvt.cxx +++ b/sal/qa/rtl/textenc/rtl_textcvt.cxx @@ -2569,6 +2569,7 @@ void Test::testComplex() { } void Test::testComplexCut() { +#if WITH_LOCALE_ALL || WITH_LOCALE_ja || WITH_LOCALE_zh static ComplexCharSetTest const data[] = { #if WITH_LOCALE_ALL || WITH_LOCALE_ja @@ -2660,6 +2661,7 @@ void Test::testComplexCut() { for (std::size_t i = 0; i < SAL_N_ELEMENTS(data); ++i) { doComplexCharSetCutTest(data[i]); } +#endif } void Test::testSRCBUFFERTOSMALL() { |