summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2013-09-06 16:01:19 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2013-09-06 16:09:07 +0200
commita7403bf7c12048b8c7eefadd63b021a71cfa5de0 (patch)
tree0c59f298e9f32da4593bf5b0eb85aaec7aa9f437 /vcl
parent192a0b39f1eaf19341dc858f488516ae3a81a2e8 (diff)
Fix debug build without dbgutil
Change-Id: Iab6a680e67f22460b2e5c340c3967c666a28c5c5
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/pngread.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index 2c9ad1113fae..ad5eff05e241 100644
--- a/vcl/source/gdi/pngread.cxx
+++ b/vcl/source/gdi/pngread.cxx
@@ -123,7 +123,7 @@ private:
bool mbpHYs; // true if pysical size of pixel available
bool mbIgnoreGammaChunk;
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
// do some checks in debug mode
sal_Int32 mnAllocSizeScanline;
sal_Int32 mnAllocSizeScanlineAlpha;
@@ -188,7 +188,7 @@ PNGReaderImpl::PNGReaderImpl( SvStream& rPNGStream )
mbGamma ( false ),
mbpHYs ( false ),
mbIgnoreGammaChunk ( false ),
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
mnAllocSizeScanline(0),
mnAllocSizeScanlineAlpha(0),
#endif
@@ -1327,7 +1327,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
// allocate scanlines on demand, reused for next line
if(!mpScanline)
{
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
mnAllocSizeScanline = maOrigSize.Width() * 3;
#endif
mpScanline = new sal_uInt8[maOrigSize.Width() * 3];
@@ -1335,7 +1335,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
if(!mpScanlineAlpha)
{
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
mnAllocSizeScanlineAlpha = maOrigSize.Width();
#endif
mpScanlineAlpha = new sal_uInt8[maOrigSize.Width()];
@@ -1470,7 +1470,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
if(bDoDirectScanline && !mpScanline)
{
// allocate scanlines on demand, reused for next line
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
mnAllocSizeScanline = maOrigSize.Width() * 3;
#endif
mpScanline = new sal_uInt8[maOrigSize.Width() * 3];