summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2002-10-07 13:11:16 +0000
committerOliver Specht <os@openoffice.org>2002-10-07 13:11:16 +0000
commit9482409188a07e6407e665dc875de2ca7f83e21d (patch)
tree285b12b19dadbdda2104079c3bd9995bc1ecd18c /unotools
parent6720a2690cc487136064c1f599608480f3a3180c (diff)
#103642# assert only once in ::GetConfigurationProvider()
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/configmgr.cxx19
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&){}