From a80495526ca478038ea6416e08de0456f78fdb4b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 7 Mar 2012 23:00:44 +0000 Subject: OUString::createFromAscii -> new style --- i18npool/source/characterclassification/scripttypedetector.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'i18npool/source/characterclassification') 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; } -- cgit