| commit | 2f4172fc48aab38c64851ba3a384bd6c7c180634 | [log] |
|---|---|---|
| author | Michael Weghorn <m.weghorn@posteo.de> | Fri May 08 16:23:37 2020 +0200 |
| committer | Michael Weghorn <m.weghorn@posteo.de> | Sat May 09 01:42:20 2020 +0200 |
| tree | 317430ea7b9c6c755c5679146fe764507f583e20 | |
| parent | ffa08644b92988e21669edc612dd731f985c341a [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>
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx index cc92f9f..ebf5cfd 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 ); }