diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-25 15:40:07 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-26 11:46:38 +0200 |
commit | b61ca31e53f0a56667a5e00e966681be29ea7bf7 (patch) | |
tree | 812fe8e682bbfae131bd0698a35ddf513795c7bd /sw/source/core/txtnode/atrftn.cxx | |
parent | 47e395cad525385d4a8afdd359bcee2b6380fa22 (diff) |
loplugin: cstylecast
Change-Id: I19be8b6df10515e195a4d3ecb8f003c85d2349c2
Diffstat (limited to 'sw/source/core/txtnode/atrftn.cxx')
-rw-r--r-- | sw/source/core/txtnode/atrftn.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/atrftn.cxx b/sw/source/core/txtnode/atrftn.cxx index 3a0328e6f940..80b5e757b374 100644 --- a/sw/source/core/txtnode/atrftn.cxx +++ b/sw/source/core/txtnode/atrftn.cxx @@ -212,11 +212,11 @@ OUString SwFmtFtn::GetViewNumStr( const SwDoc& rDoc, bool bInclStrings ) const if( pSectNd ) { - const SwFmtFtnEndAtTxtEnd& rFtnEnd = (SwFmtFtnEndAtTxtEnd&) + const SwFmtFtnEndAtTxtEnd& rFtnEnd = static_cast<const SwFmtFtnEndAtTxtEnd&>( pSectNd->GetSection().GetFmt()->GetFmtAttr( IsEndNote() ? static_cast<sal_uInt16>(RES_END_AT_TXTEND) : - static_cast<sal_uInt16>(RES_FTN_AT_TXTEND) ); + static_cast<sal_uInt16>(RES_FTN_AT_TXTEND) ) ); if( FTNEND_ATTXTEND_OWNNUMANDFMT == rFtnEnd.GetValue() ) { @@ -473,7 +473,7 @@ void SwTxtFtn::DelFrms( const SwFrm* pSib ) while ( pFrm && !pFrm->IsFtnFrm() ) pFrm = pFrm->GetUpper(); - SwFtnFrm *pFtn = (SwFtnFrm*)pFrm; + SwFtnFrm *pFtn = static_cast<SwFtnFrm*>(pFrm); while ( pFtn && pFtn->GetMaster() ) pFtn = pFtn->GetMaster(); OSL_ENSURE( pFtn->GetAttr() == this, "Ftn mismatch error." ); |