diff options
author | Noel Grandin <noel@peralex.com> | 2013-01-16 16:28:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-02-11 08:02:11 +0200 |
commit | c4d051c5dbee532264e1bfc2ccdb337c6dcf83ed (patch) | |
tree | d6a6bd49e9cfcfc46e3cd8fd905526fc97e2ed85 /i18npool/source/textconversion | |
parent | a00fe5cd4aa115e131919c4dbfea87c94b51e044 (diff) |
fdo#46808, Adapt ConversionDictionaryList UNO service to new style
Change-Id: I16efc7466a2dbcccb4dddefdccada8549e7252f8
Diffstat (limited to 'i18npool/source/textconversion')
-rw-r--r-- | i18npool/source/textconversion/textconversion_ko.cxx | 7 | ||||
-rw-r--r-- | i18npool/source/textconversion/textconversion_zh.cxx | 6 |
2 files changed, 4 insertions, 9 deletions
diff --git a/i18npool/source/textconversion/textconversion_ko.cxx b/i18npool/source/textconversion/textconversion_ko.cxx index 84534296882d..bb86903f41c9 100644 --- a/i18npool/source/textconversion/textconversion_ko.cxx +++ b/i18npool/source/textconversion/textconversion_ko.cxx @@ -23,6 +23,7 @@ #include <com/sun/star/i18n/TextConversionOption.hpp> #include <com/sun/star/linguistic2/ConversionDirection.hpp> #include <com/sun/star/linguistic2/ConversionDictionaryType.hpp> +#include <com/sun/star/linguistic2/ConversionDictionaryList.hpp> #include <rtl/ustrbuf.hxx> #include <unicode/uchar.h> @@ -50,11 +51,7 @@ TextConversion_ko::TextConversion_ko( const Reference < XComponentContext >& xCo if ( xI.is() ) xI->queryInterface( getCppuType((const Reference< XConversionDictionary>*)0) ) >>= xCD; - xI = xContext->getServiceManager()->createInstanceWithContext( - OUString("com.sun.star.linguistic2.ConversionDictionaryList"), xContext); - - if ( xI.is() ) - xI->queryInterface( getCppuType((const Reference< XConversionDictionaryList>*)0) ) >>= xCDL; + xCDL = ConversionDictionaryList::create(xContext); maxLeftLength = maxRightLength = 1; diff --git a/i18npool/source/textconversion/textconversion_zh.cxx b/i18npool/source/textconversion/textconversion_zh.cxx index ae57063af1c8..94c1cd85e1af 100644 --- a/i18npool/source/textconversion/textconversion_zh.cxx +++ b/i18npool/source/textconversion/textconversion_zh.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/i18n/TextConversionOption.hpp> #include <com/sun/star/linguistic2/ConversionDirection.hpp> #include <com/sun/star/linguistic2/ConversionDictionaryType.hpp> +#include <com/sun/star/linguistic2/ConversionDictionaryList.hpp> #include <comphelper/string.hxx> using namespace com::sun::star::lang; @@ -37,10 +38,7 @@ namespace com { namespace sun { namespace star { namespace i18n { TextConversion_zh::TextConversion_zh( const Reference < XComponentContext >& xContext ) { - Reference < XInterface > xI = xContext->getServiceManager()->createInstanceWithContext( - OUString("com.sun.star.linguistic2.ConversionDictionaryList"), xContext); - if ( xI.is() ) - xI->queryInterface( getCppuType((const Reference< XConversionDictionaryList>*)0) ) >>= xCDL; + xCDL = ConversionDictionaryList::create(xContext); implementationName = "com.sun.star.i18n.TextConversion_zh"; } |