summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-07 10:15:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-07 10:48:25 +0100
commit0d78ad871e85a74a2a7eac2f2a2ff94776f35e77 (patch)
treea29ea7098cc49b1116db16f219bdc662e04ac874 /vcl/generic
parent807b696c5c15dc2d8255116305fd28ba60f201c0 (diff)
DBG_ASSERT->assert when followed by dereference
Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/print/genpspgraphics.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/generic/print/genpspgraphics.cxx b/vcl/generic/print/genpspgraphics.cxx
index 1678852c0c14..d4072ed1188e 100644
--- a/vcl/generic/print/genpspgraphics.cxx
+++ b/vcl/generic/print/genpspgraphics.cxx
@@ -86,10 +86,10 @@ private:
virtual sal_uInt32 GetDepth () const SAL_OVERRIDE;
};
-SalPrinterBmp::SalPrinterBmp (BitmapBuffer* pBuffer) :
- mpBmpBuffer (pBuffer)
+SalPrinterBmp::SalPrinterBmp (BitmapBuffer* pBuffer)
+ : mpBmpBuffer(pBuffer)
{
- DBG_ASSERT (mpBmpBuffer, "SalPrinterBmp::SalPrinterBmp () can't acquire Bitmap");
+ assert(mpBmpBuffer && "SalPrinterBmp::SalPrinterBmp () can't acquire Bitmap");
// calibrate scanline buffer
if( BMP_SCANLINE_ADJUSTMENT( mpBmpBuffer->mnFormat ) == BMP_FORMAT_TOP_DOWN )