summaryrefslogtreecommitdiff
path: root/linguistic/source/lngsvcmgr.cxx
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/source/lngsvcmgr.cxx
parenta8583af9184e7c620bfe98d0cb36b4b52761735c (diff)
#92924#: gcc-3.0.1 needs lvalue
Diffstat (limited to 'linguistic/source/lngsvcmgr.cxx')
-rw-r--r--linguistic/source/lngsvcmgr.cxx22
1 files changed, 14 insertions, 8 deletions
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() );