diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-03-01 20:36:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-03 11:09:15 +0100 |
commit | 9b56b718f6921b1160733e56f5cfc0d12c4146ab (patch) | |
tree | 782853b0a0ee99da46029be453b4f93669833837 /vcl/qt5 | |
parent | 715fe00a5052b35310b2d1289ab6137d77767ddd (diff) |
loplugin:refcounting in vcl
Change-Id: I92e9db7abdfe5912335fd94e42422e8556d71091
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111769
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5Instance.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/qt5/Qt5Instance.cxx b/vcl/qt5/Qt5Instance.cxx index 97eff04fe77a..5afbd8722418 100644 --- a/vcl/qt5/Qt5Instance.cxx +++ b/vcl/qt5/Qt5Instance.cxx @@ -437,14 +437,14 @@ void Qt5Instance::ProcessEvent(SalUserEvent aEvent) aEvent.m_pFrame->CallCallback(aEvent.m_nEvent, aEvent.m_pData); } -Qt5FilePicker* +rtl::Reference<Qt5FilePicker> Qt5Instance::createPicker(css::uno::Reference<css::uno::XComponentContext> const& context, QFileDialog::FileMode eMode) { if (!IsMainThread()) { SolarMutexGuard g; - Qt5FilePicker* pPicker; + rtl::Reference<Qt5FilePicker> pPicker; RunInMainThread([&, this]() { pPicker = createPicker(context, eMode); }); assert(pPicker); return pPicker; |