diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-23 15:23:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-25 08:25:38 +0200 |
commit | dbb1dbe7a741415acf1132a29aba7cff5dfe638c (patch) | |
tree | a0b3377980d4d987049fd73422431fed4539cd1d /vcl/unx/generic/app/saldata.cxx | |
parent | 182197448fc206649324fa15cf5aeaf7d01723ed (diff) |
loplugin:useuniqueptr in X11SalData
Change-Id: I61a6d5cc5690a2899986ec831655e480a1f414d1
Reviewed-on: https://gerrit.libreoffice.org/53360
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic/app/saldata.cxx')
-rw-r--r-- | vcl/unx/generic/app/saldata.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/unx/generic/app/saldata.cxx b/vcl/unx/generic/app/saldata.cxx index 3a87ca9d0e8b..9fb0aa5c799a 100644 --- a/vcl/unx/generic/app/saldata.cxx +++ b/vcl/unx/generic/app/saldata.cxx @@ -270,13 +270,12 @@ void X11SalData::DeleteDisplay() { delete GetDisplay(); SetDisplay( nullptr ); - delete pXLib_; - pXLib_ = nullptr; + pXLib_.reset(); } void X11SalData::Init() { - pXLib_ = new SalXLib(); + pXLib_.reset(new SalXLib()); pXLib_->Init(); } |