summaryrefslogtreecommitdiff
path: root/sw/source/core/text/txtdrop.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-21 14:36:31 +0200
committerNoel Grandin <noel@peralex.com>2014-11-24 14:20:37 +0200
commit0df9e5e46b0df4a8cc9e7dc39b56b10f922a31e5 (patch)
treececcee8d3f94fc31cca8cc7ea0306519df79e0c0 /sw/source/core/text/txtdrop.cxx
parentd7a7b841913afc64bf1dd19ce55cf1564f0c8275 (diff)
loplugin: cstylecast
Change-Id: Ia3dc8efc8c8803597cbf226780bdb7e1c9681ee0
Diffstat (limited to 'sw/source/core/text/txtdrop.cxx')
-rw-r--r--sw/source/core/text/txtdrop.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/text/txtdrop.cxx b/sw/source/core/text/txtdrop.cxx
index eeb8e669d086..3d6c761e80f8 100644
--- a/sw/source/core/text/txtdrop.cxx
+++ b/sw/source/core/text/txtdrop.cxx
@@ -210,14 +210,14 @@ bool SwTxtNode::GetDropSize(int& rFontHeight, int& rDropHeight, int& rDropDescen
const SwLinePortion* pFirstPor = pPara->GetFirstPortion();
if (pFirstPor && pFirstPor->IsDropPortion())
{
- const SwDropPortion* pDrop = (const SwDropPortion*)pFirstPor;
+ const SwDropPortion* pDrop = static_cast<const SwDropPortion*>(pFirstPor);
rDropHeight = pDrop->GetDropHeight();
rDropDescent = pDrop->GetDropDescent();
if (const SwFont *pFont = pDrop->GetFnt())
rFontHeight = pFont->GetSize(pFont->GetActual()).Height();
else
{
- const SvxFontHeightItem& rItem = (SvxFontHeightItem&)rSet.Get(RES_CHRATR_FONTSIZE);
+ const SvxFontHeightItem& rItem = static_cast<const SvxFontHeightItem&>(rSet.Get(RES_CHRATR_FONTSIZE));
rFontHeight = rItem.GetHeight();
}
}
@@ -231,7 +231,7 @@ bool SwTxtNode::GetDropSize(int& rFontHeight, int& rDropHeight, int& rDropDescen
{
const sal_uInt16 nLines = rDrop.GetLines();
- const SvxFontHeightItem& rItem = (SvxFontHeightItem&)rSet.Get( RES_CHRATR_FONTSIZE );
+ const SvxFontHeightItem& rItem = static_cast<const SvxFontHeightItem&>(rSet.Get( RES_CHRATR_FONTSIZE ));
rFontHeight = rItem.GetHeight();
rDropHeight = nLines * rFontHeight;
rDropDescent = rFontHeight / 5;