editeng/source/editeng/impedit5.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit f04ab0ea41db4e91c3dd898a560426867a466988
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Oct 23 16:13:04 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Oct 23 20:25:20 2024 +0200

    tdf#163486: PVS: Expression is always true
    
    V547    Expression 'eFunc == KeyFuncType::DONTKNOW' is always true.
    
    Change-Id: Ia88333958bfc80555ecabd7113ef6a1805714c06
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175506
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Jenkins

diff --git a/editeng/source/editeng/impedit5.cxx 
b/editeng/source/editeng/impedit5.cxx
index 11ed1ac8e77f..21ec91827aa0 100644
--- a/editeng/source/editeng/impedit5.cxx
+++ b/editeng/source/editeng/impedit5.cxx
@@ -937,11 +937,10 @@ bool ImpEditEngine::PostKeyEvent( const KeyEvent& 
rKeyEvent, EditView* pEditView
             }
 
             default:    // is then possible edited below.
-                        eFunc = KeyFuncType::DONTKNOW;
+                eFunc = KeyFuncType::DONTKNOW;
         }
     }
 
-    if ( eFunc == KeyFuncType::DONTKNOW )
     {
         switch ( nCode )
         {

Reply via email to