diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-26 10:27:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-26 11:46:38 +0200 |
commit | 5be1635d45e28e047af0cde4e387b07a3131cc9d (patch) | |
tree | d2bd0d9f133c10e563655081174d1481a68e09b3 /sw/source/filter/ww8/wrtw8nds.cxx | |
parent | loplugin: cstylecast (diff) | |
download | core-5be1635d45e28e047af0cde4e387b07a3131cc9d.tar.gz core-5be1635d45e28e047af0cde4e387b07a3131cc9d.zip |
loplugin: cstylecast
Change-Id: Idce7220056f7bc339a5060fd0bd6fbbbdde4f6ff
Diffstat (limited to 'sw/source/filter/ww8/wrtw8nds.cxx')
-rw-r--r-- | sw/source/filter/ww8/wrtw8nds.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index a5f6c0b04d24..3dac90607203 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -1577,7 +1577,7 @@ OUString SwWW8AttrIter::GetSnippet(const OUString &rStr, sal_Int32 nAktPos, m_rExport.m_aCurrentCharPropStarts.push( nAktPos ); const SfxPoolItem &rItem = GetItem(RES_CHRATR_CASEMAP); - if (SVX_CASEMAP_TITEL == ((const SvxCaseMapItem&)rItem).GetValue()) + if (SVX_CASEMAP_TITEL == static_cast<const SvxCaseMapItem&>(rItem).GetValue()) { sal_uInt16 nScriptType = i18n::ScriptType::LATIN; if (g_pBreakIt->GetBreakIter().is()) @@ -1587,14 +1587,14 @@ OUString SwWW8AttrIter::GetSnippet(const OUString &rStr, sal_Int32 nAktPos, switch (nScriptType) { case i18n::ScriptType::ASIAN: - nLanguage = ((const SvxLanguageItem&)GetItem(RES_CHRATR_CJK_LANGUAGE)).GetLanguage(); + nLanguage = static_cast<const SvxLanguageItem&>(GetItem(RES_CHRATR_CJK_LANGUAGE)).GetLanguage(); break; case i18n::ScriptType::COMPLEX: - nLanguage = ((const SvxLanguageItem&)GetItem(RES_CHRATR_CTL_LANGUAGE)).GetLanguage(); + nLanguage = static_cast<const SvxLanguageItem&>(GetItem(RES_CHRATR_CTL_LANGUAGE)).GetLanguage(); break; case i18n::ScriptType::LATIN: default: - nLanguage = ((const SvxLanguageItem&)GetItem(RES_CHRATR_LANGUAGE)).GetLanguage(); + nLanguage = static_cast<const SvxLanguageItem&>(GetItem(RES_CHRATR_LANGUAGE)).GetLanguage(); break; } @@ -2806,7 +2806,7 @@ bool MSWordExportBase::NoPageBreakSection( const SfxItemSet* pSet ) bNoPageBreak = true; else { - SvxBreak eBreak = ((const SvxFmtBreakItem*)pI)->GetBreak(); + SvxBreak eBreak = static_cast<const SvxFmtBreakItem*>(pI)->GetBreak(); switch (eBreak) { case SVX_BREAK_PAGE_BEFORE: |