summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/txtfrm.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-26 10:27:15 +0200
committerNoel Grandin <noel@peralex.com>2014-11-26 11:46:38 +0200
commit5be1635d45e28e047af0cde4e387b07a3131cc9d (patch)
treed2bd0d9f133c10e563655081174d1481a68e09b3 /sw/source/core/inc/txtfrm.hxx
parentb61ca31e53f0a56667a5e00e966681be29ea7bf7 (diff)
loplugin: cstylecast
Change-Id: Idce7220056f7bc339a5060fd0bd6fbbbdde4f6ff
Diffstat (limited to 'sw/source/core/inc/txtfrm.hxx')
-rw-r--r--sw/source/core/inc/txtfrm.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx
index d76fc92c0f13..3317c270c27d 100644
--- a/sw/source/core/inc/txtfrm.hxx
+++ b/sw/source/core/inc/txtfrm.hxx
@@ -670,9 +670,9 @@ inline bool SwTxtFrm::HasPara() const
/// 9104: Frm().Height() - Prt().Height(), see widorp.cxx and 7455, 6114, 7908
inline SwTwips SwTxtFrm::GetRstHeight() const
{
- return !GetUpper() ? 0 : ((const SwFrm*)GetUpper())->Frm().Top()
- + ((const SwFrm*)GetUpper())->Prt().Top()
- + ((const SwFrm*)GetUpper())->Prt().Height()
+ return !GetUpper() ? 0 : static_cast<const SwFrm*>(GetUpper())->Frm().Top()
+ + static_cast<const SwFrm*>(GetUpper())->Prt().Top()
+ + static_cast<const SwFrm*>(GetUpper())->Prt().Height()
- Frm().Top() - (Frm().Height() - Prt().Height());
}