summaryrefslogtreecommitdiff
path: root/sw/source/uibase/lingu/hhcwrp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-01 10:17:45 +0200
committerNoel Grandin <noel@peralex.com>2014-12-02 09:32:10 +0200
commite5764b7d04429549658c1eaf1189428aa504f0da (patch)
treea59a3fb91d15c7dec7cbb1ef1d8392913c6dd0aa /sw/source/uibase/lingu/hhcwrp.cxx
parentc91ece97c00a780c1ed745aed64b20958e9ee2aa (diff)
loplugin: cstylecast
Change-Id: I9a0f424adbcf95fb5ab275b90af1c56ae1d2fc44
Diffstat (limited to 'sw/source/uibase/lingu/hhcwrp.cxx')
-rw-r--r--sw/source/uibase/lingu/hhcwrp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/lingu/hhcwrp.cxx b/sw/source/uibase/lingu/hhcwrp.cxx
index 3061cb9b24c4..5314869113ef 100644
--- a/sw/source/uibase/lingu/hhcwrp.cxx
+++ b/sw/source/uibase/lingu/hhcwrp.cxx
@@ -503,7 +503,7 @@ void SwHHCWrapper::ReplaceUnit(
OSL_ENSURE( pTargetFont, "target font missing?" );
if (pTargetFont && pNewUnitLanguage)
{
- SvxFontItem aFontItem = (SvxFontItem&) aSet.Get( RES_CHRATR_CJK_FONT );
+ SvxFontItem aFontItem(static_cast<const SvxFontItem&>( aSet.Get( RES_CHRATR_CJK_FONT ) ));
aFontItem.SetFamilyName( pTargetFont->GetName());
aFontItem.SetFamily( pTargetFont->GetFamily());
aFontItem.SetStyleName( pTargetFont->GetStyleName());