From 5685ee25aad4a4debb47fb5896082be48f521d17 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 14 Sep 2017 13:59:33 +0200 Subject: improve redundantcast loplugin to find c-style casts where the expression is a templated method Change-Id: Ifbd1e2cdc72d906fc95a7ec0f9408c3f6d2a836b Reviewed-on: https://gerrit.libreoffice.org/42275 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/dialog/fntctrl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/source/dialog') diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx index e5d9225450c8..c78c8f481d47 100644 --- a/svx/source/dialog/fntctrl.cxx +++ b/svx/source/dialog/fntctrl.cxx @@ -1013,7 +1013,7 @@ void SvxFontPrevWindow::SetFromItemSet(const SfxItemSet &rSet, bool bPreviewBack if( GetWhich( rSet, SID_ATTR_CHAR_CASEMAP, nWhich ) ) { const SvxCaseMapItem& rItem = static_cast( rSet.Get( nWhich ) ); - SvxCaseMap eCaseMap = ( SvxCaseMap ) rItem.GetValue(); + SvxCaseMap eCaseMap = rItem.GetValue(); rFont.SetCaseMap( eCaseMap ); rCJKFont.SetCaseMap( eCaseMap ); // #i78474# small caps do not exist in CTL fonts @@ -1255,7 +1255,7 @@ void SvxFontPrevWindow::Init(const SfxItemSet& rSet) if( ISITEMSET ) { const SvxCaseMapItem& rItem = static_cast( rSet.Get( nWhich ) ); - SvxCaseMap eCaseMap = ( SvxCaseMap ) rItem.GetValue(); + SvxCaseMap eCaseMap = rItem.GetValue(); rFont.SetCaseMap( eCaseMap ); rCJKFont.SetCaseMap( eCaseMap ); // #i78474# small caps do not exist in CTL fonts -- cgit