[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Thu Jul 19 13:13:32 PDT 2012


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

New commits:
commit 15929afc1a0da30ece4b193f4d2cf327886eb440
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Thu Jul 19 16:14:07 2012 -0400

    Revert "Let's see if stripping the const here will fix the clang build..."
    
    It didn't help our clang tinderbox.  Reverting.
    
    This reverts commit 52022b5f82385b28687bf46424d0d24be1964a4a.

diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index d6452ac..d0d3fce 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -502,10 +502,7 @@ 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))
-    {
-        double* p = const_cast<double*>(pArray);
-        maMat.set(nR, nC, p, p + nLen);
-    }
+        maMat.set(nR, nC, pArray, pArray + nLen);
     else
     {
         OSL_FAIL("ScMatrixImpl::PutDouble: dimension error");


More information about the Libreoffice-commits mailing list