sc/source/core/tool/scmatrix.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 52022b5f82385b28687bf46424d0d24be1964a4a Author: Kohei Yoshida <kohei.yosh...@gmail.com> Date: Thu Jul 19 15:49:44 2012 -0400 Let's see if stripping the const here will fix the clang build... Change-Id: Ia019157bd5d2b8ce18550b468de1269b2737ff02 diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index d0d3fce..d6452ac 100644 --- a/sc/source/core/tool/scmatrix.cxx +++ b/sc/source/core/tool/scmatrix.cxx @@ -502,7 +502,10 @@ void ScMatrixImpl::PutDouble(double fVal, SCSIZE nC, SCSIZE nR) void ScMatrixImpl::PutDouble(const double* pArray, size_t nLen, SCSIZE nC, SCSIZE nR) { if (ValidColRow( nC, nR)) - maMat.set(nR, nC, pArray, pArray + nLen); + { + double* p = const_cast<double*>(pArray); + maMat.set(nR, nC, p, p + nLen); + } else { OSL_FAIL("ScMatrixImpl::PutDouble: dimension error"); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits