vcl/source/gdi/virdev.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 4189bb223e6a0bb57cd93cb7ffca532d380a2121 Author: Michael Weghorn <[email protected]> AuthorDate: Fri Feb 27 10:39:46 2026 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Sat Feb 28 09:10:31 2026 +0100 vcl: Merge var decl and assignment Change-Id: I617030f6c179c1df706f1c4bea83d8ed22f31a54 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200576 Tested-by: Jenkins Reviewed-by: Michael Weghorn <[email protected]> diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx index 0b68c5a56fad..97dc667431ee 100644 --- a/vcl/source/gdi/virdev.cxx +++ b/vcl/source/gdi/virdev.cxx @@ -300,14 +300,14 @@ bool VirtualDevice::InnerImplSetOutputSizePixel( const Size& rNewSize, bool bEra } else { - std::unique_ptr<SalVirtualDevice> pNewVirDev; // we need a graphics if ( !mpGraphics && !AcquireGraphics() ) return false; assert(mpGraphics); - pNewVirDev = GetSalInstance()->CreateVirtualDevice(*mpGraphics, nNewWidth, nNewHeight, meFormatAndAlpha, bAlphaMaskTransparent); + std::unique_ptr<SalVirtualDevice> pNewVirDev = GetSalInstance()->CreateVirtualDevice( + *mpGraphics, nNewWidth, nNewHeight, meFormatAndAlpha, bAlphaMaskTransparent); if ( pNewVirDev ) { SalGraphics* pGraphics = pNewVirDev->AcquireGraphics();
