Kaydet (Commit) cf57e77c authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Petr Mladek

coverity#704345 Logically dead code

Change-Id: I72360ada3abedc75b2718742e8a038eb6d214f0c
Reviewed-on: https://gerrit.libreoffice.org/3047Reviewed-by: 's avatarPetr Mladek <pmladek@suse.cz>
Tested-by: 's avatarPetr Mladek <pmladek@suse.cz>
üst 3b68171c
...@@ -925,7 +925,8 @@ int SwCrsrShell::CompareCursor( CrsrCompareType eType ) const ...@@ -925,7 +925,8 @@ int SwCrsrShell::CompareCursor( CrsrCompareType eType ) const
int nRet = 0; int nRet = 0;
const SwPosition *pFirst = 0, *pSecond = 0; const SwPosition *pFirst = 0, *pSecond = 0;
const SwPaM *pCur = GetCrsr(), *pStk = pCrsrStk; const SwPaM *pCur = GetCrsr(), *pStk = pCrsrStk;
if( CurrPtCurrMk != eType && pStk ) // cursor on stack is needed if we compare against stack
if( pStk || ( eType == CurrPtCurrMk ) )
{ {
switch ( eType) switch ( eType)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment