summaryrefslogtreecommitdiff
path: root/svl/source/items/whassert.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/items/whassert.hxx')
-rw-r--r--svl/source/items/whassert.hxx25
1 files changed, 4 insertions, 21 deletions
diff --git a/svl/source/items/whassert.hxx b/svl/source/items/whassert.hxx
index 379d4794458d..d994f0d33f66 100644
--- a/svl/source/items/whassert.hxx
+++ b/svl/source/items/whassert.hxx
@@ -28,29 +28,12 @@
#ifndef _SFX_WHASSERT_HXX
#define _SFX_WHASSERT_HXX
-#include <tools/debug.hxx>
-#include <rtl/strbuf.hxx>
+#include "sal/config.h"
-//------------------------------------------------------------------------
-
-#ifdef DBG_UTIL
-#define SFX_ASSERT( bCondition, nId, sMessage ) \
-{ \
- if ( DbgIsAssert() ) \
- { \
- if ( !(bCondition) ) \
- { \
- rtl::OStringBuffer aMsg(sMessage); \
- aMsg.append(RTL_CONSTASCII_STRINGPARAM("\nwith Id/Pos: ")); \
- aMsg.append(static_cast<sal_Int32>(nId)); \
- DbgError(aMsg.getStr(), __FILE__, __LINE__); \
- } \
- } \
-}
-#else
-#define SFX_ASSERT( bCondition, nId, sMessage )
-#endif
+#include "sal/log.h"
+#define SFX_ASSERT( bCondition, nId, sMessage ) SAL_WARN_IF_S( \
+ !(bCondition), "svl", (sMessage) << ", with ID/pos " << (nId));
#endif