summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-18 08:41:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-18 08:41:23 +0200
commit1fa575f8fe7cad404f29ddd26dd834019c3acd93 (patch)
tree747417abb6a5647dc39ee8a3a2d7b257a2c71227
parent2f5baab8498ce1303dded8aa7e16adbf80341c39 (diff)
loplugin:redundantcast (clang-cl)
Change-Id: I996ec829794a0a78ad986cb1c87d6deb9f9d75cb
-rw-r--r--sw/source/core/txtnode/fntcache.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx
index db095f14aa49..44518377975f 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -524,11 +524,11 @@ void SwFntObj::GuessLeading( const SwViewShell&
{
// If the Leading on the Window is also 0, then it has to stay
// that way (see also StarMath).
- long nTmpLeading = (long)aWinMet.GetInternalLeading();
+ long nTmpLeading = aWinMet.GetInternalLeading();
if( nTmpLeading <= 0 )
{
pWin->SetFont( rMet );
- nTmpLeading = (long)pWin->GetFontMetric().GetInternalLeading();
+ nTmpLeading = pWin->GetFontMetric().GetInternalLeading();
if( nTmpLeading < 0 )
m_nGuessedLeading = 0;
else