[Libreoffice-commits] core.git: vcl/qt5

Stephan Bergmann sbergman at redhat.com
Mon Apr 30 07:15:54 UTC 2018


 vcl/qt5/Qt5Instance.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 25762ee54f0def7b5aa14d2bb4f2f3dc85d057af
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Apr 30 09:14:59 2018 +0200

    Fix 182197448fc206649324fa15cf5aeaf7d01723ed
    
    "loplugin:useuniqueptr in VirtualDevice"
    
    Change-Id: I71db0faa406c0b58bbdaf4eaf2180f97fc69e1cd

diff --git a/vcl/qt5/Qt5Instance.cxx b/vcl/qt5/Qt5Instance.cxx
index f0474917a149..2a00cabe2d2c 100644
--- a/vcl/qt5/Qt5Instance.cxx
+++ b/vcl/qt5/Qt5Instance.cxx
@@ -99,7 +99,7 @@ Qt5Instance::CreateVirtualDevice(SalGraphics* pGraphics, long& nDX, long& nDY, D
     }
     else
     {
-        std::unique_ptr<SalVirtualDevice>(new Qt5VirtualDevice(eFormat, 1));
+        std::unique_ptr<SalVirtualDevice> pVD(new Qt5VirtualDevice(eFormat, 1));
         pVD->SetSize(nDX, nDY);
         return pVD;
     }


More information about the Libreoffice-commits mailing list