diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-07-19 15:49:44 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-07-19 15:49:44 -0400 |
commit | 52022b5f82385b28687bf46424d0d24be1964a4a (patch) | |
tree | 6bf5782923979cb6a1abf60f780fc36d68bb9dba /sc/source/core | |
parent | 73b05f75ad2cb1c648ed1a4e29b28d6f53a798e4 (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.cxx | 5 |
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"); |