summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2020-05-08 16:23:37 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2020-05-09 01:42:20 +0200
commit2f4172fc48aab38c64851ba3a384bd6c7c180634 (patch)
tree317430ea7b9c6c755c5679146fe764507f583e20
parentffa08644b92988e21669edc612dd731f985c341a (diff)
Just use initializer list for Sequence<OUString>
Change-Id: I4732e238053b8c9e6813f1bbecd6f613922cb521 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93748 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index cc92f9fb7345..ebf5cfdf63b6 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -1610,12 +1610,12 @@ void ControlContainerBase::addingControl( const Reference< XControl >& _rxContro
Reference< XMultiPropertySet > xProps( _rxControl->getModel(), UNO_QUERY );
if ( xProps.is() )
{
- Sequence< OUString > aNames( 4 );
- OUString* pNames = aNames.getArray();
- *pNames++ = "PositionX";
- *pNames++ = "PositionY";
- *pNames++ = "Width";
- *pNames++ = "Height";
+ const Sequence< OUString > aNames {
+ "PositionX",
+ "PositionY",
+ "Width",
+ "Height"
+ };
xProps->addPropertiesChangeListener( aNames, this );
}