summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2001-10-11 16:13:17 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2001-10-11 16:13:17 +0000
commit3b764eb1c687479735bb15766e1d869fe949fe27 (patch)
tree87f78025455d41ce7513619f56be38d68e7ae54f /linguistic
parenta8583af9184e7c620bfe98d0cb36b4b52761735c (diff)
#92924#: gcc-3.0.1 needs lvalue
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/iprcache.cxx16
-rw-r--r--linguistic/source/lngsvcmgr.cxx22
2 files changed, 24 insertions, 14 deletions
diff --git a/linguistic/source/iprcache.cxx b/linguistic/source/iprcache.cxx
index 4c367dc5941c..b49c2b7e2e27 100644
--- a/linguistic/source/iprcache.cxx
+++ b/linguistic/source/iprcache.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: iprcache.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: tl $ $Date: 2001-02-27 14:26:48 $
+ * last change: $Author: hr $ $Date: 2001-10-11 17:13:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -338,16 +338,20 @@ IPRSpellCache::IPRSpellCache( ULONG nSize ) :
{
pFlushLstnr = new FlushListener( this );
xFlushLstnr = pFlushLstnr;
- pFlushLstnr->SetDicList( GetDictionaryList() ); //! after reference is established
- pFlushLstnr->SetPropSet( GetLinguProperties() ); //! after reference is established
+ Reference<XDictionaryList> aDictionaryList(GetDictionaryList());
+ pFlushLstnr->SetDicList( aDictionaryList ); //! after reference is established
+ Reference<XPropertySet> aPropertySet(GetLinguProperties());
+ pFlushLstnr->SetPropSet( aPropertySet ); //! after reference is established
}
IPRSpellCache::~IPRSpellCache()
{
MutexGuard aGuard( GetLinguMutex() );
- pFlushLstnr->SetDicList( Reference< XDictionaryList >() );
- pFlushLstnr->SetPropSet( Reference< XPropertySet >() );
+ Reference<XDictionaryList> aDictionaryList;
+ pFlushLstnr->SetDicList( aDictionaryList );
+ Reference<XPropertySet> aPropertySet;
+ pFlushLstnr->SetPropSet( aPropertySet );
#ifdef DBG_STATISTIC
// Binary File oeffnen
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index 57db96491277..919d9a5676b5 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: lngsvcmgr.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: tl $ $Date: 2001-08-17 12:44:09 $
+ * last change: $Author: hr $ $Date: 2001-10-11 17:13:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -759,8 +759,10 @@ void LngSvcMgr::GetAvailableSpellSvcs_Impl()
"empty implementation name" );
Reference< XSupportedLocales > xSuppLoc( xSvc, UNO_QUERY );
DBG_ASSERT( xSuppLoc.is(), "interfaces not supported" );
- if (xSuppLoc.is())
- aLanguages = LocaleSeqToLangSeq( xSuppLoc->getLocales() );
+ if (xSuppLoc.is()) {
+ Sequence<Locale> aLocaleSequence(xSuppLoc->getLocales());
+ aLanguages = LocaleSeqToLangSeq( aLocaleSequence );
+ }
pAvailSpellSvcs->Insert( new SvcInfo( aImplName, aLanguages ),
pAvailSpellSvcs->Count() );
@@ -814,8 +816,10 @@ void LngSvcMgr::GetAvailableHyphSvcs_Impl()
"empty implementation name" );
Reference< XSupportedLocales > xSuppLoc( xSvc, UNO_QUERY );
DBG_ASSERT( xSuppLoc.is(), "interfaces not supported" );
- if (xSuppLoc.is())
- aLanguages = LocaleSeqToLangSeq( xSuppLoc->getLocales() );
+ if (xSuppLoc.is()) {
+ Sequence<Locale> aLocaleSequence(xSuppLoc->getLocales());
+ aLanguages = LocaleSeqToLangSeq( aLocaleSequence );
+ }
pAvailHyphSvcs->Insert( new SvcInfo( aImplName, aLanguages ),
pAvailHyphSvcs->Count() );
@@ -869,8 +873,10 @@ void LngSvcMgr::GetAvailableThesSvcs_Impl()
"empty implementation name" );
Reference< XSupportedLocales > xSuppLoc( xSvc, UNO_QUERY );
DBG_ASSERT( xSuppLoc.is(), "interfaces not supported" );
- if (xSuppLoc.is())
- aLanguages = LocaleSeqToLangSeq( xSuppLoc->getLocales() );
+ if (xSuppLoc.is()) {
+ Sequence<Locale> aLocaleSequence(xSuppLoc->getLocales());
+ aLanguages = LocaleSeqToLangSeq( aLocaleSequence );
+ }
pAvailThesSvcs->Insert( new SvcInfo( aImplName, aLanguages ),
pAvailThesSvcs->Count() );