summaryrefslogtreecommitdiff
path: root/tools/source/memtools/multisel.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-16 13:17:24 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-17 06:09:42 +0000
commit8ca50d20c189dda2fcc4477303ef2947c72bb01e (patch)
tree4e68e83104b3822f3b9949f39b2de6a66b67ef97 /tools/source/memtools/multisel.cxx
parenta976a19ca82661d8b459b85f5514b0e4c9222d47 (diff)
loplugin:constantparam in tools
Change-Id: I3774661799c074561c694515baba42a375d0a077 Reviewed-on: https://gerrit.libreoffice.org/23301 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'tools/source/memtools/multisel.cxx')
-rw-r--r--tools/source/memtools/multisel.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx
index 25599212b9a4..d671130bc650 100644
--- a/tools/source/memtools/multisel.cxx
+++ b/tools/source/memtools/multisel.cxx
@@ -607,14 +607,14 @@ bool StringRangeEnumerator::insertRange( sal_Int32 i_nFirst, sal_Int32 i_nLast,
}
bool StringRangeEnumerator::insertJoinedRanges(
- const std::vector< sal_Int32 >& rNumbers, bool i_bStrict )
+ const std::vector< sal_Int32 >& rNumbers )
{
size_t nCount = rNumbers.size();
if( nCount == 0 )
return true;
if( nCount == 1 )
- return insertRange( rNumbers[0], -1, false, ! i_bStrict );
+ return insertRange( rNumbers[0], -1, false, true );
for( size_t i = 0; i < nCount - 1; i++ )
{
@@ -626,8 +626,7 @@ bool StringRangeEnumerator::insertJoinedRanges(
else if( nFirst < nLast ) nFirst++;
}
- if ( ! insertRange( nFirst, nLast, nFirst != nLast, ! i_bStrict ) && i_bStrict)
- return false;
+ insertRange( nFirst, nLast, nFirst != nLast, true );
}
return true;
@@ -663,7 +662,7 @@ bool StringRangeEnumerator::setRange( const OUString& i_rNewRange )
{
if( bSequence && !aNumbers.empty() )
aNumbers.push_back( mnMax );
- insertJoinedRanges( aNumbers, false/*i_bStrict*/ );
+ insertJoinedRanges( aNumbers );
aNumbers.clear();
bSequence = false;
@@ -677,7 +676,7 @@ bool StringRangeEnumerator::setRange( const OUString& i_rNewRange )
// insert last entries
if( bSequence && !aNumbers.empty() )
aNumbers.push_back( mnMax );
- insertJoinedRanges( aNumbers, false/*i_bStrict*/ );
+ insertJoinedRanges( aNumbers );
return true;
}