summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-07-13 20:30:55 +0200
committerLuboš Luňák <l.lunak@collabora.com>2022-07-14 09:23:17 +0200
commitc069dc225897b774ce3e09fbcd45a7d35297a8a9 (patch)
tree5f89e80ece414951af94ffb006c65e3d79bb720f
parent0df20c7ebd6bf9f53776e3c66e78db65feb86878 (diff)
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.lunak@collabora.com>
-rw-r--r--include/vcl/lazydelete.hxx2
1 files changed, 1 insertions, 1 deletions
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 );