summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-05-22 16:59:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-05-22 16:59:04 +0200
commitba9613715288f3907185133892d1dbbaa9e006a9 (patch)
treee746b0fa7e9f2324ab92e3ba07d3097d5bbba82c /chart2
parentEnsure SolarMutex is locked at DBG_TESTSOLARMUTEX checkpoints (diff)
downloadcore-ba9613715288f3907185133892d1dbbaa9e006a9.tar.gz
core-ba9613715288f3907185133892d1dbbaa9e006a9.zip
Minor simplification
Change-Id: I8425971ed81b4f13be5e295a5a5b9ef443b9a4db
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/inc/macros.hxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/chart2/source/inc/macros.hxx b/chart2/source/inc/macros.hxx
index 89a0e56b1db8..874a4ddb0435 100644
--- a/chart2/source/inc/macros.hxx
+++ b/chart2/source/inc/macros.hxx
@@ -19,22 +19,17 @@
#ifndef CHART_MACROS_HXX
#define CHART_MACROS_HXX
+#include "sal/config.h"
+
#include <typeinfo>
-/** shows an error-box for an exception ex
- else-branch necessary to avoid warning
-*/
-#if OSL_DEBUG_LEVEL > 0
+#include "sal/log.hxx"
+
#define ASSERT_EXCEPTION(ex) \
SAL_WARN("chart2", "Exception caught. Type: " <<\
typeid( ex ).name() << ", Message: " << \
ex.Message )
-#else
-//avoid compilation warnings
-#define ASSERT_EXCEPTION(ex) (void)(ex)
-#endif
-// CHART_MACROS_HXX
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */