summaryrefslogtreecommitdiff
path: root/svl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-11-20 12:57:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-11-30 13:59:46 +0100
commitf96db7d0ddeb737cf0e14eea6120daab860c54b7 (patch)
tree6107a9464ff9fa889740a743255f543390791f22 /svl/source
parentaf06afdbe8c61604b4498ce1e11660dd3b647dcc (diff)
fdo#46808, use service constructor for i18n::Collator
Change-Id: I15a360723e335345aad09e73fcb0f6815ed9e0d4
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/items/dateitem.cxx3
-rw-r--r--svl/source/items/style.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/svl/source/items/dateitem.cxx b/svl/source/items/dateitem.cxx
index bbe8e38b249d..dc7478d5e506 100644
--- a/svl/source/items/dateitem.cxx
+++ b/svl/source/items/dateitem.cxx
@@ -138,8 +138,7 @@ SfxItemPresentation SfxDateTimeItem::GetPresentation
{
DBG_WARNING("SfxDateTimeItem::GetPresentation():"
" Using default en_US IntlWrapper");
- const IntlWrapper aIntlWrapper(
- ::comphelper::getProcessServiceFactory(), LanguageTag( LANGUAGE_ENGLISH_US) );
+ const IntlWrapper aIntlWrapper( LanguageTag( LANGUAGE_ENGLISH_US) );
rText = aIntlWrapper.getLocaleData()->getDate(aDateTime);
rText.AppendAscii(RTL_CONSTASCII_STRINGPARAM(", "));
rText += aIntlWrapper.getLocaleData()->getTime(aDateTime);
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index 2eb0b8325cce..3c1f9b78cdbb 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -333,8 +333,7 @@ XubString SfxStyleSheetBase::GetDescription( SfxMapUnit eMetric )
XubString aDesc;
const SfxPoolItem* pItem = aIter.FirstItem();
- IntlWrapper aIntlWrapper(comphelper::getProcessServiceFactory(),
- SvtSysLocale().GetLanguageTag());
+ IntlWrapper aIntlWrapper( SvtSysLocale().GetLanguageTag() );
while ( pItem )
{
XubString aItemPresentation;