summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/compare.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-14 21:23:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-14 21:28:10 +0100
commitb1d2ec75cbf6698f0feb7c8a76ff6eb453a0bbc7 (patch)
tree3cae4dc755c05834429e7f26be51c30d285d5c0b /sc/source/core/tool/compare.cxx
parent8b28c064fa7863b365cbb7fc920bc3ac3067dd27 (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.cxx6
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);
}
}
}