[Libreoffice-commits] core.git: sw/source

Julien Nabet serval2412 at yahoo.fr
Mon Mar 25 15:46:08 PDT 2013


 sw/source/core/unocore/unorefmk.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f7a226952ddd335d670f1a3766b2b87eb1572375
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Mar 25 23:43:49 2013 +0100

    coverity#704364 Logically dead code
    
    Change-Id: Ic02afc5db3fd661dfc462f7528cffcfa07fe6e04

diff --git a/sw/source/core/unocore/unorefmk.cxx b/sw/source/core/unocore/unorefmk.cxx
index 52e34cd..5dccc53 100644
--- a/sw/source/core/unocore/unorefmk.cxx
+++ b/sw/source/core/unocore/unorefmk.cxx
@@ -1017,7 +1017,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
     }
 
     SwDoc * const pDoc(
-            pRange ? pRange->GetDoc() : pCursor ? pCursor->GetDoc() : 0 );
+            pRange ? pRange->GetDoc() : pCursor->GetDoc());
     if (!pDoc)
     {
         throw lang::IllegalArgumentException(


More information about the Libreoffice-commits mailing list