diff options
author | Noel Grandin <noel@peralex.com> | 2013-02-11 09:21:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-02-12 10:14:41 +0200 |
commit | e2ab5539a4a68f443cf7f77784a820e280fc969f (patch) | |
tree | 89efe0c4a3a55b9a99c94dccb901eb94861d8674 /sw | |
parent | 98fa4be44290ceefd7f08ef167f0278743ade1c5 (diff) |
fdo#46808, convert i18n::InputSequenceChecker to new-style
Change-Id: I29678d74ae3c6dc38d3d09e2cf4a0d4f28f789a1
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/bastyp/checkit.cxx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sw/source/core/bastyp/checkit.cxx b/sw/source/core/bastyp/checkit.cxx index a51fa15043dd..69066ff5cbac 100644 --- a/sw/source/core/bastyp/checkit.cxx +++ b/sw/source/core/bastyp/checkit.cxx @@ -19,22 +19,15 @@ #include <checkit.hxx> #include <comphelper/processfactory.hxx> -#include <com/sun/star/lang/XMultiServiceFactory.hpp> +#include <com/sun/star/i18n/InputSequenceChecker.hpp> using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::lang; using namespace ::com::sun::star::i18n; SwCheckIt::SwCheckIt() { - Reference< XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory(); - Reference < XInterface > xI = xMSF->createInstance( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.i18n.InputSequenceChecker")) ); - if ( xI.is() ) - { - Any x = xI->queryInterface( ::getCppuType((const Reference< XExtendedInputSequenceChecker >*)0) ); - x >>= xCheck; - } + Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext(); + xCheck = InputSequenceChecker::create(xContext); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |