diff options
Diffstat (limited to 'sot/source/unoolestorage/xolesimplestorage.cxx')
-rw-r--r-- | sot/source/unoolestorage/xolesimplestorage.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sot/source/unoolestorage/xolesimplestorage.cxx b/sot/source/unoolestorage/xolesimplestorage.cxx index 6f2147c6415f..8ea0907b38e5 100644 --- a/sot/source/unoolestorage/xolesimplestorage.cxx +++ b/sot/source/unoolestorage/xolesimplestorage.cxx @@ -481,8 +481,9 @@ uno::Sequence< OUString > SAL_CALL OLESimpleStorage::getElementNames() } uno::Sequence< OUString > aSeq( aList.size() ); + auto aSeqRange = asNonConstRange(aSeq); for ( size_t nInd = 0; nInd < aList.size(); nInd++ ) - aSeq[nInd] = aList[nInd].GetName(); + aSeqRange[nInd] = aList[nInd].GetName(); return aSeq; } |