diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-02-24 17:01:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-02-24 17:01:47 +0100 |
commit | adea1c3dd147eab9308bfecf9439f693981be9c1 (patch) | |
tree | 53ef6de1736718e57df09486df71725984481177 /sw/qa | |
parent | c684cde025e750d24de47260a2166a46428cdffc (diff) |
Remove unncessary casts
Change-Id: I5a2a465bec4fe38de683ce989264062a70a12d36
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 4 |
1 files 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<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); } |