diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-28 15:57:38 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-28 20:09:19 +0200 |
commit | c131f32fcfff1208adc38536839bc5168fcb7487 (patch) | |
tree | 15281689e85827f04af03349032f91196c3e7c29 /include/oox | |
parent | a93329244a7d24b8a89d8f287b6123e56d13786d (diff) |
Prepare for removal of non-const operator[] from Sequence in include
Change-Id: I85ca453f3add5ac5b59dc6f1ccb2cdb55f0a463c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124333
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/helper/containerhelper.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/oox/helper/containerhelper.hxx b/include/oox/helper/containerhelper.hxx index 256719c5334e..10af6995f52c 100644 --- a/include/oox/helper/containerhelper.hxx +++ b/include/oox/helper/containerhelper.hxx @@ -282,8 +282,9 @@ template< typename MatrixType > if( !rMatrix.empty() ) { aSeq.realloc( static_cast< sal_Int32 >( rMatrix.height() ) ); + auto pSeq = aSeq.getArray(); for( size_t nRow = 0, nHeight = rMatrix.height(); nRow < nHeight; ++nRow ) - aSeq[ static_cast< sal_Int32 >( nRow ) ] = + pSeq[ static_cast< sal_Int32 >( nRow ) ] = css::uno::Sequence< ValueType >( &rMatrix.row_front( nRow ), static_cast< sal_Int32 >( rMatrix.width() ) ); } return aSeq; |