summaryrefslogtreecommitdiff
path: root/linguistic/source/hyphdsp.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-03-26 08:05:15 +0000
committerOliver Bolte <obo@openoffice.org>2008-03-26 08:05:15 +0000
commitac567ecc7d1d461865638a0cd270fc2f85abfd10 (patch)
treea8ba66749bc6146c2d861e7a60151f24b0216ba4 /linguistic/source/hyphdsp.cxx
parentba986b6e3f30fecaea35b805207992d1c9e08063 (diff)
INTEGRATION: CWS tl51_DEV300 (1.21.24); FILE MERGED
2007/11/15 12:53:37 tl 1.21.24.1: #150990# catch exception from createInstance(WithArguments) calls
Diffstat (limited to 'linguistic/source/hyphdsp.cxx')
-rw-r--r--linguistic/source/hyphdsp.cxx49
1 files changed, 35 insertions, 14 deletions
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx
index 103a5c7b7bc6..8ba421a6c031 100644
--- a/linguistic/source/hyphdsp.cxx
+++ b/linguistic/source/hyphdsp.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: hyphdsp.cxx,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: obo $ $Date: 2008-03-25 16:27:21 $
+ * last change: $Author: obo $ $Date: 2008-03-26 09:05:15 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -393,10 +393,17 @@ Reference< XHyphenatedWord > SAL_CALL
//aArgs.getArray()[1] <<= GetDicList();
// create specific service via it's implementation name
- Reference< XHyphenator > xHyph(
- xMgr->createInstanceWithArguments(
- pEntry->aSvcImplName, aArgs ),
- UNO_QUERY );
+ Reference< XHyphenator > xHyph;
+ try
+ {
+ xHyph = Reference< XHyphenator >(
+ xMgr->createInstanceWithArguments(
+ pEntry->aSvcImplName, aArgs ), UNO_QUERY );
+ }
+ catch (uno::Exception &)
+ {
+ DBG_ERROR( "createInstanceWithArguments failed" );
+ }
rHyph = xHyph;
Reference< XLinguServiceEventBroadcaster >
@@ -520,10 +527,17 @@ Reference< XHyphenatedWord > SAL_CALL
//aArgs.getArray()[1] <<= GetDicList();
// create specific service via it's implementation name
- Reference< XHyphenator > xHyph(
- xMgr->createInstanceWithArguments(
- pEntry->aSvcImplName, aArgs ),
- UNO_QUERY );
+ Reference< XHyphenator > xHyph;
+ try
+ {
+ xHyph = Reference< XHyphenator >(
+ xMgr->createInstanceWithArguments(
+ pEntry->aSvcImplName, aArgs ), UNO_QUERY );
+ }
+ catch (uno::Exception &)
+ {
+ DBG_ERROR( "createInstanceWithArguments failed" );
+ }
rHyph = xHyph;
Reference< XLinguServiceEventBroadcaster >
@@ -642,10 +656,17 @@ Reference< XPossibleHyphens > SAL_CALL
//aArgs.getArray()[1] <<= GetDicList();
// create specific service via it's implementation name
- Reference< XHyphenator > xHyph(
- xMgr->createInstanceWithArguments(
- pEntry->aSvcImplName, aArgs ),
- UNO_QUERY );
+ Reference< XHyphenator > xHyph;
+ try
+ {
+ xHyph = Reference< XHyphenator >(
+ xMgr->createInstanceWithArguments(
+ pEntry->aSvcImplName, aArgs ), UNO_QUERY );
+ }
+ catch (uno::Exception &)
+ {
+ DBG_ERROR( "createWithArguments failed" );
+ }
rHyph = xHyph;
Reference< XLinguServiceEventBroadcaster >