diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-07 23:00:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-08 12:02:37 +0000 |
commit | a80495526ca478038ea6416e08de0456f78fdb4b (patch) | |
tree | 226e767e34320607a94e2f644874ec4a508c9de2 /i18npool/source/characterclassification | |
parent | a9243992ed564e0e0a133909f0f8561bae2b1e42 (diff) |
OUString::createFromAscii -> new style
Diffstat (limited to 'i18npool/source/characterclassification')
-rw-r--r-- | i18npool/source/characterclassification/scripttypedetector.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/characterclassification/scripttypedetector.cxx b/i18npool/source/characterclassification/scripttypedetector.cxx index 48ececd3df13..28f5165ebc77 100644 --- a/i18npool/source/characterclassification/scripttypedetector.cxx +++ b/i18npool/source/characterclassification/scripttypedetector.cxx @@ -162,20 +162,20 @@ const sal_Char sDetector[] = "draft.com.sun.star.i18n.ScriptTypeDetector"; rtl::OUString SAL_CALL ScriptTypeDetector::getImplementationName() throw( ::com::sun::star::uno::RuntimeException ) { - return ::rtl::OUString::createFromAscii(sDetector); + return rtl::OUString(sDetector); } sal_Bool SAL_CALL ScriptTypeDetector::supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ) { - return !ServiceName.compareToAscii(sDetector); + return ServiceName != sDetector; } ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL ScriptTypeDetector::getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException ) { ::com::sun::star::uno::Sequence< ::rtl::OUString > aRet(1); - aRet[0] = ::rtl::OUString::createFromAscii(sDetector); + aRet[0] = sDetector; return aRet; } |