summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-09-20 13:12:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-09-20 13:12:13 +0200
commit0a6c8bde34efbb25f52fcd728d489544424f10ed (patch)
treeb8474a63fc981641cf380df304818ac76ac05fb2 /sal
parent5865af093c9698c7358e6f3b8ae37cd2cb1cfaff (diff)
CPPUNIT_ASSERT_EQUAL disambiguation
Change-Id: I31d30627badb08469f7e0fd3ded957df78b58275
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/rtl/oustringbuffer/test_oustringbuffer_assign.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/sal/qa/rtl/oustringbuffer/test_oustringbuffer_assign.cxx b/sal/qa/rtl/oustringbuffer/test_oustringbuffer_assign.cxx
index e2e6661e5bef..1e894129c649 100644
--- a/sal/qa/rtl/oustringbuffer/test_oustringbuffer_assign.cxx
+++ b/sal/qa/rtl/oustringbuffer/test_oustringbuffer_assign.cxx
@@ -25,49 +25,49 @@ private:
OUString s1("123456789012345");
b1 = s1;
CPPUNIT_ASSERT_EQUAL(s1, b1.toString());
- CPPUNIT_ASSERT_EQUAL(16, b1.getCapacity());
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(16), b1.getCapacity());
OUString s2("abc");
b1 = s2;
CPPUNIT_ASSERT_EQUAL(s2, b1.toString());
- CPPUNIT_ASSERT_EQUAL(16, b1.getCapacity());
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(16), b1.getCapacity());
OUString s3("1234567890123456");
b1 = s3;
CPPUNIT_ASSERT_EQUAL(s3, b1.toString());
- CPPUNIT_ASSERT_EQUAL(32, b1.getCapacity());
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(32), b1.getCapacity());
OUStringBuffer b2;
b2 = "123456789012345";
CPPUNIT_ASSERT_EQUAL(s1, b2.toString());
- CPPUNIT_ASSERT_EQUAL(16, b2.getCapacity());
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(16), b2.getCapacity());
b2 = "abc";
CPPUNIT_ASSERT_EQUAL(s2, b2.toString());
- CPPUNIT_ASSERT_EQUAL(16, b2.getCapacity());
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(16), b2.getCapacity());
b2 = "1234567890123456";
CPPUNIT_ASSERT_EQUAL(s3, b2.toString());
- CPPUNIT_ASSERT_EQUAL(32, b2.getCapacity());
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(32), b2.getCapacity());
#if HAVE_CXX11_UTF16_STRING_LITERAL \
&& (!defined SAL_W32 || defined __MINGW32__)
// sal_Unicode is still wchar_t not char16_t even for MSVC 2015
OUStringBuffer b3;
b3 = u"123456789012345";
CPPUNIT_ASSERT_EQUAL(s1, b3.toString());
- CPPUNIT_ASSERT_EQUAL(16, b3.getCapacity());
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(16), b3.getCapacity());
b3 = u"abc";
CPPUNIT_ASSERT_EQUAL(s2, b3.toString());
- CPPUNIT_ASSERT_EQUAL(16, b3.getCapacity());
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(16), b3.getCapacity());
b3 = u"1234567890123456";
CPPUNIT_ASSERT_EQUAL(s3, b3.toString());
- CPPUNIT_ASSERT_EQUAL(32, b3.getCapacity());
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(32), b3.getCapacity());
#endif
OUStringBuffer b4;
b4 = OUStringLiteral("1") + "23456789012345";
CPPUNIT_ASSERT_EQUAL(s1, b4.toString());
- CPPUNIT_ASSERT_EQUAL(16, b4.getCapacity());
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(16), b4.getCapacity());
b4 = OUStringLiteral("a") + "bc";
CPPUNIT_ASSERT_EQUAL(s2, b4.toString());
- CPPUNIT_ASSERT_EQUAL(16, b4.getCapacity());
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(16), b4.getCapacity());
b4 = OUStringLiteral("1") + "234567890123456";
CPPUNIT_ASSERT_EQUAL(s3, b4.toString());
- CPPUNIT_ASSERT_EQUAL(32, b4.getCapacity());
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(32), b4.getCapacity());
}
CPPUNIT_TEST_SUITE(Test);