VclPtr tweaks post 5.4.2 ...
michael.meeks at collabora.com
Fri May 26 09:23:05 UTC 2017
Seems like people think this is a good idea; so here is what is planned
- I'd love some help with it when we're post 5.4.2 - (it's a big change
so avoiding hurting back-porting is important - with ~3k sites all over
Three reasonably simple changes:
replace: VclPtrInstance<Foo> pFoo( pParent );
with: auto pFoo = VclPtr<Foo>::Create( pParent );
replace: ScopedVclPtrInstance<Foo> pFoo( pParent );
with: auto pFoo = ScopedVclPtr<Foo>::Create( pParent );
Unless we come up with a better name for the last sed; one suggestion
was 'guard' but guards are released - not disposed; unsure if there is a
similar UNO helper concept - Stephan ?
michael.meeks at collabora.com <><, Pseudo Engineer, itinerant idiot
More information about the LibreOffice