diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-29 09:15:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-29 09:16:02 +0200 |
commit | 9e00f6d70cda2070e6dafbad8eded7d6e7f14ef9 (patch) | |
tree | 4c02fc45e8594c293c80aaf3231824f60f24041c | |
parent | 5c401d8a93cdf7dfa450604856680a2154366fcf (diff) |
loplugin:vclwidgets
Change-Id: Icce2f463d9263de4c0e40b38600677dbe74d83b3
-rw-r--r-- | cui/source/dialogs/screenshotannotationdlg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<VirtualDevice>::Create(*Application::GetDefaultDevice(), DeviceFormat::DEFAULT, DeviceFormat::BITMASK); mpVirtualBufferDevice->SetOutputSizePixel(maParentDialogSize); mpVirtualBufferDevice->SetFillColor(COL_TRANSPARENT); |