summaryrefslogtreecommitdiff
path: root/svx/source/unogallery
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 10:13:01 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-31 15:49:07 +0100
commit5b54ba7084d6b575814af26be30cf5af5dfca12c (patch)
tree38f1fd7bfca54886c34f6bcbdd9220d3f1a90f13 /svx/source/unogallery
parent3d469248ada8632a9d86efc80f2ac97dcb617c27 (diff)
Prepare for removal of non-const operator[] from Sequence in svx
Change-Id: Ib5fda9469f9a1987cf9071c0e228c582cfb3dfa1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124397 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/unogallery')
-rw-r--r--svx/source/unogallery/unogalthemeprovider.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/unogallery/unogalthemeprovider.cxx b/svx/source/unogallery/unogalthemeprovider.cxx
index c4cdcd701075..638406e4de15 100644
--- a/svx/source/unogallery/unogalthemeprovider.cxx
+++ b/svx/source/unogallery/unogalthemeprovider.cxx
@@ -170,13 +170,14 @@ uno::Sequence< OUString > SAL_CALL GalleryThemeProvider::getElementNames()
const SolarMutexGuard aGuard;
sal_uInt32 i = 0, nCount = ( mpGallery ? mpGallery->GetThemeCount() : 0 ), nRealCount = 0;
uno::Sequence< OUString > aSeq( nCount );
+ auto aSeqRange = asNonConstRange(aSeq);
for( ; i < nCount; ++i )
{
const GalleryThemeEntry* pEntry = mpGallery->GetThemeInfo( i );
if( mbHiddenThemes || !pEntry->IsHidden() )
- aSeq[ nRealCount++ ] = pEntry->GetThemeName();
+ aSeqRange[ nRealCount++ ] = pEntry->GetThemeName();
}
aSeq.realloc( nRealCount );