vcl/source/treelist/svimpbox.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
New commits: commit 9a235a550ff37157eb9a315eacfd9da3d8ca59a8 Author: Bogdan Buzea <buzea.bog...@libreoffice.org> AuthorDate: Tue Oct 22 20:18:01 2024 +0200 Commit: David Gilbert <freedesk...@treblig.org> CommitDate: Fri Oct 25 03:07:42 2024 +0200 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 <freedesk...@treblig.org> 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 );