[Libreoffice-commits] core.git: toolkit/source

Michael Weghorn (via logerrit) logerrit at kemper.freedesktop.org
Fri May 8 23:42:55 UTC 2020


 toolkit/source/controls/controlmodelcontainerbase.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 2f4172fc48aab38c64851ba3a384bd6c7c180634
Author:     Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Fri May 8 16:23:37 2020 +0200
Commit:     Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Sat May 9 01:42:20 2020 +0200

    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 at posteo.de>

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 );
         }


More information about the Libreoffice-commits mailing list