From 9e00f6d70cda2070e6dafbad8eded7d6e7f14ef9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 29 Aug 2016 09:15:44 +0200 Subject: loplugin:vclwidgets Change-Id: Icce2f463d9263de4c0e40b38600677dbe74d83b3 --- cui/source/dialogs/screenshotannotationdlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cui/source/dialogs/screenshotannotationdlg.cxx') diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx index ccd003f726f1..fff5ba896c78 100644 --- a/cui/source/dialogs/screenshotannotationdlg.cxx +++ b/cui/source/dialogs/screenshotannotationdlg.cxx @@ -175,7 +175,7 @@ ScreenshotAnnotationDlg_Impl::ScreenshotAnnotationDlg_Impl( maDimmedDialogBitmap.Adjust(-15); // init paint buffering VirtualDevice - mpVirtualBufferDevice = new VirtualDevice(*Application::GetDefaultDevice(), DeviceFormat::DEFAULT, DeviceFormat::BITMASK); + mpVirtualBufferDevice = VclPtr::Create(*Application::GetDefaultDevice(), DeviceFormat::DEFAULT, DeviceFormat::BITMASK); mpVirtualBufferDevice->SetOutputSizePixel(maParentDialogSize); mpVirtualBufferDevice->SetFillColor(COL_TRANSPARENT); -- cgit v1.2.3