diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-12 10:30:00 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-12 12:56:50 +0200 |
commit | a2f66db3a603a5f6802504f776727669811c2489 (patch) | |
tree | 9eca6a27a346c59ffaae507e83a0d193efc40801 /sw/inc/fmthdft.hxx | |
parent | 218840babb2f220c93f1ee9850c873861e547cd3 (diff) |
loplugin: cstylecast
Change-Id: Ica3b54a7c331f0179294e2b52aadd884f53d53dc
Diffstat (limited to 'sw/inc/fmthdft.hxx')
-rw-r--r-- | sw/inc/fmthdft.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/inc/fmthdft.hxx b/sw/inc/fmthdft.hxx index 3fcc988c31cb..ce2afbe6af59 100644 --- a/sw/inc/fmthdft.hxx +++ b/sw/inc/fmthdft.hxx @@ -53,8 +53,8 @@ public: OUString &rText, const IntlWrapper* pIntl = 0 ) const SAL_OVERRIDE; - const SwFrmFmt *GetHeaderFmt() const { return (SwFrmFmt*)GetRegisteredIn(); } - SwFrmFmt *GetHeaderFmt() { return (SwFrmFmt*)GetRegisteredIn(); } + const SwFrmFmt *GetHeaderFmt() const { return static_cast<const SwFrmFmt*>(GetRegisteredIn()); } + SwFrmFmt *GetHeaderFmt() { return static_cast<SwFrmFmt*>(GetRegisteredIn()); } void RegisterToFormat( SwFmt& rFmt ); bool IsActive() const { return bActive; } @@ -86,8 +86,8 @@ public: OUString &rText, const IntlWrapper* pIntl = 0 ) const SAL_OVERRIDE; - const SwFrmFmt *GetFooterFmt() const { return (SwFrmFmt*)GetRegisteredIn(); } - SwFrmFmt *GetFooterFmt() { return (SwFrmFmt*)GetRegisteredIn(); } + const SwFrmFmt *GetFooterFmt() const { return static_cast<const SwFrmFmt*>(GetRegisteredIn()); } + SwFrmFmt *GetFooterFmt() { return static_cast<SwFrmFmt*>(GetRegisteredIn()); } void RegisterToFormat( SwFmt& rFmt ); bool IsActive() const { return bActive; } @@ -95,9 +95,9 @@ public: }; inline const SwFmtHeader &SwAttrSet::GetHeader(bool bInP) const - { return (const SwFmtHeader&)Get( RES_HEADER,bInP); } + { return static_cast<const SwFmtHeader&>(Get( RES_HEADER,bInP)); } inline const SwFmtFooter &SwAttrSet::GetFooter(bool bInP) const - { return (const SwFmtFooter&)Get( RES_FOOTER,bInP); } + { return static_cast<const SwFmtFooter&>(Get( RES_FOOTER,bInP)); } inline const SwFmtHeader &SwFmt::GetHeader(bool bInP) const { return aSet.GetHeader(bInP); } |