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

Julien Nabet serval2412 at yahoo.fr
Sat Mar 23 06:15:36 PDT 2013


 basic/source/runtime/methods.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 97fa9a882c5084383c47443ef16f97caf5f5ec8b
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Mar 23 14:13:20 2013 +0100

    coverity#704205/704206/704207 Logically dead code
    
    Change-Id: Ic2cbd96f393a21cf2c6634d3c5e5a4c5a5b486ef

diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 76c8dd9..fefb9d9 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -994,7 +994,7 @@ RTLFUNC(InStrRev)
         bool bCompatibility = ( pInst && pInst->IsCompatibility() );
         if( bCompatibility )
         {
-            SbiRuntime* pRT = pInst ? pInst->pRun : NULL;
+            SbiRuntime* pRT = pInst->pRun;
             bTextMode = pRT ? pRT->GetImageFlag( SBIMG_COMPARETEXT ) : sal_False;
         }
         else
@@ -1368,7 +1368,7 @@ RTLFUNC(Replace)
         bool bCompatibility = ( pInst && pInst->IsCompatibility() );
         if( bCompatibility )
         {
-            SbiRuntime* pRT = pInst ? pInst->pRun : NULL;
+            SbiRuntime* pRT = pInst->pRun;
             bTextMode = pRT ? pRT->GetImageFlag( SBIMG_COMPARETEXT ) : sal_False;
         }
         else
@@ -1629,7 +1629,7 @@ RTLFUNC(StrComp)
     bool bCompatibility = ( pInst && pInst->IsCompatibility() );
     if( bCompatibility )
     {
-        SbiRuntime* pRT = pInst ? pInst->pRun : NULL;
+        SbiRuntime* pRT = pInst->pRun;
         nTextCompare = pRT ? pRT->GetImageFlag( SBIMG_COMPARETEXT ) : sal_False;
     }
     else


More information about the Libreoffice-commits mailing list