diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 13:47:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 14:00:16 +0200 |
commit | 5a80e3272876f2883cb3329f7b690915958b9146 (patch) | |
tree | 80a81e069934daba8d728a2cba1bac1d3ef7e90c | |
parent | 21834f14c97071c5bcf13ef02bf940dc1922663f (diff) |
loplugin:simplifybool
Change-Id: I2dc7883e23c1437c4a8bf9fce19acfd3fe700ec0
-rw-r--r-- | basic/source/runtime/methods.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index f06076fbbb32..15f8bfe43715 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -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 ) { |