diff options
Diffstat (limited to 'linguistic/source/gciterator.cxx')
-rwxr-xr-x[-rw-r--r--] | linguistic/source/gciterator.cxx | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index 33c94d902d6d..a5ca694c678e 100644..100755 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -60,16 +60,16 @@ #include <cppuhelper/implbase4.hxx> #include <cppuhelper/implementationentry.hxx> #include <cppuhelper/interfacecontainer.h> -#include <cppuhelper/extract.hxx> #include <cppuhelper/factory.hxx> #include <i18npool/mslangid.hxx> #include <unotools/processfactory.hxx> +#include <comphelper/extract.hxx> #include <deque> #include <map> #include <vector> -#include "misc.hxx" +#include "linguistic/misc.hxx" #include "defs.hxx" #include "lngopt.hxx" @@ -1222,10 +1222,10 @@ throw(uno::RuntimeException) { uno::Sequence< OUString > aSNL = getSupportedServiceNames(); const OUString * pArray = aSNL.getConstArray(); - for( INT32 i = 0; i < aSNL.getLength(); ++i ) + for( sal_Int32 i = 0; i < aSNL.getLength(); ++i ) if( pArray[i] == rServiceName ) - return TRUE; - return FALSE; + return sal_True; + return sal_False; } @@ -1336,27 +1336,4 @@ void * SAL_CALL GrammarCheckingIterator_getFactory( return pRet; } - -sal_Bool SAL_CALL GrammarCheckingIterator_writeInfo( - void * /*pServiceManager*/, - registry::XRegistryKey * pRegistryKey ) -{ - try - { - OUString aImpl( '/' ); - aImpl += GrammarCheckingIterator_getImplementationName().getStr(); - aImpl += A2OU( "/UNO/SERVICES" ); - uno::Reference< registry::XRegistryKey > xNewKey = pRegistryKey->createKey( aImpl ); - uno::Sequence< OUString > aServices = GrammarCheckingIterator_getSupportedServiceNames(); - for( sal_Int32 i = 0; i < aServices.getLength(); i++ ) - xNewKey->createKey( aServices.getConstArray()[i] ); - - return sal_True; - } - catch (uno::Exception &) - { - return sal_False; - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file |