summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlfonte.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-01 10:16:28 +0200
committerNoel Grandin <noel@peralex.com>2014-12-02 09:32:09 +0200
commit5504035ac07442cc2b77b53f953fcd7d8a4d8648 (patch)
treeda3cb936e02c7b5ecc3f395895da5f075e8d7611 /sw/source/filter/xml/xmlfonte.cxx
parentd08c6a829690c984a2f7389c85456e258a99235d (diff)
loplugin: cstylecast
Change-Id: Ia6d6c5a2821fb5b221fbfcc174a4a661556d4441
Diffstat (limited to 'sw/source/filter/xml/xmlfonte.cxx')
-rw-r--r--sw/source/filter/xml/xmlfonte.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/xml/xmlfonte.cxx b/sw/source/filter/xml/xmlfonte.cxx
index 154a9e96caf5..8574cd7ddcd7 100644
--- a/sw/source/filter/xml/xmlfonte.cxx
+++ b/sw/source/filter/xml/xmlfonte.cxx
@@ -51,7 +51,7 @@ SwXMLFontAutoStylePool_Impl::SwXMLFontAutoStylePool_Impl(
const sal_uInt16 nWhichId = aWhichIds[i];
const SvxFontItem& rFont =
- (const SvxFontItem&)rPool.GetDefaultItem( nWhichId );
+ static_cast<const SvxFontItem&>(rPool.GetDefaultItem( nWhichId ));
Add( rFont.GetFamilyName(), rFont.GetStyleName(),
rFont.GetFamily(), rFont.GetPitch(),
rFont.GetCharSet() );
@@ -61,7 +61,7 @@ SwXMLFontAutoStylePool_Impl::SwXMLFontAutoStylePool_Impl(
if( 0 != (pItem = rPool.GetItem2( nWhichId, j ) ) )
{
const SvxFontItem *pFont =
- (const SvxFontItem *)pItem;
+ static_cast<const SvxFontItem *>(pItem);
Add( pFont->GetFamilyName(), pFont->GetStyleName(),
pFont->GetFamily(), pFont->GetPitch(),
pFont->GetCharSet() );