summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-23 14:13:20 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-03-23 14:13:20 +0100
commit97fa9a882c5084383c47443ef16f97caf5f5ec8b (patch)
tree48b8a0c0156824423fd634b9385a48bb7eb4452c /basic
parentef23a1138257fe6cd53039dca40bc874a228e223 (diff)
coverity#704205/704206/704207 Logically dead code
Change-Id: Ic2cbd96f393a21cf2c6634d3c5e5a4c5a5b486ef
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/methods.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 76c8dd901207..fefb9d941d09 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