summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/pixel.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-31 20:28:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-01 17:41:20 +0100
commit7e5d98c427cdcd10566b8f5a7a35c0561ec82d72 (patch)
tree6dfddf4cfae2c6308668b290090dcb88e764e81e /vcl/source/outdev/pixel.cxx
parenta08f0aa2857f4a5342cedf2038488fc98fb716fb (diff)
masses of coverity FORWARD_NULL warnings from copied assert
Change-Id: I8f698bbcf4d53a4477cc0ee0c3f2c7f08e521f8a
Diffstat (limited to 'vcl/source/outdev/pixel.cxx')
-rw-r--r--vcl/source/outdev/pixel.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/outdev/pixel.cxx b/vcl/source/outdev/pixel.cxx
index c4f65283970f..8310a72c3d0b 100644
--- a/vcl/source/outdev/pixel.cxx
+++ b/vcl/source/outdev/pixel.cxx
@@ -57,7 +57,7 @@ Color OutputDevice::GetPixel( const Point& rPt ) const
void OutputDevice::DrawPixel( const Point& rPt )
{
- assert(!dynamic_cast<vcl::Window*>(this) || !dynamic_cast<vcl::Window*>(this)->SupportsDoubleBuffering());
+ assert_if_double_buffered_window();
if ( mpMetaFile )
mpMetaFile->AddAction( new MetaPointAction( rPt ) );
@@ -87,7 +87,7 @@ void OutputDevice::DrawPixel( const Point& rPt )
void OutputDevice::DrawPixel( const Point& rPt, const Color& rColor )
{
- assert(!dynamic_cast<vcl::Window*>(this) || !dynamic_cast<vcl::Window*>(this)->SupportsDoubleBuffering());
+ assert_if_double_buffered_window();
Color aColor = ImplDrawModeToColor( rColor );
@@ -116,7 +116,7 @@ void OutputDevice::DrawPixel( const Point& rPt, const Color& rColor )
void OutputDevice::DrawPixel( const Polygon& rPts, const Color* pColors )
{
- assert(!dynamic_cast<vcl::Window*>(this) || !dynamic_cast<vcl::Window*>(this)->SupportsDoubleBuffering());
+ assert_if_double_buffered_window();
if ( !pColors )
{
@@ -163,7 +163,7 @@ void OutputDevice::DrawPixel( const Polygon& rPts, const Color* pColors )
void OutputDevice::DrawPixel( const Polygon& rPts, const Color& rColor )
{
- assert(!dynamic_cast<vcl::Window*>(this) || !dynamic_cast<vcl::Window*>(this)->SupportsDoubleBuffering());
+ assert_if_double_buffered_window();
if( rColor != COL_TRANSPARENT && ! ImplIsRecordLayout() )
{