diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/numfmuno.cxx | 16 | ||||
-rw-r--r-- | svl/source/passwordcontainer/syscreds.cxx | 6 |
2 files changed, 6 insertions, 16 deletions
diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx index 60bbbfd56bcb..52070c2c3309 100644 --- a/svl/source/numbers/numfmuno.cxx +++ b/svl/source/numbers/numfmuno.cxx @@ -379,9 +379,7 @@ sal_Bool SAL_CALL SvNumberFormatterServiceObj::supportsService( const OUString& uno::Sequence<OUString> SAL_CALL SvNumberFormatterServiceObj::getSupportedServiceNames() throw(uno::RuntimeException, std::exception) { - uno::Sequence<OUString> aRet(1); - OUString* pArray = aRet.getArray(); - pArray[0] = "com.sun.star.util.NumberFormatter"; + uno::Sequence<OUString> aRet { "com.sun.star.util.NumberFormatter" }; return aRet; } @@ -670,9 +668,7 @@ sal_Bool SAL_CALL SvNumberFormatsObj::supportsService( const OUString& ServiceNa uno::Sequence<OUString> SAL_CALL SvNumberFormatsObj::getSupportedServiceNames() throw(uno::RuntimeException, std::exception) { - uno::Sequence<OUString> aRet(1); - OUString* pArray = aRet.getArray(); - pArray[0] = "com.sun.star.util.NumberFormats"; + uno::Sequence<OUString> aRet { "com.sun.star.util.NumberFormats" }; return aRet; } @@ -927,9 +923,7 @@ sal_Bool SAL_CALL SvNumberFormatObj::supportsService( const OUString& ServiceNam uno::Sequence<OUString> SAL_CALL SvNumberFormatObj::getSupportedServiceNames() throw(uno::RuntimeException, std::exception) { - uno::Sequence<OUString> aRet(1); - OUString* pArray = aRet.getArray(); - pArray[0] = "com.sun.star.util.NumberFormatProperties"; + uno::Sequence<OUString> aRet { "com.sun.star.util.NumberFormatProperties" }; return aRet; } @@ -1083,9 +1077,7 @@ sal_Bool SAL_CALL SvNumberFormatSettingsObj::supportsService( const OUString& Se uno::Sequence<OUString> SAL_CALL SvNumberFormatSettingsObj::getSupportedServiceNames() throw(uno::RuntimeException, std::exception) { - uno::Sequence<OUString> aRet(1); - OUString* pArray = aRet.getArray(); - pArray[0] = "com.sun.star.util.NumberFormatSettings"; + uno::Sequence<OUString> aRet { "com.sun.star.util.NumberFormatSettings" }; return aRet; } diff --git a/svl/source/passwordcontainer/syscreds.cxx b/svl/source/passwordcontainer/syscreds.cxx index adb9eb28f8bf..bd1722a32e82 100644 --- a/svl/source/passwordcontainer/syscreds.cxx +++ b/svl/source/passwordcontainer/syscreds.cxx @@ -30,8 +30,7 @@ SysCredentialsConfigItem::SysCredentialsConfigItem( m_bInited( false ), m_pOwner( pOwner ) { - uno::Sequence< OUString > aNode( 1 ); - aNode[ 0 ] = "Office.Common/Passwords/AuthenticateUsingSystemCredentials"; + uno::Sequence<OUString> aNode { "Office.Common/Passwords/AuthenticateUsingSystemCredentials" }; EnableNotification( aNode ); } @@ -60,8 +59,7 @@ SysCredentialsConfigItem::getSystemCredentialsURLs() if ( !m_bInited ) { // read config item - uno::Sequence< OUString > aPropNames( 1 ); - aPropNames[ 0 ] = "AuthenticateUsingSystemCredentials"; + uno::Sequence<OUString> aPropNames { "AuthenticateUsingSystemCredentials" }; uno::Sequence< uno::Any > aAnyValues( utl::ConfigItem::GetProperties( aPropNames ) ); |