diff options
author | Oliver Specht <os@openoffice.org> | 2002-10-07 13:11:16 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2002-10-07 13:11:16 +0000 |
commit | 9482409188a07e6407e665dc875de2ca7f83e21d (patch) | |
tree | 285b12b19dadbdda2104079c3bd9995bc1ecd18c /unotools | |
parent | 6720a2690cc487136064c1f599608480f3a3180c (diff) |
#103642# assert only once in ::GetConfigurationProvider()
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configmgr.cxx | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx index afb300f5b8d5..53ba3586bfc4 100644 --- a/unotools/source/config/configmgr.cxx +++ b/unotools/source/config/configmgr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: configmgr.cxx,v $ * - * $Revision: 1.31 $ + * $Revision: 1.32 $ * - * last change: $Author: os $ $Date: 2002-09-25 07:59:16 $ + * last change: $Author: os $ $Date: 2002-10-07 14:11:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -181,11 +181,16 @@ Reference< XMultiServiceFactory > ConfigManager::GetConfigurationProvider() #ifdef DBG_UTIL catch(Exception& rEx) { - OString sMsg("CreateInstance with arguments exception: "); - sMsg += OString(rEx.Message.getStr(), - rEx.Message.getLength(), - RTL_TEXTENCODING_ASCII_US); - OSL_ENSURE(sal_False, sMsg.getStr()); + static sal_Bool bMessage = sal_True; + if(bMessage) + { + OString sMsg("CreateInstance with arguments exception: "); + sMsg += OString(rEx.Message.getStr(), + rEx.Message.getLength(), + RTL_TEXTENCODING_ASCII_US); + OSL_ENSURE(sal_False, sMsg.getStr()); + bMessage = sal_False; + } } #else catch(Exception&){} |