Re: BitmapScopedWriteAccess

2025-01-14 Thread Noel Grandin
On Tue, 14 Jan 2025 at 22:32, Chris Sherlock wrote: > Thanks, that is helpful but I still don’t understand why, when it is a > scoped instance with RAII semantics, we need to run reset manually after > we’ve finished using it. > So in the case of commit 44dfcebde64b9edfa9f50eace34e5e1497ab93

Re: BitmapScopedWriteAccess

2025-01-14 Thread Thorsten Behrens
Hi Chris, Chris Sherlock wrote: > Why not just use a BitmapWriteAccess? It does exactly the same thing. > Yes, that's what I was trying to say (not exactly the same, but close enough, yeah). ;) Cheers, -- Thorsten signature.asc Description: PGP signature

Re: BitmapScopedWriteAccess

2025-01-14 Thread Chris Sherlock
Sent from my iPhone > On 15 Jan 2025, at 12:49 am, Thorsten Behrens wrote: > > Hi Chris, > > Chris Sherlock wrote: >> Out of interest, what is “scoped” about BitmapScopedWriteAccess? >> > The original idea was providing RAII semantics to the bitmap

Re: BitmapScopedWriteAccess

2025-01-14 Thread Thorsten Behrens
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). S

BitmapScopedWriteAccess

2025-01-14 Thread Chris Sherlock
Out of interest, what is “scoped” about BitmapScopedWriteAccess? What is the purpose of this? Chris