diff options
Diffstat (limited to 'cppuhelper/source/factory.cxx')
-rw-r--r-- | cppuhelper/source/factory.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cppuhelper/source/factory.cxx b/cppuhelper/source/factory.cxx index 6b81ac0da090..649024f667d8 100644 --- a/cppuhelper/source/factory.cxx +++ b/cppuhelper/source/factory.cxx @@ -766,9 +766,8 @@ Sequence< OUString > ORegistryFactoryHelper::getSupportedServiceNames() // Full qualified names like "IMPLEMENTATIONS/TEST/UNO/SERVICES/com.sun.star..." Sequence<OUString> seqKeys = xKey->getKeyNames(); - OUString* pKeys = seqKeys.getArray(); - for( sal_Int32 i = 0; i < seqKeys.getLength(); i++ ) - pKeys[i] = pKeys[i].copy(nPrefixLen); + for( OUString & key : seqKeys ) + key = key.copy(nPrefixLen); aServiceNames = seqKeys; } |