diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 21:21:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 21:28:09 +0100 |
commit | 8b28c064fa7863b365cbb7fc920bc3ac3067dd27 (patch) | |
tree | 21340b6aefa72a2de48bc5f1c0aa52ba72b636e2 /sc/source/core/data/conditio.cxx | |
parent | 0c9d002ecdd410b8b5be1fc91f4b84c7cbe5f5bc (diff) |
bool improvements
Change-Id: I27609462f2daba6b2289aff7a6a96686c961f3ce
Diffstat (limited to 'sc/source/core/data/conditio.cxx')
-rw-r--r-- | sc/source/core/data/conditio.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index 1a9f8698f760..3d2b0c75878f 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -592,7 +592,7 @@ static bool lcl_IsEqual( const ScTokenArray* pArr1, const ScTokenArray* pArr2 ) return !pArr1 && !pArr2; // beide 0 -> gleich } -int ScConditionEntry::operator== ( const ScConditionEntry& r ) const +bool ScConditionEntry::operator== ( const ScConditionEntry& r ) const { bool bEq = (eOp == r.eOp && nOptions == r.nOptions && lcl_IsEqual( pFormula1, r.pFormula1 ) && @@ -1085,12 +1085,12 @@ bool ScConditionEntry::IsValid( double nArg, const ScAddress& rPos ) const { OUString aStr = OUString::number(nVal1); OUString aStr2 = OUString::number(nArg); - bValid = aStr2.endsWith(aStr) == 0; + bValid = !aStr2.endsWith(aStr); } else { OUString aStr2 = OUString::number(nArg); - bValid = aStr2.endsWith(aStrVal1) == 0; + bValid = !aStr2.endsWith(aStrVal1); } break; case SC_COND_CONTAINS_TEXT: @@ -1576,7 +1576,7 @@ ScCondFormatEntry::ScCondFormatEntry( ScDocument* pDocument, const ScCondFormatE { } -int ScCondFormatEntry::operator== ( const ScCondFormatEntry& r ) const +bool ScCondFormatEntry::operator== ( const ScCondFormatEntry& r ) const { return ScConditionEntry::operator==( r ) && aStyleName == r.aStyleName; |