summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/app/sm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-08 13:16:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-09 13:11:25 +0200
commit84efebb5304b2ebbc03e7743b131ce4d5ad10c03 (patch)
tree2c85f562f8723f449ff382632a933dcb23a96718 /vcl/unx/generic/app/sm.cxx
parentfa9d10e3350b84c3a249294cad650188dce39538 (diff)
return SalSession with std::unique_ptr
Change-Id: I85527407c0cd2d3b94565fd7e24b0616948c9b0f Reviewed-on: https://gerrit.libreoffice.org/55497 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic/app/sm.cxx')
-rw-r--r--vcl/unx/generic/app/sm.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/generic/app/sm.cxx b/vcl/unx/generic/app/sm.cxx
index b38126ad14ae..feb6bbca4d5e 100644
--- a/vcl/unx/generic/app/sm.cxx
+++ b/vcl/unx/generic/app/sm.cxx
@@ -65,12 +65,12 @@ private:
}
-SalSession* X11SalInstance::CreateSalSession()
+std::unique_ptr<SalSession> X11SalInstance::CreateSalSession()
{
SAL_INFO("vcl.sm", "X11SalInstance::CreateSalSession");
- SalSession * p = new IceSalSession;
- SessionManagerClient::open(p);
+ std::unique_ptr<SalSession> p(new IceSalSession);
+ SessionManagerClient::open(p.get());
return p;
}