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:
Caolán McNamara 2022-12-29 12:03:17 +00:00
parent 62ed082ee0
commit eeaee6726c
2 changed files with 2 additions and 4 deletions

View File

@ -175,8 +175,7 @@ std::vector<sal_uInt8> createBitmapData(const BitmapEx& rBitmapEx)
{
Bitmap aSrcAlpha(rBitmapEx.GetAlpha().GetBitmap());
Bitmap::ScopedReadAccess pReadAccess(const_cast<Bitmap&>(rBitmapEx.GetBitmap()));
Bitmap::ScopedReadAccess pAlphaReadAccess(bAlpha ? aSrcAlpha.AcquireReadAccess() : nullptr,
aSrcAlpha);
Bitmap::ScopedReadAccess pAlphaReadAccess(aSrcAlpha.AcquireReadAccess(), aSrcAlpha);
const tools::Long nHeight(pReadAccess->Height());
const tools::Long nWidth(pReadAccess->Width());

View File

@ -418,8 +418,7 @@ ID2D1Bitmap* createB2DBitmap(const BitmapEx& rBitmapEx)
{
Bitmap aSrcAlpha(rBitmapEx.GetAlpha().GetBitmap());
Bitmap::ScopedReadAccess pReadAccess(const_cast<Bitmap&>(rBitmapEx.GetBitmap()));
Bitmap::ScopedReadAccess pAlphaReadAccess(bAlpha ? aSrcAlpha.AcquireReadAccess() : nullptr,
aSrcAlpha);
Bitmap::ScopedReadAccess pAlphaReadAccess(aSrcAlpha.AcquireReadAccess(), aSrcAlpha);
const tools::Long nHeight(pReadAccess->Height());
const tools::Long nWidth(pReadAccess->Width());