diff options
author | Noel Grandin <noel@peralex.com> | 2012-11-02 15:13:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-11-05 18:05:00 +0100 |
commit | 0666e43c45876199ddc71e378554878cca6f0539 (patch) | |
tree | 39fd44bd26cceaa71a86a06c480d80c8351b5e0f /comphelper | |
parent | fdo#52989 ignore provided size of JPEG files during RTF import (diff) | |
download | core-0666e43c45876199ddc71e378554878cca6f0539.tar.gz core-0666e43c45876199ddc71e378554878cca6f0539.zip |
fdo#46808, use service constructor for i18n::CharacterClassification
Change-Id: I0499ad7de27b1539e97f01ab8aa0ef2d6713ae76
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/accessibletexthelper.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/comphelper/source/misc/accessibletexthelper.cxx b/comphelper/source/misc/accessibletexthelper.cxx index 6098abc2e3c8..ab77650a7710 100644 --- a/comphelper/source/misc/accessibletexthelper.cxx +++ b/comphelper/source/misc/accessibletexthelper.cxx @@ -21,6 +21,7 @@ #include <com/sun/star/accessibility/AccessibleTextType.hpp> #include <com/sun/star/i18n/BreakIterator.hpp> #include <com/sun/star/i18n/CharacterIteratorMode.hpp> +#include <com/sun/star/i18n/CharacterClassification.hpp> #include <com/sun/star/i18n/WordType.hpp> #include <com/sun/star/i18n/KCharacterType.hpp> #include <comphelper/processfactory.hxx> @@ -72,12 +73,7 @@ namespace comphelper { if ( !m_xCharClass.is() ) { - Reference< lang::XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory(); - if ( xMSF.is() ) - { - m_xCharClass = Reference< i18n::XCharacterClassification > - ( xMSF->createInstance( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.i18n.CharacterClassification" ) ) ), UNO_QUERY ); - } + m_xCharClass = i18n::CharacterClassification::create( ::comphelper::getProcessComponentContext() ); } return m_xCharClass; |