summaryrefslogtreecommitdiff
path: root/fpicker/source/office/OfficeFolderPicker.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-23 11:19:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-23 13:23:56 +0200
commitdd23ec329faddd74691595405e977baa8ac7f0a3 (patch)
tree215599a7db4f2acaaac9c8839370796f2107340c /fpicker/source/office/OfficeFolderPicker.cxx
parent524c4c61ebd985ab6721d8c7e5f8f85f273883cb (diff)
loplugin:makeshared in fpicker
Change-Id: I121b6f6d2e7d3fa17caa4e3b3ac38eea0388507b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92747 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'fpicker/source/office/OfficeFolderPicker.cxx')
-rw-r--r--fpicker/source/office/OfficeFolderPicker.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpicker/source/office/OfficeFolderPicker.cxx b/fpicker/source/office/OfficeFolderPicker.cxx
index db06eb421c76..424bf708cdb0 100644
--- a/fpicker/source/office/OfficeFolderPicker.cxx
+++ b/fpicker/source/office/OfficeFolderPicker.cxx
@@ -68,9 +68,9 @@ void SAL_CALL SvtFolderPicker::startExecuteModal( const Reference< css::ui::dial
});
}
-std::unique_ptr<SvtFileDialog_Base> SvtFolderPicker::implCreateDialog( weld::Window* pParent )
+std::shared_ptr<SvtFileDialog_Base> SvtFolderPicker::implCreateDialog( weld::Window* pParent )
{
- return std::make_unique<SvtFileDialog>(pParent, PickerFlags::PathDialog);
+ return std::make_shared<SvtFileDialog>(pParent, PickerFlags::PathDialog);
}
sal_Int16 SvtFolderPicker::implExecutePicker( )