diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:33:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:28 +0200 |
commit | 94da7fda53562263f960c4ba11644fee7292c2d8 (patch) | |
tree | 657d6b5e0ce4ca81e2e1aa1bea30950a41c6cead /svl | |
parent | 2ac33c984efa405f73a23748687df73ce461b630 (diff) |
loplugin:simplifybool
Change-Id: I1ea1bcc6434a94fc6c15fcec17975c6c71a30a56
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforfind.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index 740e8d152acd..3e9a9cefb87f 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -3209,8 +3209,8 @@ bool ImpSvNumberInputScan::IsNumberFormatMain( const OUString& rString, / bool bDidMatch = (nMatchedAllStrings != 0); if ( nMatchedAllStrings ) { - bool bMatch = (pFormat ? pFormat->IsNumForStringElementCountEqual( - nStringScanNumFor, nAnzStrings, nAnzNums ) : false); + bool bMatch = pFormat && pFormat->IsNumForStringElementCountEqual( + nStringScanNumFor, nAnzStrings, nAnzNums ); if ( !bMatch ) { nMatchedAllStrings = 0; @@ -3237,8 +3237,8 @@ bool ImpSvNumberInputScan::IsNumberFormatMain( const OUString& rString, / bool bWasReturn = ((nMatchedAllStrings & nMatchedUsedAsReturn) != 0); if ( nMatchedAllStrings ) { - bool bMatch = (pFormat ? pFormat->IsNumForStringElementCountEqual( - nStringScanNumFor, nAnzStrings, nAnzNums ) : false); + bool bMatch = pFormat && pFormat->IsNumForStringElementCountEqual( + nStringScanNumFor, nAnzStrings, nAnzNums ); if ( !bMatch ) { nMatchedAllStrings = 0; |