include/vcl/lazydelete.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c069dc225897b774ce3e09fbcd45a7d35297a8a9 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Wed Jul 13 20:30:55 2022 +0200 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Thu Jul 14 09:23:17 2022 +0200 fix vcl::DeleteOnDeinit example in its docs The ctor does not take 'new T', now it takes arguments that are passed to T ctor. Change-Id: I04b330d98dd84c86e00ec937a00d1097f21c55c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137039 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/include/vcl/lazydelete.hxx b/include/vcl/lazydelete.hxx index 290a2ad2acd2..e700582f1297 100644 --- a/include/vcl/lazydelete.hxx +++ b/include/vcl/lazydelete.hxx @@ -47,7 +47,7 @@ namespace vcl SomeWindow::Paint() { - static vcl::DeleteOnDeinit< BitmapEx > aBmp( new BitmapEx( ... ) ); + static vcl::DeleteOnDeinit< BitmapEx > aBmp( ... ); if( aBmp.get() ) // check whether DeInitVCL has been called already DrawBitmapEx( Point( 10, 10 ), *aBmp );