diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-28 16:03:49 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-28 20:09:27 +0200 |
commit | dd97bfce9900e6bae40eece36124f8b22e70ff47 (patch) | |
tree | e32f154ebb4a27cf85bab0059d60dd8e829c2467 /basctl/source/basicide | |
parent | c131f32fcfff1208adc38536839bc5168fcb7487 (diff) |
Prepare for removal of non-const operator[] from Sequence in basctl
Change-Id: Icc6ea4eea08a1cd3fffbfb211f420ab91602e8de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124336
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basctl/source/basicide')
-rw-r--r-- | basctl/source/basicide/baside3.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx index 085228971eae..23eb5ab1e0eb 100644 --- a/basctl/source/basicide/baside3.cxx +++ b/basctl/source/basicide/baside3.cxx @@ -1010,13 +1010,14 @@ bool implImportDialog(weld::Window* pWin, const ScriptDocument& rDocument, const if( nOnlyInImportLanguageCount > 1 ) { Sequence< lang::Locale > aRemainingLocaleSeq( nOnlyInImportLanguageCount - 1 ); + auto pRemainingLocaleSeq = aRemainingLocaleSeq.getArray(); lang::Locale aTmpLocale; int iSeq = 0; for( int i = 0 ; i < nOnlyInImportLanguageCount ; ++i ) { aTmpLocale = aOnlyInImportLanguages[i]; if( !localesAreEqual( aFirstLocale, aTmpLocale ) ) - aRemainingLocaleSeq[iSeq++] = aTmpLocale; + pRemainingLocaleSeq[iSeq++] = aTmpLocale; } pCurMgr->handleAddLocales( aRemainingLocaleSeq ); } |