diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-08 13:05:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-09 09:52:43 +0200 |
commit | 382aab381b3fbb97e64e5010fbce7f3793ff703a (patch) | |
tree | 2e47f99e37535caf59f3541e6ad0dabaacfe90e2 /vcl/unx/generic/app/i18n_status.cxx | |
parent | 508175a8af0da217a4670558a2ef6b52a3f71ccb (diff) |
hold and return SalI18NImeStatus using std::unique_ptr
Change-Id: I3657980045290a4d65b2944afac04d610c0a94fd
Reviewed-on: https://gerrit.libreoffice.org/55496
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic/app/i18n_status.cxx')
-rw-r--r-- | vcl/unx/generic/app/i18n_status.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/generic/app/i18n_status.cxx b/vcl/unx/generic/app/i18n_status.cxx index c80846e621ca..6a27ed8ac6c7 100644 --- a/vcl/unx/generic/app/i18n_status.cxx +++ b/vcl/unx/generic/app/i18n_status.cxx @@ -431,9 +431,9 @@ void X11ImeStatus::toggle() vcl::I18NStatus::get().toggleStatusWindow(); } -SalI18NImeStatus* X11SalInstance::CreateI18NImeStatus() +std::unique_ptr<SalI18NImeStatus> X11SalInstance::CreateI18NImeStatus() { - return new X11ImeStatus(); + return std::unique_ptr<SalI18NImeStatus>(new X11ImeStatus()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |