summaryrefslogtreecommitdiff
path: root/framework/source/helper/oframes.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 09:44:28 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-30 10:31:26 +0200
commitf662ba95361ba6b8eb49e0acd98bf28bc5f21100 (patch)
treea06ea88459155bb72b3f01dcda1d27f17cc49209 /framework/source/helper/oframes.cxx
parentbddfc920220b712c08eda96ac320a274e4bfcee6 (diff)
Prepare for removal of non-const operator[] from Sequence in framework
Change-Id: Ied2683a0b8a1bab1a7594da1e9bdbd3cb753552c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124370 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'framework/source/helper/oframes.cxx')
-rw-r--r--framework/source/helper/oframes.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/framework/source/helper/oframes.cxx b/framework/source/helper/oframes.cxx
index 048d5ad79b54..a58949852d43 100644
--- a/framework/source/helper/oframes.cxx
+++ b/framework/source/helper/oframes.cxx
@@ -143,18 +143,14 @@ Sequence< css::uno::Reference< XFrame > > SAL_CALL OFrames::queryFrames( sal_Int
css::uno::Reference< XFrame > xParent = xOwner->getCreator();
if( xParent.is() )
{
- Sequence< css::uno::Reference< XFrame > > seqParent( 1 );
- seqParent[0] = xParent;
- impl_appendSequence( seqFrames, seqParent );
+ impl_appendSequence( seqFrames, { xParent } );
}
}
// Add owner to list if SELF is searched.
if( nSearchFlags & FrameSearchFlag::SELF )
{
- Sequence< css::uno::Reference< XFrame > > seqSelf( 1 );
- seqSelf[0] = xOwner;
- impl_appendSequence( seqFrames, seqSelf );
+ impl_appendSequence( seqFrames, { xOwner } );
}
// Add SIBLINGS to list.