diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-30 10:48:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-01 06:45:13 +0100 |
commit | 478f3f019f780ae6f2464ea7ccd7a52a0ea9361c (patch) | |
tree | e81f14953311213ec3ada5e2c566b436cd918528 /vcl/headless | |
parent | 9375e542f23fa35e02185996b8113dcc9ab29bcf (diff) |
loplugin:useuniqueptr in SalFrame::PostEvent
Change-Id: Ib066b1d6df90f330f2f93ec639bd7bc59a08c024
Reviewed-on: https://gerrit.libreoffice.org/62507
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/svpframe.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/headless/svpframe.cxx b/vcl/headless/svpframe.cxx index 9bf3e9cb84e6..e636b46514ac 100644 --- a/vcl/headless/svpframe.cxx +++ b/vcl/headless/svpframe.cxx @@ -160,9 +160,9 @@ void SvpSalFrame::ReleaseGraphics( SalGraphics* pGraphics ) delete pSvpGraphics; } -bool SvpSalFrame::PostEvent(ImplSVEvent* pData) +bool SvpSalFrame::PostEvent(std::unique_ptr<ImplSVEvent> pData) { - m_pInstance->PostEvent( this, pData, SalEvent::UserEvent ); + m_pInstance->PostEvent( this, pData.release(), SalEvent::UserEvent ); return true; } |