From e4d362017ecd6076ab9fd13d9c6b2c5137580500 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 Jan 2017 15:04:38 +0200 Subject: use rtl::Reference in SpellCache instead of storing both a raw pointer and a uno::Reference Change-Id: I8764bf6b7d7745dd14f6c7548e771131354b1f23 --- linguistic/source/iprcache.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'linguistic/source/iprcache.cxx') diff --git a/linguistic/source/iprcache.cxx b/linguistic/source/iprcache.cxx index fbcbb446b25d..e7989b2b8af6 100644 --- a/linguistic/source/iprcache.cxx +++ b/linguistic/source/iprcache.cxx @@ -189,20 +189,19 @@ void SAL_CALL FlushListener::propertyChange( SpellCache::SpellCache() { - pFlushLstnr = new FlushListener( *this ); - xFlushLstnr = pFlushLstnr; + mxFlushLstnr = new FlushListener( *this ); Reference aDictionaryList(GetDictionaryList()); - pFlushLstnr->SetDicList( aDictionaryList ); //! after reference is established + mxFlushLstnr->SetDicList( aDictionaryList ); //! after reference is established Reference aPropertySet(GetLinguProperties()); - pFlushLstnr->SetPropSet( aPropertySet ); //! after reference is established + mxFlushLstnr->SetPropSet( aPropertySet ); //! after reference is established } SpellCache::~SpellCache() { Reference aEmptyList; Reference aEmptySet; - pFlushLstnr->SetDicList( aEmptyList ); - pFlushLstnr->SetPropSet( aEmptySet ); + mxFlushLstnr->SetDicList( aEmptyList ); + mxFlushLstnr->SetPropSet( aEmptySet ); } void SpellCache::Flush() -- cgit