vcl: followup to remove unnecessary resets

Followup for 44dfcebde64b9edfa9f50eace34e5e1497ab9314

Just enclose it in the correct scope.

Change-Id: I3bb3bfa0fa8bc5996d728f175aad16b64da52166
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180260
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Christopher Sherlock 2025-01-15 17:53:50 +11:00 committed by Michael Weghorn
parent 94d851b27f
commit f7af54d39a

View File

@ -43,6 +43,7 @@ BlendFrameCache::BlendFrameCache(Size const& rSize, sal_uInt8 nAlpha, Color cons
aContent.Erase(COL_BLACK); aContent.Erase(COL_BLACK);
{
BitmapScopedWriteAccess pContent(aContent); BitmapScopedWriteAccess pContent(aContent);
BitmapScopedWriteAccess pAlpha(aAlpha); BitmapScopedWriteAccess pAlpha(aAlpha);
@ -127,9 +128,7 @@ BlendFrameCache::BlendFrameCache(Size const& rSize, sal_uInt8 nAlpha, Color cons
pAlpha->SetPixelOnData(pScanAlpha, x, BitmapColor(nAlpha)); pAlpha->SetPixelOnData(pScanAlpha, x, BitmapColor(nAlpha));
} }
} }
}
pContent.reset();
pAlpha.reset();
m_aLastResult = BitmapEx(aContent, aAlpha); m_aLastResult = BitmapEx(aContent, aAlpha);
} }