diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-03 21:11:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-05 21:18:06 +0200 |
commit | 760cd5b67be4225b6ff47b80a9afa97f2ddb466a (patch) | |
tree | 961ba8fc741a61bbe57e70785bc488614f1a2f12 /sd/qa | |
parent | 03f2dbfabf2d1e8906ac7c3ec5d230facb0ec57c (diff) |
Improved loplugin:cstylecast to reference types: sd
Change-Id: Icce4141f8aef688d85d219021606530839fb276f
Diffstat (limited to 'sd/qa')
-rw-r--r-- | sd/qa/unit/import-tests.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx index d379b1fd86c4..a5be80b54a95 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -594,7 +594,7 @@ void SdImportTest::testFdo72998() SdrObjCustomShape *pObj = dynamic_cast<SdrObjCustomShape *>(pPage->GetObj(2)); CPPUNIT_ASSERT( pObj ); const SdrCustomShapeGeometryItem& rGeometryItem = static_cast<const SdrCustomShapeGeometryItem&>(pObj->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY )); - const css::uno::Any* pViewBox = ((SdrCustomShapeGeometryItem&)rGeometryItem).GetPropertyValueByName( OUString( "ViewBox" ) ); + const css::uno::Any* pViewBox = const_cast<SdrCustomShapeGeometryItem&>(rGeometryItem).GetPropertyValueByName( OUString( "ViewBox" ) ); CPPUNIT_ASSERT_MESSAGE( "Missing ViewBox", pViewBox ); css::awt::Rectangle aViewBox; CPPUNIT_ASSERT( (*pViewBox >>= aViewBox ) ); |