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 /desktop | |
parent | 7e708545e4e32910d93cd471eb8438dca4ab47b6 (diff) |
fdo#46808, use service constructor for i18n::Collator
Change-Id: If6ad17fa9e274beff7ba872a095ced65438962af
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx b/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx index e52a892b32db..39844e31dbbd 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx @@ -36,7 +36,7 @@ #include "com/sun/star/deployment/LicenseException.hpp" #include "com/sun/star/deployment/VersionException.hpp" #include "com/sun/star/deployment/PlatformException.hpp" -#include "com/sun/star/i18n/XCollator.hpp" +#include "com/sun/star/i18n/Collator.hpp" #include "com/sun/star/i18n/CollatorOptions.hpp" #include <stdio.h> @@ -160,11 +160,8 @@ void CommandEnvironmentImpl::printLicense( dp_misc::writeConsole(s3); //the user may enter "yes" or "no", we compare in a case insensitive way - Reference< css::i18n::XCollator > xCollator( - m_xComponentContext->getServiceManager() - ->createInstanceWithContext( - OUSTR("com.sun.star.i18n.Collator"),m_xComponentContext), - UNO_QUERY_THROW ); + Reference< css::i18n::XCollator > xCollator = + css::i18n::Collator::create( m_xComponentContext ); xCollator->loadDefaultCollator( toLocale(utl::ConfigManager::getLocale()), css::i18n::CollatorOptions::CollatorOptions_IGNORE_CASE); |