diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2023-12-02 15:28:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-12-02 20:20:40 +0100 |
commit | 1c1806724dd9010d365fa64cc741a1e94dc9b065 (patch) | |
tree | 1c10a62edbc3d4216aa5ebf10c32b63a273c3a1d /vcl/qa/cppunit/BackendTest.cxx | |
parent | 4f928a5823b0bc7cd8af1d588e2084ae1ff1543f (diff) |
AlphaMask::ReleaseAccess is unnecessary
There is no way the format can change via the Bitmap*Access
mechanisms, and we already perform these asserts in
the constructor and operator=.
The code has been there since
commit 8ab086b6cc054501bfbf7ef6fa509c393691e860
Author: Jens-Heiner Rechtien <hr@openoffice.org>
Date: Mon Sep 18 16:07:07 2000 +0000
initial import
Change-Id: I75195f6fd4e29d7133e787131b6c8479a9188d1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160242
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qa/cppunit/BackendTest.cxx')
-rw-r--r-- | vcl/qa/cppunit/BackendTest.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/BackendTest.cxx b/vcl/qa/cppunit/BackendTest.cxx index e5013d244335..c4cc184fb7ad 100644 --- a/vcl/qa/cppunit/BackendTest.cxx +++ b/vcl/qa/cppunit/BackendTest.cxx @@ -1182,7 +1182,7 @@ public: alpha.Erase(255); // transparent BitmapWriteAccess* alphaWrite = alpha.AcquireAlphaWriteAccess(); alphaWrite->SetPixelIndex(0, 0, 255); // opaque - alpha.ReleaseAccess(alphaWrite); + Bitmap::ReleaseAccess(alphaWrite); device->DrawBitmapEx(Point(2, 2), BitmapEx(bitmap, alpha)); exportDevice("blend_extended_04.png", device); CPPUNIT_ASSERT_EQUAL(COL_BLUE, device->GetPixel(Point(2, 2))); |