summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-07 09:08:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-07 12:16:13 +0000
commitbe8b9b4d29abb951aea0ea195541143d256954dc (patch)
treef35cddad2b45e189b23d881cb7c194845eb5c933 /svtools
parent7d98edfa4955ab6280655a9678d6a913845fa2f3 (diff)
loplugin:redundantcast find cstyle arithmetic casts
Change-Id: If7c259f0d12a41182f476ddb558f7cb5f76f9577 Reviewed-on: https://gerrit.libreoffice.org/36253 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/brwbox1.cxx4
-rw-r--r--svtools/source/contnr/treelistbox.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index c76a815ed040..9d96fcda4fa9 100644
--- a/svtools/source/brwbox/brwbox1.cxx
+++ b/svtools/source/brwbox/brwbox1.cxx
@@ -992,7 +992,7 @@ long BrowseBox::ScrollRows( long nRows )
// compute new top row
long nTmpMin = std::min( (long)(nTopRow + nRows), (long)(nRowCount - 1) );
- long nNewTopRow = std::max( (long)nTmpMin, (long)0 );
+ long nNewTopRow = std::max<long>( nTmpMin, 0 );
if ( nNewTopRow == nTopRow )
return 0;
@@ -1005,7 +1005,7 @@ long BrowseBox::ScrollRows( long nRows )
// compute new top row again (nTopRow might have changed!)
nTmpMin = std::min( (long)(nTopRow + nRows), (long)(nRowCount - 1) );
- nNewTopRow = std::max( (long)nTmpMin, (long)0 );
+ nNewTopRow = std::max<long>( nTmpMin, 0 );
StartScroll();
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 564bbcb5733b..0605f321e442 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -2448,7 +2448,7 @@ void SvTreeListBox::SetSpaceBetweenEntries( short nOffsLogic )
if( nOffsLogic != nEntryHeightOffs )
{
nEntryHeight = nEntryHeight - nEntryHeightOffs;
- nEntryHeightOffs = (short)nOffsLogic;
+ nEntryHeightOffs = nOffsLogic;
nEntryHeight = nEntryHeight + nOffsLogic;
AdjustEntryHeightAndRecalc();
pImpl->SetEntryHeight( nEntryHeight );