diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-04-30 09:14:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-04-30 09:14:59 +0200 |
commit | 25762ee54f0def7b5aa14d2bb4f2f3dc85d057af (patch) | |
tree | 923742956cd04e56f6589960d08b59bd2f83832b | |
parent | 39c7e09ca5cb9b6dab143483bd6cb72fcad8307e (diff) |
Fix 182197448fc206649324fa15cf5aeaf7d01723ed
"loplugin:useuniqueptr in VirtualDevice"
Change-Id: I71db0faa406c0b58bbdaf4eaf2180f97fc69e1cd
-rw-r--r-- | vcl/qt5/Qt5Instance.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |