diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-21 15:35:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-23 12:36:15 +0200 |
commit | 5f6f57c26ee15787ca2f775f853e57cfc11d666f (patch) | |
tree | 846d41ae24e8c84690f22ddd08929ba04120780f /lotuswordpro/source/filter/xfilter | |
parent | e2548315bfa103f114cc629a5b99b48f7542e9ac (diff) |
loplugin: cstylecast
Change-Id: Id4c581724e7e5466ffe46f11f0a8da2527c23dc6
Diffstat (limited to 'lotuswordpro/source/filter/xfilter')
4 files changed, 10 insertions, 10 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xfframe.cxx b/lotuswordpro/source/filter/xfilter/xfframe.cxx index 6cb2dde102fc..3eee43d15040 100644 --- a/lotuswordpro/source/filter/xfilter/xfframe.cxx +++ b/lotuswordpro/source/filter/xfilter/xfframe.cxx @@ -97,7 +97,7 @@ void XFFrame::Add(XFContent *pContent) XFContentContainer::Add(pContent); if( pContent->GetContentType() == enumXFContentFrame ) { - XFFrame *pFrame = (XFFrame*)pContent; + XFFrame *pFrame = static_cast<XFFrame*>(pContent); if( pFrame ) { pFrame->SetZIndex(pFrame->m_nZIndex + 1); @@ -199,7 +199,7 @@ void XFFrame::AdjustZIndex() { if( pContent->GetContentType() == enumXFContentFrame ) { - XFFrame *pFrame = (XFFrame*)pContent.get(); + XFFrame *pFrame = static_cast<XFFrame*>(pContent.get()); pFrame->m_nZIndex = m_nZIndex + 1; pFrame->AdjustZIndex(); } diff --git a/lotuswordpro/source/filter/xfilter/xfliststyle.cxx b/lotuswordpro/source/filter/xfilter/xfliststyle.cxx index 7f7050aff846..14d28b2de066 100644 --- a/lotuswordpro/source/filter/xfilter/xfliststyle.cxx +++ b/lotuswordpro/source/filter/xfilter/xfliststyle.cxx @@ -163,7 +163,7 @@ XFListStyle::XFListStyle() m_pListLevels[i]->SetMinLabelWidth(0.499); m_pListLevels[i]->SetIndent(0.501*(i+1)); m_pListLevels[i]->SetLevel(i+1); - ( (XFListlevelNumber*)m_pListLevels[i])->SetNumFmt(nf); + static_cast<XFListlevelNumber*>(m_pListLevels[i])->SetNumFmt(nf); } } @@ -175,12 +175,12 @@ XFListStyle::XFListStyle(const XFListStyle& other):XFStyle(other) type = other.m_pListLevels[i]->m_eListType; if( type == enumXFListLevelNumber ) { - XFListlevelNumber *pNum = (XFListlevelNumber*)other.m_pListLevels[i]; + XFListlevelNumber *pNum = static_cast<XFListlevelNumber*>(other.m_pListLevels[i]); m_pListLevels[i] = new XFListlevelNumber(*pNum); } else if( type == enumXFListLevelBullet ) { - XFListLevelBullet *pBullet = (XFListLevelBullet*)other.m_pListLevels[i]; + XFListLevelBullet *pBullet = static_cast<XFListLevelBullet*>(other.m_pListLevels[i]); m_pListLevels[i] = new XFListLevelBullet(*pBullet); } else @@ -196,12 +196,12 @@ XFListStyle& XFListStyle::operator=(const XFListStyle& other) type = other.m_pListLevels[i]->m_eListType; if( type == enumXFListLevelNumber ) { - XFListlevelNumber *pNum = (XFListlevelNumber*)m_pListLevels[i]; + XFListlevelNumber *pNum = static_cast<XFListlevelNumber*>(m_pListLevels[i]); m_pListLevels[i] = new XFListlevelNumber(*pNum); } else if( type == enumXFListLevelBullet ) { - XFListLevelBullet *pBullet = (XFListLevelBullet*)m_pListLevels[i]; + XFListLevelBullet *pBullet = static_cast<XFListLevelBullet*>(m_pListLevels[i]); m_pListLevels[i] = new XFListLevelBullet(*pBullet); } else diff --git a/lotuswordpro/source/filter/xfilter/xfparastyle.cxx b/lotuswordpro/source/filter/xfilter/xfparastyle.cxx index 1b73242b4390..8364d1ae5c8b 100644 --- a/lotuswordpro/source/filter/xfilter/xfparastyle.cxx +++ b/lotuswordpro/source/filter/xfilter/xfparastyle.cxx @@ -305,7 +305,7 @@ bool XFParaStyle::Equal(IXFStyle *pStyle) if( !pStyle || pStyle->GetStyleFamily() != enumXFStylePara ) return false; - XFParaStyle *pOther = (XFParaStyle*)(pStyle); + XFParaStyle *pOther = static_cast<XFParaStyle*>(pStyle); if( m_nFlag != pOther->m_nFlag ) return false; diff --git a/lotuswordpro/source/filter/xfilter/xfstylecont.cxx b/lotuswordpro/source/filter/xfilter/xfstylecont.cxx index d390ed60577d..517d15b59036 100644 --- a/lotuswordpro/source/filter/xfilter/xfstylecont.cxx +++ b/lotuswordpro/source/filter/xfilter/xfstylecont.cxx @@ -217,7 +217,7 @@ void XFStyleContainer::ManageStyleFont(IXFStyle *pStyle) if( pStyle->GetStyleFamily() == enumXFStyleText ) { - XFTextStyle *pTS = (XFTextStyle*)pStyle; + XFTextStyle *pTS = static_cast<XFTextStyle*>(pStyle); pStyleFont = pTS->GetFont(); if( !pStyleFont.is() ) return; @@ -236,7 +236,7 @@ void XFStyleContainer::ManageStyleFont(IXFStyle *pStyle) } else if( pStyle->GetStyleFamily() == enumXFStylePara ) { - XFParaStyle *pPS = (XFParaStyle*)pStyle; + XFParaStyle *pPS = static_cast<XFParaStyle*>(pStyle); pStyleFont = pPS->GetFont(); if( !pStyleFont.is() ) return; |