summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-29 09:15:44 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-29 09:16:02 +0200
commit9e00f6d70cda2070e6dafbad8eded7d6e7f14ef9 (patch)
tree4c02fc45e8594c293c80aaf3231824f60f24041c /cui
parent5c401d8a93cdf7dfa450604856680a2154366fcf (diff)
loplugin:vclwidgets
Change-Id: Icce2f463d9263de4c0e40b38600677dbe74d83b3
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/screenshotannotationdlg.cxx2
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);