diff options
author | Noel Grandin <noel@peralex.com> | 2013-02-01 13:51:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-02-11 08:02:19 +0200 |
commit | eb2f8c5a63df0bfcd3cc13b2071ea2194fa425f0 (patch) | |
tree | 8b699d6dace733bdb6ea67ce704936fbf9e8d7a5 /framework/source/fwi/helper/mischelper.cxx | |
parent | 0cd4caa547a75316c6b3f2992dd66b2294c6f1ae (diff) |
fdo#46808, use linguistic2::LanguageGuessing service constructor
Change-Id: I5c650a96ea99a1cf16ca8aa61f2db4986790040b
Diffstat (limited to 'framework/source/fwi/helper/mischelper.cxx')
-rw-r--r-- | framework/source/fwi/helper/mischelper.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/source/fwi/helper/mischelper.cxx b/framework/source/fwi/helper/mischelper.cxx index cc22e5b1e668..5245808255c8 100644 --- a/framework/source/fwi/helper/mischelper.cxx +++ b/framework/source/fwi/helper/mischelper.cxx @@ -23,6 +23,7 @@ #include <com/sun/star/frame/ModuleManager.hpp> #include <com/sun/star/frame/UICommandDescription.hpp> #include <com/sun/star/beans/PropertyValue.hpp> +#include <com/sun/star/linguistic2/LanguageGuessing.hpp> #include <tools/debug.hxx> #include <vcl/settings.hxx> @@ -53,10 +54,7 @@ uno::Reference< linguistic2::XLanguageGuessing > LanguageGuessingHelper::GetGues { try { - m_xLanguageGuesser = uno::Reference< linguistic2::XLanguageGuessing >( - m_xServiceManager->createInstance( - rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.linguistic2.LanguageGuessing")) ), - uno::UNO_QUERY ); + m_xLanguageGuesser = linguistic2::LanguageGuessing::create( m_xContext ); } catch (const uno::Exception &) { |