diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-20 11:52:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-20 13:33:58 +0200 |
commit | 3bb30a68e0604b3006f367fdb4c0a797846c23bc (patch) | |
tree | c5f5d11d9a0656c92ff7196984ca9238df2e89ee /svx/source/mnuctrls | |
parent | efa7f1a549ebf2580d50f6f0bb96e294a5fce670 (diff) |
loplugin: cstylecast
Change-Id: If50022b55a558c4124d71acbbe0ef5eb48801d0b
Diffstat (limited to 'svx/source/mnuctrls')
-rw-r--r-- | svx/source/mnuctrls/fntctl.cxx | 2 | ||||
-rw-r--r-- | svx/source/mnuctrls/fntszctl.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/mnuctrls/fntctl.cxx b/svx/source/mnuctrls/fntctl.cxx index a9d35b5ce49c..d1f68db799ee 100644 --- a/svx/source/mnuctrls/fntctl.cxx +++ b/svx/source/mnuctrls/fntctl.cxx @@ -69,7 +69,7 @@ void SvxFontMenuControl::FillMenu() if ( pDoc ) { const SvxFontListItem* pFonts = - (const SvxFontListItem*)pDoc->GetItem( SID_ATTR_CHAR_FONTLIST ); + static_cast<const SvxFontListItem*>(pDoc->GetItem( SID_ATTR_CHAR_FONTLIST )); const FontList* pList = pFonts ? pFonts->GetFontList(): 0; DBG_ASSERT( pList, "Kein Fonts gefunden" ); pMenu->Fill( pList ); diff --git a/svx/source/mnuctrls/fntszctl.cxx b/svx/source/mnuctrls/fntszctl.cxx index c3d992e97552..ae0c13c5bc57 100644 --- a/svx/source/mnuctrls/fntszctl.cxx +++ b/svx/source/mnuctrls/fntszctl.cxx @@ -117,8 +117,8 @@ void SvxFontSizeMenuControl::StateChanged( if ( pDoc ) { - const SvxFontListItem* pFonts = (const SvxFontListItem*) - pDoc->GetItem( SID_ATTR_CHAR_FONTLIST ); + const SvxFontListItem* pFonts = static_cast<const SvxFontListItem*>( + pDoc->GetItem( SID_ATTR_CHAR_FONTLIST )); const FontList* pList = pFonts ? pFonts->GetFontList(): 0; if ( pList ) @@ -141,7 +141,7 @@ void SvxFontSizeMenuControl::StateChanged( { // daf"ur von der Shell eine Fontliste besorgen const SvxFontListItem* pFonts = - (const SvxFontListItem*)pSh->GetItem( SID_ATTR_CHAR_FONTLIST ); + static_cast<const SvxFontListItem*>(pSh->GetItem( SID_ATTR_CHAR_FONTLIST )); const FontList* pList = pFonts ? pFonts->GetFontList(): NULL; if ( pList ) pMenu->Fill( pList->GetFontName(0), pList ); |