summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-05-25 12:14:09 +0200
committerMichael Stahl <mstahl@redhat.com>2016-05-25 13:45:40 +0200
commitfa63fe59a14d3d39c87517ceef9a7fc5c4e7261c (patch)
tree328c019c7ebb27ba2e7e16f521fb96db1bd7eeec /vcl
parent4384ee727ce00db931e6d23d526c467b0491941c (diff)
remove (un-)definitions of NDEBUG from source files
The build system already defines NDEBUG only if OSL_DEBUG_LEVEL=0 AND ASSERT_ALWAYS_ABORT=FALSE so the C++ code shouldn't override that. Change-Id: Ie67a576646cc7e18c3ffac67a3c81b80747ea438
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/fontsubset/ttcr.cxx5
-rw-r--r--vcl/source/glyphs/graphite_layout.cxx1
-rw-r--r--vcl/win/gdi/salfont.cxx4
3 files changed, 0 insertions, 10 deletions
diff --git a/vcl/source/fontsubset/ttcr.cxx b/vcl/source/fontsubset/ttcr.cxx
index 0708b2e77268..ff7169cfed29 100644
--- a/vcl/source/fontsubset/ttcr.cxx
+++ b/vcl/source/fontsubset/ttcr.cxx
@@ -24,11 +24,6 @@
*
*/
-#if OSL_DEBUG_LEVEL == 0
-# ifndef NDEBUG
-# define NDEBUG
-# endif
-#endif
#include <assert.h>
#include "ttcr.hxx"
diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx
index 290f25132060..f1eb4618d368 100644
--- a/vcl/source/glyphs/graphite_layout.cxx
+++ b/vcl/source/glyphs/graphite_layout.cxx
@@ -24,7 +24,6 @@
#if OSL_DEBUG_LEVEL > 1
#include <cstdio>
#define GRLAYOUT_DEBUG 1
-#undef NDEBUG
#endif
//#define GRLAYOUT_DEBUG 1
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx
index d198dc678319..e72bb1dca4f4 100644
--- a/vcl/win/gdi/salfont.cxx
+++ b/vcl/win/gdi/salfont.cxx
@@ -911,7 +911,6 @@ static FILE * grLog()
else fflush(grLogFile);
return grLogFile;
}
-#undef NDEBUG
#endif
const void * getGrTable(const void* appFaceHandle, unsigned int name, size_t *len)
@@ -962,9 +961,6 @@ GrFontData::~GrFontData()
const void * GrFontData::getTable(unsigned int name, size_t *len) const
{
-#ifdef DEBUG
-#undef NDEBUG
-#endif
assert(mhDC);
// swap the bytes
union TtfTag {