diff options
Diffstat (limited to 'extensions/source/logging/logger.cxx')
-rw-r--r-- | extensions/source/logging/logger.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/extensions/source/logging/logger.cxx b/extensions/source/logging/logger.cxx index 2bafe5a625a8..e9b2944257b6 100644 --- a/extensions/source/logging/logger.cxx +++ b/extensions/source/logging/logger.cxx @@ -248,8 +248,7 @@ namespace logging Sequence< OUString > SAL_CALL EventLogger::getSupportedServiceNames() throw(RuntimeException, std::exception) { - Sequence< OUString > aServiceNames(1); - aServiceNames[0] = "com.sun.star.logging.Logger"; + Sequence< OUString > aServiceNames { "com.sun.star.logging.Logger" }; return aServiceNames; } @@ -280,8 +279,7 @@ namespace logging Sequence< OUString > SAL_CALL LoggerPool::getSupportedServiceNames_static() { - Sequence< OUString > aServiceNames(1); - aServiceNames[0] = getSingletonName_static(); + Sequence< OUString > aServiceNames { getSingletonName_static() }; return aServiceNames; } |