summaryrefslogtreecommitdiff
path: root/sal/qa/rtl/textenc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:17:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:17:51 +0100
commit5a3bb76cd384fa3760fe8481ce008791258595ad (patch)
tree8544fecc06b73cb43000143339c06ad880b56db4 /sal/qa/rtl/textenc
parentacd1696a066b8fa6fb94a0613939565799413769 (diff)
More loplugin:cstylecast: sal
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I7d89b011464ba5d2dd12e04d5fc9f65cb4daebde
Diffstat (limited to 'sal/qa/rtl/textenc')
-rw-r--r--sal/qa/rtl/textenc/rtl_textcvt.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sal/qa/rtl/textenc/rtl_textcvt.cxx b/sal/qa/rtl/textenc/rtl_textcvt.cxx
index 77d7c6a82ac3..4bfdc41742e8 100644
--- a/sal/qa/rtl/textenc/rtl_textcvt.cxx
+++ b/sal/qa/rtl/textenc/rtl_textcvt.cxx
@@ -71,7 +71,7 @@ void testSingleByteCharSet(SingleByteCharSet const & rSet) {
| RTL_TEXTTOUNICODE_FLAGS_INVALID_ERROR),
&nInfo, &nConverted);
CPPUNIT_ASSERT_EQUAL(nNumber, nSize);
- CPPUNIT_ASSERT_EQUAL((sal_uInt32)0, nInfo);
+ CPPUNIT_ASSERT_EQUAL(sal_uInt32(0), nInfo);
CPPUNIT_ASSERT_EQUAL(nNumber, nConverted);
rtl_destroyTextToUnicodeContext(aConverter, aContext);
rtl_destroyTextToUnicodeConverter(aConverter);
@@ -116,7 +116,7 @@ void testSingleByteCharSet(SingleByteCharSet const & rSet) {
| RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR),
&nInfo, &nConverted);
CPPUNIT_ASSERT_EQUAL(nNumber, nSize);
- CPPUNIT_ASSERT_EQUAL((sal_uInt32)0, nInfo);
+ CPPUNIT_ASSERT_EQUAL(sal_uInt32(0), nInfo);
CPPUNIT_ASSERT_EQUAL(nNumber, nConverted);
rtl_destroyUnicodeToTextContext(aConverter, aContext);
rtl_destroyUnicodeToTextConverter(aConverter);
@@ -163,9 +163,9 @@ void testSingleByteCharSet(SingleByteCharSet const & rSet) {
sal_uInt32 nExpectedInfo = (RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_UNDEFINED);
- CPPUNIT_ASSERT_EQUAL((sal_Size) 0, nSize);
+ CPPUNIT_ASSERT_EQUAL(sal_Size(0), nSize);
CPPUNIT_ASSERT_EQUAL(nExpectedInfo, nInfo);
- CPPUNIT_ASSERT_EQUAL((sal_Size) 0, nConverted);
+ CPPUNIT_ASSERT_EQUAL(sal_Size(0), nConverted);
rtl_destroyTextToUnicodeContext(aConverter, aContext);
rtl_destroyTextToUnicodeConverter(aConverter);
@@ -214,7 +214,7 @@ void doComplexCharSetTest(ComplexCharSetTest const & rTest) {
RTL_TEXTTOUNICODE_FLAGS_GLOBAL_SIGNATURE : 0)),
&nInfo, &nConverted);
CPPUNIT_ASSERT_EQUAL(rTest.m_nUnicodeSize, nSize);
- CPPUNIT_ASSERT_EQUAL((sal_uInt32) 0, nInfo);
+ CPPUNIT_ASSERT_EQUAL(sal_uInt32(0), nInfo);
CPPUNIT_ASSERT_EQUAL(rTest.m_nTextSize, nConverted);
rtl_destroyTextToUnicodeContext(aConverter, aContext);
@@ -264,7 +264,7 @@ void doComplexCharSetTest(ComplexCharSetTest const & rTest) {
nFlags, &nInfo, &nConverted);
nOutput += nSize;
nInput += nConverted;
- CPPUNIT_ASSERT_EQUAL((sal_uInt32) 0,
+ CPPUNIT_ASSERT_EQUAL(sal_uInt32(0),
(nInfo & ~RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL));
}
CPPUNIT_ASSERT_EQUAL(rTest.m_nUnicodeSize, nOutput);