summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2023-12-02 15:28:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-12-02 20:20:40 +0100
commit1c1806724dd9010d365fa64cc741a1e94dc9b065 (patch)
tree1c10a62edbc3d4216aa5ebf10c32b63a273c3a1d /include
parent4f928a5823b0bc7cd8af1d588e2084ae1ff1543f (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 'include')
-rw-r--r--include/vcl/alpha.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/alpha.hxx b/include/vcl/alpha.hxx
index 9c6b1070ed53..8de4ea113d01 100644
--- a/include/vcl/alpha.hxx
+++ b/include/vcl/alpha.hxx
@@ -66,7 +66,7 @@ public:
BitmapReadAccess* AcquireAlphaReadAccess() { return Bitmap::AcquireReadAccess(); }
BitmapWriteAccess* AcquireAlphaWriteAccess() { return Bitmap::AcquireWriteAccess(); }
- void ReleaseAccess( BitmapReadAccess* pAccess );
+ using Bitmap::ReleaseAccess;
typedef vcl::ScopedBitmapAccess<BitmapReadAccess, AlphaMask, &AlphaMask::AcquireAlphaReadAccess> ScopedReadAccess;