summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-11-03 15:43:04 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-11-03 20:47:58 +0100
commit49747ff2337fd1f4a3ee8e16d6328b8dacad99ec (patch)
tree110901102d4ae356b161434a4e4064a28a0a738a /canvas
parent0981f1d8c8a8918b5f28bf5605023b07e73b0d44 (diff)
tdf#120703 PVS: V547 Expression is always true/false
Change-Id: I75082c85862b83ed2503900186ce9c70783e54db Reviewed-on: https://gerrit.libreoffice.org/62817 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/directx/dx_bitmapcanvashelper.cxx12
1 files changed, 0 insertions, 12 deletions
diff --git a/canvas/source/directx/dx_bitmapcanvashelper.cxx b/canvas/source/directx/dx_bitmapcanvashelper.cxx
index d05534bf4bc0..b6d08fbbf8df 100644
--- a/canvas/source/directx/dx_bitmapcanvashelper.cxx
+++ b/canvas/source/directx/dx_bitmapcanvashelper.cxx
@@ -160,9 +160,6 @@ namespace dxcanvas
ENSURE_OR_THROW( mpTarget,
"::dxcanvas::BitmapCanvasHelper::getData(): disposed" );
- if( !mpTarget )
- return uno::Sequence< sal_Int8 >();
-
bitmapLayout = getMemoryLayout();
return mpTarget->getData(bitmapLayout,rect);
}
@@ -176,9 +173,6 @@ namespace dxcanvas
ENSURE_OR_THROW( mpTarget,
"::dxcanvas::BitmapCanvasHelper::setData(): disposed" );
- if( !mpTarget )
- return;
-
mpTarget->setData(data,bitmapLayout,rect);
}
@@ -191,9 +185,6 @@ namespace dxcanvas
ENSURE_OR_THROW( mpTarget,
"::dxcanvas::BitmapCanvasHelper::setPixel(): disposed" );
- if( !mpTarget )
- return;
-
mpTarget->setPixel(color,bitmapLayout,pos);
}
@@ -205,9 +196,6 @@ namespace dxcanvas
ENSURE_OR_THROW( mpTarget,
"::dxcanvas::BitmapCanvasHelper::getPixel(): disposed" );
- if( !mpTarget )
- return uno::Sequence< sal_Int8 >();
-
bitmapLayout = getMemoryLayout();
return mpTarget->getPixel(bitmapLayout,pos);
}