summaryrefslogtreecommitdiff
path: root/svl/source/numbers/numfmuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/numbers/numfmuno.cxx')
-rw-r--r--svl/source/numbers/numfmuno.cxx16
1 files changed, 4 insertions, 12 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;
}