From 1c1806724dd9010d365fa64cc741a1e94dc9b065 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 2 Dec 2023 15:28:47 +0200 Subject: 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 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 --- include/vcl/alpha.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 ScopedReadAccess; -- cgit