From 56ea15091c69d280310aa8b28bb1e9488eaad756 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 8 Nov 2012 14:53:57 +0200 Subject: fdo#46808, use service constructor for i18n::Collator Change-Id: If6ad17fa9e274beff7ba872a095ced65438962af --- xmlhelp/source/cxxhelp/provider/databases.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index f9dfe9f1727e..6b2d68275c52 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #include #include "inputstream.hxx" #include @@ -628,10 +629,7 @@ Databases::getCollator( const rtl::OUString& Language, if( ! it->second.is() ) { - it->second = - Reference< XCollator > ( - m_xSMgr->createInstanceWithContext( rtl::OUString( "com.sun.star.i18n.Collator" ), - m_xContext ), UNO_QUERY ); + it->second = Collator::create(m_xContext); rtl::OUString langStr = processLang(Language); rtl::OUString countryStr = country(Language); if( countryStr.isEmpty() ) -- cgit