[Libreoffice-commits] core.git: sal/qa

Stephan Bergmann sbergman at redhat.com
Thu Jul 9 06:10:29 PDT 2015


 sal/qa/rtl/textenc/rtl_textcvt.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4bdd6e8fd5ea5318553b3f8834fce705da5ae5d3
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jul 9 15:09:22 2015 +0200

    Do not call SAL_N_ELEMENTS on empty array
    
    Change-Id: I8b73c61a9662079927344029eb9872c6a19aad76

diff --git a/sal/qa/rtl/textenc/rtl_textcvt.cxx b/sal/qa/rtl/textenc/rtl_textcvt.cxx
index 7a14239..75a6fb7 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() {


More information about the Libreoffice-commits mailing list