From adea1c3dd147eab9308bfecf9439f693981be9c1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 24 Feb 2016 17:01:47 +0100 Subject: Remove unncessary casts Change-Id: I5a2a465bec4fe38de683ce989264062a70a12d36 --- sw/qa/extras/rtfimport/rtfimport.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index b1a62929d20e..699278abf5ab 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 xIndexAccess(xTextGraphicObjectsSupplier->getGraphicObjects(), uno::UNO_QUERY); uno::Reference 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); } -- cgit