diff options
Diffstat (limited to 'linguistic/source/iprcache.cxx')
-rw-r--r-- | linguistic/source/iprcache.cxx | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/linguistic/source/iprcache.cxx b/linguistic/source/iprcache.cxx index bdde4e6851ff..60fead4a3374 100644 --- a/linguistic/source/iprcache.cxx +++ b/linguistic/source/iprcache.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -36,43 +37,22 @@ #include <com/sun/star/linguistic2/DictionaryListEventFlags.hpp> #include <tools/debug.hxx> #include <osl/mutex.hxx> - -//#define IPR_DEF_CACHE_SIZE 503 -#define IPR_DEF_CACHE_MAX 375 -#define IPR_DEF_CACHE_MAXINPUT 200 - -#ifdef DBG_STATISTIC -#include <tools/stream.hxx> - -//#define IPR_CACHE_SIZE nTblSize -#define IPR_CACHE_MAX nMax -#define IPR_CACHE_MAXINPUT nMaxInput - -#else - -//#define IPR_CACHE_SIZE IPR_DEF_CACHE_SIZE -#define IPR_CACHE_MAX IPR_DEF_CACHE_MAX -#define IPR_CACHE_MAXINPUT IPR_DEF_CACHE_MAXINPUT - -#endif #include <unotools/processfactory.hxx> - #include <linguistic/lngprops.hxx> using namespace utl; using namespace osl; -using namespace rtl; using namespace com::sun::star; using namespace com::sun::star::beans; using namespace com::sun::star::lang; using namespace com::sun::star::uno; using namespace com::sun::star::linguistic2; +using ::rtl::OUString; namespace linguistic { -/////////////////////////////////////////////////////////////////////////// #define NUM_FLUSH_PROPS 6 @@ -99,7 +79,7 @@ static void lcl_AddAsPropertyChangeListener( for (int i = 0; i < NUM_FLUSH_PROPS; ++i) { rPropSet->addPropertyChangeListener( - A2OU(aFlushProperties[i].pPropName), xListener ); + ::rtl::OUString::createFromAscii(aFlushProperties[i].pPropName), xListener ); } } } @@ -114,7 +94,7 @@ static void lcl_RemoveAsPropertyChangeListener( for (int i = 0; i < NUM_FLUSH_PROPS; ++i) { rPropSet->removePropertyChangeListener( - A2OU(aFlushProperties[i].pPropName), xListener ); + ::rtl::OUString::createFromAscii(aFlushProperties[i].pPropName), xListener ); } } } @@ -233,7 +213,6 @@ void SAL_CALL FlushListener::propertyChange( } -/////////////////////////////////////////////////////////////////////////// SpellCache::SpellCache() { @@ -278,7 +257,7 @@ void SpellCache::AddWord( const OUString& rWord, LanguageType nLang ) rList.clear(); rList.insert( rWord ); } -/////////////////////////////////////////////////////////////////////////// } // namespace linguistic +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |