diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-03-26 08:06:01 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-03-26 08:06:01 +0000 |
commit | bb0da42292de549c9e9d5a437ca3857616f43ab9 (patch) | |
tree | 2cceeb85cc6f7edf6e3cffc98067d12bbb82675a /linguistic/source/misc.cxx | |
parent | d0bf6035f727ec905d44471d6b3b840bfef0ebda (diff) |
INTEGRATION: CWS tl51_DEV300 (1.28.22); FILE MERGED
2007/11/15 12:53:37 tl 1.28.22.1: #150990# catch exception from createInstance(WithArguments) calls
Diffstat (limited to 'linguistic/source/misc.cxx')
-rw-r--r-- | linguistic/source/misc.cxx | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index 8a5b5ae43841..8f008dded9d5 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -4,9 +4,9 @@ * * $RCSfile: misc.cxx,v $ * - * $Revision: 1.29 $ + * $Revision: 1.30 $ * - * last change: $Author: obo $ $Date: 2008-03-25 16:29:30 $ + * last change: $Author: obo $ $Date: 2008-03-26 09:06:01 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -702,7 +702,7 @@ uno::Reference< XHyphenatedWord > RebuildHyphensAndControlChars( else { //! should at least work with the German words - //! B-c-k-er and Sc-hif-fah-rt + //! B�-c-k-er and Sc-hif-fah-rt OUString aLeft, aRight; INT16 nPos = GetOrigWordPos( rOrigWord, nChgPos ); @@ -880,7 +880,14 @@ uno::Reference< XInterface > GetOneInstanceService( const char *pServiceName ) uno::Reference< XMultiServiceFactory > xMgr( getProcessServiceFactory() ); if (xMgr.is()) { - xRef = xMgr->createInstance( A2OU( pServiceName ) ); + try + { + xRef = xMgr->createInstance( A2OU( pServiceName ) ); + } + catch (uno::Exception &) + { + DBG_ERROR( "createInstance failed" ); + } } } @@ -911,13 +918,19 @@ AppExitListener::AppExitListener() { // add object to Desktop EventListeners in order to properly call // the AtExit function at appliction exit. - uno::Reference< XMultiServiceFactory > - xMgr = getProcessServiceFactory(); + uno::Reference< XMultiServiceFactory > xMgr = getProcessServiceFactory(); if (xMgr.is()) { - xDesktop = uno::Reference< frame::XDesktop >( - xMgr->createInstance( A2OU( SN_DESKTOP ) ), UNO_QUERY ); + try + { + xDesktop = uno::Reference< frame::XDesktop >( + xMgr->createInstance( A2OU( SN_DESKTOP ) ), UNO_QUERY ); + } + catch (uno::Exception &) + { + DBG_ERROR( "createInstance failed" ); + } } } |