summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/stdtabcontroller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/controls/stdtabcontroller.cxx')
-rw-r--r--toolkit/source/controls/stdtabcontroller.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/toolkit/source/controls/stdtabcontroller.cxx b/toolkit/source/controls/stdtabcontroller.cxx
index 54d8a6a93782..119a77c9a497 100644
--- a/toolkit/source/controls/stdtabcontroller.cxx
+++ b/toolkit/source/controls/stdtabcontroller.cxx
@@ -63,6 +63,7 @@ bool StdTabController::ImplCreateComponentSequence(
if (nModels != rControls.getLength())
{
Sequence< Reference< XControl > > aSeq( nModels );
+ auto aSeqRange = asNonConstRange(aSeq);
Reference< XControl > xCurrentControl;
sal_Int32 nRealControls = 0;
@@ -70,7 +71,7 @@ bool StdTabController::ImplCreateComponentSequence(
{
xCurrentControl = FindControl(rControls, rModel);
if (xCurrentControl.is())
- aSeq[nRealControls++] = xCurrentControl;
+ aSeqRange[nRealControls++] = xCurrentControl;
}
aSeq.realloc(nRealControls);
rControls = aSeq;