summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Buzea <buzea.bogdan@libreoffice.org>2024-10-22 20:18:01 +0200
committerDavid Gilbert <freedesktop@treblig.org>2024-10-25 03:07:42 +0200
commit9a235a550ff37157eb9a315eacfd9da3d8ca59a8 (patch)
treeb4a8bc76216e53a9ecc1bfb7a204fd621cf3a8b1
parentc01cac0654d7f11012e3755e942cbf391e82aaff (diff)
tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 2404, 2441 Change-Id: I3e929e8b465e77a6ad550bf35658abb36befa6a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175426 Tested-by: Jenkins Reviewed-by: David Gilbert <freedesktop@treblig.org>
-rw-r--r--vcl/source/treelist/svimpbox.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index 3008488b5d4f..985a7525c44c 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -2400,6 +2400,7 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt)
ExpandAll();
break;
+ case KEY_DIVIDE :
case KEY_A:
if( bMod1 )
SelAllDestrAnch( true );
@@ -2437,13 +2438,6 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt)
bKeyUsed = false;
break;
- case KEY_DIVIDE :
- if( bMod1 )
- SelAllDestrAnch( true );
- else
- bKeyUsed = false;
- break;
-
case KEY_COMMA :
if( bMod1 )
SelAllDestrAnch( false );