From c690d38b066bb9cda3e6af790c36fb37d2e0dea3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 16 Nov 2017 13:09:02 +0200 Subject: TypedWhichId for EE_CHAR* constants Change-Id: I261f8a949ddd858dee196118bb42993a101a2a28 Reviewed-on: https://gerrit.libreoffice.org/44829 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/controller/main/ChartTransferable.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'chart2') diff --git a/chart2/source/controller/main/ChartTransferable.cxx b/chart2/source/controller/main/ChartTransferable.cxx index 8fb95fa29de6..2eeb46a764f2 100644 --- a/chart2/source/controller/main/ChartTransferable.cxx +++ b/chart2/source/controller/main/ChartTransferable.cxx @@ -122,8 +122,7 @@ bool ChartTransferable::WriteObject( tools::SvRef& rxOStm, voi // for the changed pool defaults from drawing layer pool set those // attributes as hard attributes to preserve them for saving const SfxItemPool& rItemPool = pMarkedObjModel->GetItemPool(); - const SvxFontHeightItem& rDefaultFontHeight = static_cast< const SvxFontHeightItem& >( - rItemPool.GetDefaultItem( EE_CHAR_FONTHEIGHT ) ); + const SvxFontHeightItem& rDefaultFontHeight = rItemPool.GetDefaultItem( EE_CHAR_FONTHEIGHT ); sal_uInt16 nCount = pMarkedObjModel->GetPageCount(); for ( sal_uInt16 i = 0; i < nCount; ++i ) { @@ -132,8 +131,7 @@ bool ChartTransferable::WriteObject( tools::SvRef& rxOStm, voi while ( aIter.IsMore() ) { SdrObject* pObj = aIter.Next(); - const SvxFontHeightItem& rItem = static_cast< const SvxFontHeightItem& >( - pObj->GetMergedItem( EE_CHAR_FONTHEIGHT ) ); + const SvxFontHeightItem& rItem = pObj->GetMergedItem( EE_CHAR_FONTHEIGHT ); if ( rItem.GetHeight() == rDefaultFontHeight.GetHeight() ) { pObj->SetMergedItem( rDefaultFontHeight ); -- cgit