From 1f211f1cb2cff4f8ec0e8c21a3258b8b4077c883 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 25 Mar 2013 06:56:47 +0100 Subject: OSL_FAIL to SAL_WARN in ASSERT_EXCEPTION Change-Id: I86e50b35fe32d3fdaf2b314e10e582e1b084efa2 --- chart2/source/inc/macros.hxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'chart2') diff --git a/chart2/source/inc/macros.hxx b/chart2/source/inc/macros.hxx index 1e5bc9ec509a..89a0e56b1db8 100644 --- a/chart2/source/inc/macros.hxx +++ b/chart2/source/inc/macros.hxx @@ -26,11 +26,9 @@ */ #if OSL_DEBUG_LEVEL > 0 #define ASSERT_EXCEPTION(ex) \ - OSL_FAIL( OUStringToOString( \ - "Exception caught. Type: " +\ - OUString::createFromAscii( typeid( ex ).name()) +\ - ", Message: " +\ - ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr()) + SAL_WARN("chart2", "Exception caught. Type: " <<\ + typeid( ex ).name() << ", Message: " << \ + ex.Message ) #else //avoid compilation warnings #define ASSERT_EXCEPTION(ex) (void)(ex) -- cgit