From 9482409188a07e6407e665dc875de2ca7f83e21d Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Mon, 7 Oct 2002 13:11:16 +0000 Subject: #103642# assert only once in ::GetConfigurationProvider() --- unotools/source/config/configmgr.cxx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'unotools') 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&){} -- cgit