Kaydet (Commit) adea1c3d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove unncessary casts

Change-Id: I5a2a465bec4fe38de683ce989264062a70a12d36
üst c684cde0
...@@ -153,11 +153,11 @@ DECLARE_RTFIMPORT_TEST(testN192129, "n192129.rtf") ...@@ -153,11 +153,11 @@ DECLARE_RTFIMPORT_TEST(testN192129, "n192129.rtf")
uno::Reference<container::XIndexAccess> xIndexAccess(xTextGraphicObjectsSupplier->getGraphicObjects(), uno::UNO_QUERY); uno::Reference<container::XIndexAccess> xIndexAccess(xTextGraphicObjectsSupplier->getGraphicObjects(), uno::UNO_QUERY);
uno::Reference<drawing::XShape> xShape(xIndexAccess->getByIndex(0), uno::UNO_QUERY); uno::Reference<drawing::XShape> xShape(xIndexAccess->getByIndex(0), uno::UNO_QUERY);
awt::Size aActualSize(xShape->getSize()); 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); 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); CPPUNIT_ASSERT_EQUAL(sal_Int32(aExpectedSize.Height()), aActualSize.Height);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment