summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-11-08 14:53:57 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-11-28 13:06:18 +0100
commit56ea15091c69d280310aa8b28bb1e9488eaad756 (patch)
tree5c97dee49a30aa1b51c7f54f7990723268f28878 /xmlhelp
parent7e708545e4e32910d93cd471eb8438dca4ab47b6 (diff)
fdo#46808, use service constructor for i18n::Collator
Change-Id: If6ad17fa9e274beff7ba872a095ced65438962af
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.cxx6
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() )