diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-05-22 16:59:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-05-22 16:59:04 +0200 |
commit | ba9613715288f3907185133892d1dbbaa9e006a9 (patch) | |
tree | e746b0fa7e9f2324ab92e3ba07d3097d5bbba82c /chart2 | |
parent | ea2f06d7884f2b765394bff8a1e935f67f6c961d (diff) |
Minor simplification
Change-Id: I8425971ed81b4f13be5e295a5a5b9ef443b9a4db
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/inc/macros.hxx | 13 |
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: */ |