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

Caolán McNamara caolanm at redhat.com
Sat Oct 22 19:45:42 UTC 2016


 chart2/qa/extras/chart2import.cxx |   32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

New commits:
commit 4cf1fcec634cee1080cc748539c07c23b1579de7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Oct 22 20:44:00 2016 +0100

    fix 32bit builds
    
    where for amusing windows historical reasons sal_Int32 is long and not int
    
    Change-Id: Icb73408b6c8ef245bc809aebc8ffc9f28e57a1e5

diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx
index bff7e81..c8137b9 100644
--- a/chart2/qa/extras/chart2import.cxx
+++ b/chart2/qa/extras/chart2import.cxx
@@ -1137,34 +1137,34 @@ void Chart2ImportTest::testInternalDataProvider() {
     // Parse 42 array
     Reference<chart2::data::XDataSequence> xDataSeq = rxDataProvider->createDataSequenceByValueArray("values-y", "{42;42;42;42}");
     Sequence<Any> xSequence = xDataSeq->getData();
-    CPPUNIT_ASSERT_EQUAL(uno::Any(42), xSequence[0]);
-    CPPUNIT_ASSERT_EQUAL(uno::Any(42), xSequence[1]);
-    CPPUNIT_ASSERT_EQUAL(uno::Any(42), xSequence[2]);
-    CPPUNIT_ASSERT_EQUAL(uno::Any(42), xSequence[3]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(42)), xSequence[0]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(42)), xSequence[1]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(42)), xSequence[2]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(42)), xSequence[3]);
 
     // Parse empty first and last
     xDataSeq = rxDataProvider->createDataSequenceByValueArray("values-y", "{\"\";42;42;\"\"}");
     xSequence = xDataSeq->getData();
-    CPPUNIT_ASSERT_EQUAL(uno::Any(0),  xSequence[0]);
-    CPPUNIT_ASSERT_EQUAL(uno::Any(42), xSequence[1]);
-    CPPUNIT_ASSERT_EQUAL(uno::Any(42), xSequence[2]);
-    CPPUNIT_ASSERT_EQUAL(uno::Any(0),  xSequence[3]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(0)),  xSequence[0]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(42)), xSequence[1]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(42)), xSequence[2]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(0)),  xSequence[3]);
 
     // Parse empty middle
     xDataSeq = rxDataProvider->createDataSequenceByValueArray("values-y", "{42;\"\";\"\";42}");
     xSequence = xDataSeq->getData();
-    CPPUNIT_ASSERT_EQUAL(uno::Any(42), xSequence[0]);
-    CPPUNIT_ASSERT_EQUAL(uno::Any(0),  xSequence[1]);
-    CPPUNIT_ASSERT_EQUAL(uno::Any(0),  xSequence[2]);
-    CPPUNIT_ASSERT_EQUAL(uno::Any(42), xSequence[3]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(42)), xSequence[0]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(0)),  xSequence[1]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(0)),  xSequence[2]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(42)), xSequence[3]);
 
     // Parse mixed types, numeric only role
     xDataSeq = rxDataProvider->createDataSequenceByValueArray("values-y", "{42;\"hello\";0;\"world\"}");
     xSequence = xDataSeq->getData();
-    CPPUNIT_ASSERT_EQUAL(uno::Any(42), xSequence[0]);
-    CPPUNIT_ASSERT_EQUAL(uno::Any(0),  xSequence[1]);
-    CPPUNIT_ASSERT_EQUAL(uno::Any(0),  xSequence[2]);
-    CPPUNIT_ASSERT_EQUAL(uno::Any(0),  xSequence[3]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(42)), xSequence[0]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(0)),  xSequence[1]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(0)),  xSequence[2]);
+    CPPUNIT_ASSERT_EQUAL(uno::Any(sal_Int32(0)),  xSequence[3]);
 
     // Parse mixed types, mixed role
     xDataSeq = rxDataProvider->createDataSequenceByValueArray("categories", "{42;\"hello\";0;\"world\"}");


More information about the Libreoffice-commits mailing list