[Libreoffice-commits] core.git: sc/source
Tor Lillqvist
tml at collabora.com
Thu Dec 11 13:46:38 PST 2014
sc/source/core/tool/scmatrix.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a0b54683d9ee8987e80cf81746aa147d53bf661a
Author: Tor Lillqvist <tml at collabora.com>
Date: Thu Dec 11 23:29:16 2014 +0200
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
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index 25ccff5..5b6ccbe 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:
More information about the Libreoffice-commits
mailing list