[Libreoffice-commits] core.git: sw/qa
Stephan Bergmann
sbergman at redhat.com
Wed Feb 24 16:02:18 UTC 2016
sw/qa/extras/rtfimport/rtfimport.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit adea1c3dd147eab9308bfecf9439f693981be9c1
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Feb 24 17:01:47 2016 +0100
Remove unncessary casts
Change-Id: I5a2a465bec4fe38de683ce989264062a70a12d36
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
index b1a6292..699278a 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -153,11 +153,11 @@ DECLARE_RTFIMPORT_TEST(testN192129, "n192129.rtf")
uno::Reference<container::XIndexAccess> xIndexAccess(xTextGraphicObjectsSupplier->getGraphicObjects(), uno::UNO_QUERY);
uno::Reference<drawing::XShape> xShape(xIndexAccess->getByIndex(0), uno::UNO_QUERY);
awt::Size aActualSize(xShape->getSize());
- if (((((sal_Int32)aExpectedSize.Width()) - aActualSize.Width) / 2) != 0)
+ if ((aExpectedSize.Width() - aActualSize.Width) / 2 != 0)
{
CPPUNIT_ASSERT_EQUAL(sal_Int32(aExpectedSize.Width()), aActualSize.Width);
}
- if (((((sal_Int32)aExpectedSize.Height()) - aActualSize.Height) / 2) != 0)
+ if ((aExpectedSize.Height() - aActualSize.Height) / 2 != 0)
{
CPPUNIT_ASSERT_EQUAL(sal_Int32(aExpectedSize.Height()), aActualSize.Height);
}
More information about the Libreoffice-commits
mailing list