[Libreoffice-commits] core.git: vcl/source
Khaled Hosny
khaledhosny at eglug.org
Fri Sep 6 07:13:17 PDT 2013
vcl/source/gdi/pngread.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit a7403bf7c12048b8c7eefadd63b021a71cfa5de0
Author: Khaled Hosny <khaledhosny at eglug.org>
Date: Fri Sep 6 16:01:19 2013 +0200
Fix debug build without dbgutil
Change-Id: Iab6a680e67f22460b2e5c340c3967c666a28c5c5
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index 2c9ad11..ad5eff0 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];
More information about the Libreoffice-commits
mailing list