BitmapScopedWriteAccess

Thorsten Behrens thb at libreoffice.org
Tue Jan 14 13:48:37 UTC 2025


Hi Chris,

Chris Sherlock wrote:
> Out of interest, what is “scoped” about BitmapScopedWriteAccess? 
> 
The original idea was providing RAII semantics to the bitmap access
objects (c.f. commit a622d4e9d717e64c305399c833d7d15af2fc109e how that
looked like during OOo times). See the 'mrBitmap.ReleaseAccess(
mpAccess )' there, for what previously had to be done manually.

Over the years, the plain Bitmap*Access objects grew proper value
semantics, so I guess the scoped-access gold-plating is by now
pointless. That most recent rework FWICT happend with

 https://gerrit.libreoffice.org/c/core/+/160293

HTH,

-- Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 427 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20250114/768a9cb9/attachment.sig>


More information about the LibreOffice mailing list