diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 21:23:52 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 21:28:10 +0100 |
commit | b1d2ec75cbf6698f0feb7c8a76ff6eb453a0bbc7 (patch) | |
tree | 3cae4dc755c05834429e7f26be51c30d285d5c0b /sc/source/core/tool/compare.cxx | |
parent | 8b28c064fa7863b365cbb7fc920bc3ac3067dd27 (diff) |
Be explicit when using bool as integral value
Change-Id: I04073e87e13984570373d1cf6740aeb082516cc0
Diffstat (limited to 'sc/source/core/tool/compare.cxx')
-rw-r--r-- | sc/source/core/tool/compare.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/compare.cxx b/sc/source/core/tool/compare.cxx index 36e18bc5279b..11936b66d941 100644 --- a/sc/source/core/tool/compare.cxx +++ b/sc/source/core/tool/compare.cxx @@ -200,7 +200,7 @@ double CompareFunc( const Compare::Cell& rCell1, const Compare::Cell& rCell2, bo bEqual = rCell2.maStr == rItem.maString; // match => fRes=0, else fRes=1 - fRes = (rEntry.eOp == SC_NOT_EQUAL) ? bEqual : !bEqual; + fRes = double((rEntry.eOp == SC_NOT_EQUAL) ? bEqual : !bEqual); } } } @@ -265,7 +265,7 @@ double CompareFunc( double fCell1, const Compare::Cell& rCell2, CompareOptions* bool bEqual = rCell2.maStr == rItem.maString; // match => fRes=0, else fRes=1 - fRes = (rEntry.eOp == SC_NOT_EQUAL) ? bEqual : !bEqual; + fRes = double((rEntry.eOp == SC_NOT_EQUAL) ? bEqual : !bEqual); } } } @@ -327,7 +327,7 @@ double CompareFunc( const Compare::Cell& rCell1, double fCell2, CompareOptions* bool bEqual = rCell1.maStr == rItem.maString; // match => fRes=0, else fRes=1 - fRes = (rEntry.eOp == SC_NOT_EQUAL) ? bEqual : !bEqual; + fRes = double((rEntry.eOp == SC_NOT_EQUAL) ? bEqual : !bEqual); } } } |