summaryrefslogtreecommitdiff
path: root/linguistic/source/iprcache.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'linguistic/source/iprcache.cxx')
-rw-r--r--linguistic/source/iprcache.cxx23
1 files changed, 5 insertions, 18 deletions
diff --git a/linguistic/source/iprcache.cxx b/linguistic/source/iprcache.cxx
index cb68a3bad86d..5c4b98a3f51e 100644
--- a/linguistic/source/iprcache.cxx
+++ b/linguistic/source/iprcache.cxx
@@ -99,17 +99,6 @@ static bool lcl_IsFlushProperty( sal_Int32 nHandle )
}
-FlushListener::FlushListener( Flushable *pFO )
-{
- SetFlushObj( pFO );
-}
-
-
-FlushListener::~FlushListener()
-{
-}
-
-
void FlushListener::SetDicList( Reference<XSearchableDictionaryList> &rDL )
{
MutexGuard aGuard( GetLinguMutex() );
@@ -176,9 +165,8 @@ void SAL_CALL FlushListener::processDictionaryListEvent(
DictionaryListEventFlags::DEACTIVATE_POS_DIC;
bool bFlush = 0 != (nEvt & nFlushFlags);
- DBG_ASSERT( pFlushObj, "missing object (NULL pointer)" );
- if (bFlush && pFlushObj != NULL)
- pFlushObj->Flush();
+ if (bFlush)
+ mrSpellCache.Flush();
}
}
@@ -193,9 +181,8 @@ void SAL_CALL FlushListener::propertyChange(
{
bool bFlush = lcl_IsFlushProperty( rEvt.PropertyHandle );
- DBG_ASSERT( pFlushObj, "missing object (NULL pointer)" );
- if (bFlush && pFlushObj != NULL)
- pFlushObj->Flush();
+ if (bFlush)
+ mrSpellCache.Flush();
}
}
@@ -203,7 +190,7 @@ void SAL_CALL FlushListener::propertyChange(
SpellCache::SpellCache()
{
- pFlushLstnr = new FlushListener( this );
+ pFlushLstnr = new FlushListener( *this );
xFlushLstnr = pFlushLstnr;
Reference<XSearchableDictionaryList> aDictionaryList(GetDictionaryList());
pFlushLstnr->SetDicList( aDictionaryList ); //! after reference is established