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:
parent
62ed082ee0
commit
eeaee6726c
@ -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());
|
||||
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user