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/formulacell.cxx | |
parent | 0c9d002ecdd410b8b5be1fc91f4b84c7cbe5f5bc (diff) |
bool improvements
Change-Id: I27609462f2daba6b2289aff7a6a96686c961f3ce
Diffstat (limited to 'sc/source/core/data/formulacell.cxx')
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index 721f2681c67d..4837e3cf5959 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -115,8 +115,7 @@ lcl_checkRangeDimensions( const bool bSameTabs(lcl_checkRangeDimension(rPos, rRef1, rRef2, lcl_GetTab)); // Test if exactly two dimensions are equal - if (!(bSameCols ^ bSameRows ^ bSameTabs) - && (bSameCols || bSameRows || bSameTabs)) + if (int(bSameCols) + int(bSameRows) + int(bSameTabs) == 2) { bCol = !bSameCols; bRow = !bSameRows; @@ -2676,7 +2675,8 @@ bool ScFormulaCell::UpdateReferenceOnMove( bValChanged = false; - if ( ( bCompile = (bCompile || bValChanged || bRefModified || bColRowNameCompile) ) != 0 ) + bCompile = (bCompile || bValChanged || bRefModified || bColRowNameCompile); + if ( bCompile ) { CompileTokenArray( bNewListening ); // no Listening bNeedDirty = true; |