diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-03 17:11:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-04 20:38:00 +0200 |
commit | 66df5e5bb0fc19c28c99592b562be8778438057c (patch) | |
tree | 9138b4c21d721fed6d6541fb21fcf2cd2aa6cef7 /desktop | |
parent | a7411c2ee537355dc8051b7059e3a4d0bc708c04 (diff) |
Related: tdf#127529 make it harder to misunderstand this VirtualDevice ctor
Change-Id: I250bc68da118a994a2e0ff8ab9eb11112827756d
Reviewed-on: https://gerrit.libreoffice.org/80158
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index b9aca6845c22..e468c3ed23f7 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1773,7 +1773,7 @@ void paintTileToCGContext(ITiledRenderable* pDocument, SystemGraphicsData aData; aData.rCGContext = reinterpret_cast<CGContextRef>(rCGContext); - ScopedVclPtrInstance<VirtualDevice> pDevice(&aData, Size(1, 1), DeviceFormat::DEFAULT); + ScopedVclPtrInstance<VirtualDevice> pDevice(aData, Size(1, 1), DeviceFormat::DEFAULT); pDevice->SetBackground(Wallpaper(COL_TRANSPARENT)); pDevice->SetOutputSizePixel(nCanvasSize); pDocument->paintTile(*pDevice, nCanvasSize.Width(), nCanvasSize.Height(), @@ -4732,7 +4732,7 @@ static void doc_paintWindowDPI(LibreOfficeKitDocument* /*pThis*/, unsigned nLOKW SystemGraphicsData aData; aData.rCGContext = cgc; - ScopedVclPtrInstance<VirtualDevice> pDevice(&aData, Size(1, 1), DeviceFormat::DEFAULT); + ScopedVclPtrInstance<VirtualDevice> pDevice(aData, Size(1, 1), DeviceFormat::DEFAULT); pDevice->SetBackground(Wallpaper(COL_TRANSPARENT)); pDevice->SetOutputSizePixel(Size(nWidth, nHeight)); |