cid#1518242 Logically dead code
Change-Id: Ie0a426c207746cca19b652a51b6f567e4b9a0752 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144860 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -175,8 +175,7 @@ std::vector<sal_uInt8> createBitmapData(const BitmapEx& rBitmapEx)
|
|||||||
{
|
{
|
||||||
Bitmap aSrcAlpha(rBitmapEx.GetAlpha().GetBitmap());
|
Bitmap aSrcAlpha(rBitmapEx.GetAlpha().GetBitmap());
|
||||||
Bitmap::ScopedReadAccess pReadAccess(const_cast<Bitmap&>(rBitmapEx.GetBitmap()));
|
Bitmap::ScopedReadAccess pReadAccess(const_cast<Bitmap&>(rBitmapEx.GetBitmap()));
|
||||||
Bitmap::ScopedReadAccess pAlphaReadAccess(bAlpha ? aSrcAlpha.AcquireReadAccess() : nullptr,
|
Bitmap::ScopedReadAccess pAlphaReadAccess(aSrcAlpha.AcquireReadAccess(), aSrcAlpha);
|
||||||
aSrcAlpha);
|
|
||||||
const tools::Long nHeight(pReadAccess->Height());
|
const tools::Long nHeight(pReadAccess->Height());
|
||||||
const tools::Long nWidth(pReadAccess->Width());
|
const tools::Long nWidth(pReadAccess->Width());
|
||||||
|
|
||||||
|
@@ -418,8 +418,7 @@ ID2D1Bitmap* createB2DBitmap(const BitmapEx& rBitmapEx)
|
|||||||
{
|
{
|
||||||
Bitmap aSrcAlpha(rBitmapEx.GetAlpha().GetBitmap());
|
Bitmap aSrcAlpha(rBitmapEx.GetAlpha().GetBitmap());
|
||||||
Bitmap::ScopedReadAccess pReadAccess(const_cast<Bitmap&>(rBitmapEx.GetBitmap()));
|
Bitmap::ScopedReadAccess pReadAccess(const_cast<Bitmap&>(rBitmapEx.GetBitmap()));
|
||||||
Bitmap::ScopedReadAccess pAlphaReadAccess(bAlpha ? aSrcAlpha.AcquireReadAccess() : nullptr,
|
Bitmap::ScopedReadAccess pAlphaReadAccess(aSrcAlpha.AcquireReadAccess(), aSrcAlpha);
|
||||||
aSrcAlpha);
|
|
||||||
const tools::Long nHeight(pReadAccess->Height());
|
const tools::Long nHeight(pReadAccess->Height());
|
||||||
const tools::Long nWidth(pReadAccess->Width());
|
const tools::Long nWidth(pReadAccess->Width());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user