From 7f62b0711f741ead1b1745e2217ddb78109cd124 Mon Sep 17 00:00:00 2001
From: Jens-Heiner Rechtien
Date: Tue, 22 Apr 2008 14:14:25 +0000
Subject: [PATCH] INTEGRATION: CWS hr50 (1.27.40); FILE MERGED 2008/04/10
17:13:27 hr 1.27.40.1: #i86574#: fix warning (gcc-4.2.3)
---
linguistic/source/lngsvcmgr.cxx | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index 382e586ff50b..3c3b273965dc 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lngsvcmgr.cxx,v $
- * $Revision: 1.30 $
+ * $Revision: 1.31 $
*
* This file is part of OpenOffice.org.
*
@@ -144,8 +144,9 @@ static Sequence< Locale > GetAvailLocales(
aLanguages.Insert( nLang );
}
}
- else
+ else {
DBG_ERROR( "interface not supported by service" );
+ }
}
// build return sequence
@@ -775,8 +776,9 @@ void LngSvcMgr::Notify( const Sequence< OUString > &rPropertyNames )
pThesDsp->SetServiceList( CreateLocale(nLang), aSvcImplNames );
}
}
- else
+ else {
DBG_ERROR( "nofified for unexpected property" );
+ }
}
}
@@ -1511,8 +1513,9 @@ BOOL LngSvcMgr::SaveCfgSvcs( const String &rServiceName )
pNodeName = "ServiceManager/ThesaurusList";
else if (pDsp == pHyphDsp)
pNodeName = "ServiceManager/HyphenatorList";
- else
+ else {
DBG_ERROR( "node name missing" );
+ }
OUString aNodeName( A2OU(pNodeName) );
for (INT32 i = 0; i < nLen; ++i)
@@ -1603,8 +1606,9 @@ static Sequence< OUString > GetLangSvc( const Any &rVal )
aRes.realloc(1);
aRes.getArray()[0] = aImplName;
}
- else
+ else {
DBG_ERROR( "GetLangSvc: unexpected type encountered" );
+ }
}
return aRes;