summaryrefslogtreecommitdiff
path: root/sc/source/core/tool
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-12-11 23:29:16 +0200
committerTor Lillqvist <tml@collabora.com>2014-12-11 23:45:45 +0200
commita0b54683d9ee8987e80cf81746aa147d53bf661a (patch)
treecd95c0a1dda2a02c4dd66a55f94b338ac292af83 /sc/source/core/tool
parent7b091d76d84ca915c0ca00ce3ce055af5b7f2b49 (diff)
WaE: implicit conversion (IntegralToFloating) from bool to 'const double'
Kohei says it is intentional, i.e. 1.0 or 0.0 should be passed, so say so explicitly to avoid warning. Change-Id: Ieff79d35f2b0770ea9de02b83d117ac90009f7d5
Diffstat (limited to 'sc/source/core/tool')
-rw-r--r--sc/source/core/tool/scmatrix.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index 25ccff56bdce..5b6ccbebbb05 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -1437,7 +1437,7 @@ class CompareMatrixToNumericFunc : std::unary_function<MatrixImplType::element_b
{
double fVal = sc::CompareEmptyToNumericFunc(mfRightValue);
bool bRes = evaluate(fVal, mrComp.meOp);
- maResValues.resize(maResValues.size() + nSize, bRes);
+ maResValues.resize(maResValues.size() + nSize, bRes ? 1.0 : 0.0);
}
public: