summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-07-19 15:49:44 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-07-19 15:49:44 -0400
commit52022b5f82385b28687bf46424d0d24be1964a4a (patch)
tree6bf5782923979cb6a1abf60f780fc36d68bb9dba /sc/source/core
parent73b05f75ad2cb1c648ed1a4e29b28d6f53a798e4 (diff)
Let's see if stripping the const here will fix the clang build...
Change-Id: Ia019157bd5d2b8ce18550b468de1269b2737ff02
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/tool/scmatrix.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index d0d3fce9a427..d6452acc26c1 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");