diff options
author | Noel Grandin <noel@peralex.com> | 2012-11-08 14:53:57 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-11-28 13:06:18 +0100 |
commit | 56ea15091c69d280310aa8b28bb1e9488eaad756 (patch) | |
tree | 5c97dee49a30aa1b51c7f54f7990723268f28878 /xmlhelp | |
parent | fdo#46808, remove some more XMultiServiceFactory fields (diff) | |
download | core-56ea15091c69d280310aa8b28bb1e9488eaad756.tar.gz core-56ea15091c69d280310aa8b28bb1e9488eaad756.zip |
fdo#46808, use service constructor for i18n::Collator
Change-Id: If6ad17fa9e274beff7ba872a095ced65438962af
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
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 <osl/file.hxx> #include <com/sun/star/lang/Locale.hpp> #include <com/sun/star/awt/Toolkit.hpp> +#include <com/sun/star/i18n/Collator.hpp> #include <rtl/ustrbuf.hxx> #include "inputstream.hxx" #include <algorithm> @@ -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() ) |