[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Thu Jul 19 12:49:19 PDT 2012


 sc/source/core/tool/scmatrix.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 52022b5f82385b28687bf46424d0d24be1964a4a
Author: Kohei Yoshida <kohei.yoshida at 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");


More information about the Libreoffice-commits mailing list