diff options
Diffstat (limited to 'dbaccess/source/ext/macromigration/migrationengine.cxx')
-rw-r--r-- | dbaccess/source/ext/macromigration/migrationengine.cxx | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/dbaccess/source/ext/macromigration/migrationengine.cxx b/dbaccess/source/ext/macromigration/migrationengine.cxx index cd1477fcc1a2..8b0b7a3c8a5f 100644 --- a/dbaccess/source/ext/macromigration/migrationengine.cxx +++ b/dbaccess/source/ext/macromigration/migrationengine.cxx @@ -1664,18 +1664,15 @@ namespace dbmm Reference< XNameReplace > xEvents( xEventsSupplier->getEvents(), UNO_QUERY_THROW ); Sequence< OUString > aEventNames( xEvents->getElementNames() ); - const OUString* eventName = aEventNames.getArray(); - const OUString* eventNamesEnd = eventName + aEventNames.getLength(); - ScriptEventDescriptor aScriptEvent; - for ( ; eventName != eventNamesEnd; ++eventName ) + for ( OUString const & eventName : aEventNames ) { - OSL_VERIFY( xEvents->getByName( *eventName ) >>= aScriptEvent ); + OSL_VERIFY( xEvents->getByName( eventName ) >>= aScriptEvent ); if ( !impl_adjustScriptLibrary_nothrow( aScriptEvent ) ) continue; - xEvents->replaceByName( *eventName, makeAny( aScriptEvent ) ); + xEvents->replaceByName( eventName, makeAny( aScriptEvent ) ); } } @@ -1731,12 +1728,9 @@ namespace dbmm Sequence< ScriptEventDescriptor > aEvents( aComponent.getEvents() ); bool bChangedComponentEvents = false; - for ( ScriptEventDescriptor* scriptEvent = aEvents.getArray(); - scriptEvent != aEvents.getArray() + aEvents.getLength(); - ++scriptEvent - ) + for ( ScriptEventDescriptor & scriptEvent : aEvents ) { - if ( !impl_adjustScriptLibrary_nothrow( *scriptEvent ) ) + if ( !impl_adjustScriptLibrary_nothrow( scriptEvent ) ) continue; bChangedComponentEvents = true; |