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

Norbert Thiebaud nthiebaud at gmail.com
Thu Feb 21 23:53:42 PST 2013


 basic/source/runtime/methods.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 558e956403f03c7c463597138c43ca1322b5d84b
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue Feb 19 15:29:40 2013 -0600

    coverity#704204 Logically dead code
    
    Change-Id: I0a8dbbb3dbe7408e6f4d92c0bbebdaaa7d882f01
    Reviewed-on: https://gerrit.libreoffice.org/2271
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index aeba267..d46d99b 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -925,7 +925,7 @@ RTLFUNC(InStr)
         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


More information about the Libreoffice-commits mailing list