Kaydet (Commit) 5a80e327 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: I2dc7883e23c1437c4a8bf9fce19acfd3fe700ec0
üst 21834f14
......@@ -921,16 +921,16 @@ RTLFUNC(InStr)
}
SbiInstance* pInst = GetSbData()->pInst;
int bTextMode;
bool bTextMode;
bool bCompatibility = ( pInst && pInst->IsCompatibility() );
if( bCompatibility )
{
SbiRuntime* pRT = pInst->pRun;
bTextMode = pRT ? pRT->IsImageFlag( SbiImageFlags::COMPARETEXT ) : sal_False;
bTextMode = pRT && pRT->IsImageFlag( SbiImageFlags::COMPARETEXT );
}
else
{
bTextMode = 1;;
bTextMode = true;
}
if ( nArgCount == 4 )
{
......@@ -996,16 +996,16 @@ RTLFUNC(InStrRev)
}
SbiInstance* pInst = GetSbData()->pInst;
int bTextMode;
bool bTextMode;
bool bCompatibility = ( pInst && pInst->IsCompatibility() );
if( bCompatibility )
{
SbiRuntime* pRT = pInst->pRun;
bTextMode = pRT ? pRT->IsImageFlag( SbiImageFlags::COMPARETEXT ) : sal_False;
bTextMode = pRT && pRT->IsImageFlag( SbiImageFlags::COMPARETEXT );
}
else
{
bTextMode = 1;;
bTextMode = true;
}
if ( nArgCount == 4 )
{
......@@ -1377,16 +1377,16 @@ RTLFUNC(Replace)
}
SbiInstance* pInst = GetSbData()->pInst;
int bTextMode;
bool bTextMode;
bool bCompatibility = ( pInst && pInst->IsCompatibility() );
if( bCompatibility )
{
SbiRuntime* pRT = pInst->pRun;
bTextMode = pRT ? pRT->IsImageFlag( SbiImageFlags::COMPARETEXT ) : sal_False;
bTextMode = pRT && pRT->IsImageFlag( SbiImageFlags::COMPARETEXT );
}
else
{
bTextMode = 1;
bTextMode = true;
}
if ( nArgCount == 6 )
{
......
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