summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-06-12 14:42:51 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-20 01:26:08 -0400
commite873661f6c20389d50ee2d4661b00d111e46f3e5 (patch)
tree724646bac031fa8984ff3f3a6a02a0ab6756045b /vcl/source/gdi
parentd48ceabd7aef42580d70c680ac863f497b146cca (diff)
convert more DBG_ASSERT(false to SAL_WARN
Reviewed-on: https://gerrit.libreoffice.org/26195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> (cherry picked from commit 272a8afa60fe9a6b497c69a58b0054ad5b880690) Change-Id: Ie52f28f28c67a91c4d3d4517d5c6a466890c7a55
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx4
-rw-r--r--vcl/source/gdi/print.cxx6
-rw-r--r--vcl/source/gdi/virdev.cxx2
3 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index e667cb23ec41..6e736434083f 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -8225,7 +8225,7 @@ void PDFWriterImpl::sortWidgets()
}
else
{
- DBG_ASSERT( false, "wrong number of sorted annotations" );
+ SAL_WARN( "vcl", "wrong number of sorted annotations" );
#if OSL_DEBUG_LEVEL > 0
fprintf( stderr, "PDFWriterImpl::sortWidgets(): wrong number of sorted assertions on page nr %ld\n"
" %ld sorted and %ld unsorted\n", (long int)it->first, (long int)it->second.aSortedAnnots.size(), (long int)nAnnots );
@@ -12528,7 +12528,7 @@ sal_Int32 PDFWriterImpl::beginStructureElement( PDFWriter::StructElement eType,
if( childType == PDFWriter::Document )
{
m_nCurrentStructElement = nNewCurElement;
- DBG_ASSERT( false, "Structure element inserted to StructTreeRoot that is not a document" );
+ SAL_WARN( "vcl", "Structure element inserted to StructTreeRoot that is not a document" );
}
else {
OSL_FAIL( "document structure in disorder !" );
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index dd9e6b38eee8..017acd1670d8 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -327,21 +327,21 @@ void Printer::EmulateDrawTransparent ( const tools::PolyPolygon& rPolyPoly,
void Printer::DrawOutDev( const Point& /*rDestPt*/, const Size& /*rDestSize*/,
const Point& /*rSrcPt*/, const Size& /*rSrcSize*/ )
{
- DBG_ASSERT( false, "Don't use OutputDevice::DrawOutDev(...) with printer devices!" );
+ SAL_WARN( "vcl", "Don't use OutputDevice::DrawOutDev(...) with printer devices!" );
}
void Printer::DrawOutDev( const Point& /*rDestPt*/, const Size& /*rDestSize*/,
const Point& /*rSrcPt*/, const Size& /*rSrcSize*/,
const OutputDevice& /*rOutDev*/ )
{
- DBG_ASSERT( false, "Don't use OutputDevice::DrawOutDev(...) with printer devices!" );
+ SAL_WARN( "vcl", "Don't use OutputDevice::DrawOutDev(...) with printer devices!" );
}
void Printer::CopyArea( const Point& /*rDestPt*/,
const Point& /*rSrcPt*/, const Size& /*rSrcSize*/,
bool /*bWindowInvalidate*/ )
{
- DBG_ASSERT( false, "Don't use OutputDevice::CopyArea(...) with printer devices!" );
+ SAL_WARN( "vcl", "Don't use OutputDevice::CopyArea(...) with printer devices!" );
}
void Printer::SetPrinterOptions( const PrinterOptions& i_rOptions )
diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx
index af9bbbdddc83..7d788de40720 100644
--- a/vcl/source/gdi/virdev.cxx
+++ b/vcl/source/gdi/virdev.cxx
@@ -467,7 +467,7 @@ void VirtualDevice::SetReferenceDevice( RefDevMode i_eRefDevMode )
{
case REFDEV_NONE:
default:
- DBG_ASSERT( false, "VDev::SetRefDev illegal argument!" );
+ SAL_WARN( "vcl", "VDev::SetRefDev illegal argument!" );
break;
case REFDEV_MODE06:
nDPIX = nDPIY = 600;