diff options
Diffstat (limited to 'toolkit/source/controls/geometrycontrolmodel.cxx')
-rw-r--r-- | toolkit/source/controls/geometrycontrolmodel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/source/controls/geometrycontrolmodel.cxx b/toolkit/source/controls/geometrycontrolmodel.cxx index 38827556bb0b..f47283a0b9e2 100644 --- a/toolkit/source/controls/geometrycontrolmodel.cxx +++ b/toolkit/source/controls/geometrycontrolmodel.cxx @@ -400,7 +400,7 @@ Reference< XNameContainer > xEventCont = xEventsSupplier->getEvents(); Reference< XNameContainer > xCloneEventCont = xCloneEventsSupplier->getEvents(); - css::uno::Sequence< OUString > aNames = + const css::uno::Sequence< OUString > aNames = xEventCont->getElementNames(); for( const OUString& aName : aNames ) @@ -533,7 +533,7 @@ ); // now loop through our own props - for ( const Property& rProp : aProps ) + for ( const Property& rProp : std::as_const(aProps) ) { // look for the current property in the properties of our aggregate const Property* pAggPropPos = ::std::find_if( aAggregateProps.begin(), aAggregateProps.end(), PropertyNameEqual( rProp.Name ) ); |