diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-04 12:20:58 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-04 11:20:09 +0000 |
commit | 46c67c43236a8250e56d6af1a1caada73e8abb70 (patch) | |
tree | 49c976599ebad64b01891abf4f8a732ba211b4e5 /tools/source/memtools/multisel.cxx | |
parent | ff45bc33465d54253f9e3da2e24b1b2b09c2b1d9 (diff) |
loplugin:unuseddefaultparam in tools
Change-Id: I027f4d53e3aa793bd61bf110899e464a9b6430ec
Reviewed-on: https://gerrit.libreoffice.org/22891
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.cxx | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx index e0b72076c511..25599212b9a4 100644 --- a/tools/source/memtools/multisel.cxx +++ b/tools/source/memtools/multisel.cxx @@ -432,26 +432,14 @@ long MultiSelection::ImplFwdUnselected() return SFX_ENDOFSELECTION; } -long MultiSelection::FirstSelected( bool bInverse ) +long MultiSelection::FirstSelected() { - bInverseCur = bInverse; + bInverseCur = false; nCurSubSel = 0; - if ( bInverseCur ) - { - bCurValid = nSelCount < sal_uIntPtr(aTotRange.Len()); - if ( bCurValid ) - { - nCurIndex = 0; - return ImplFwdUnselected(); - } - } - else - { - bCurValid = !aSels.empty(); - if ( bCurValid ) - return nCurIndex = aSels[ 0 ]->Min(); - } + bCurValid = !aSels.empty(); + if ( bCurValid ) + return nCurIndex = aSels[ 0 ]->Min(); return SFX_ENDOFSELECTION; } |