summaryrefslogtreecommitdiff
path: root/fpicker/source
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source')
-rw-r--r--fpicker/source/office/OfficeFilePicker.cxx3
-rw-r--r--fpicker/source/office/OfficeFolderPicker.cxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx
index d849326119f4..2c813d64c013 100644
--- a/fpicker/source/office/OfficeFilePicker.cxx
+++ b/fpicker/source/office/OfficeFilePicker.cxx
@@ -35,6 +35,7 @@
#include <com/sun/star/beans/NamedValue.hpp>
#include <unotools/pathoptions.hxx>
#include <cppuhelper/supportsservice.hxx>
+#include <o3tl/make_shared.hxx>
#include <vcl/svapp.hxx>
using namespace ::com::sun::star::container;
@@ -435,7 +436,7 @@ std::shared_ptr<SvtFileDialog_Base> SvtFilePicker::implCreateDialog( weld::Windo
{
PickerFlags nBits = getPickerFlags();
- auto dialog = std::make_shared<SvtFileDialog>(pParent, nBits);
+ auto dialog = o3tl::make_shared<SvtFileDialog>(pParent, nBits);
// Set StandardDir if present
if ( !m_aStandardDir.isEmpty())
diff --git a/fpicker/source/office/OfficeFolderPicker.cxx b/fpicker/source/office/OfficeFolderPicker.cxx
index 424bf708cdb0..8413020df96f 100644
--- a/fpicker/source/office/OfficeFolderPicker.cxx
+++ b/fpicker/source/office/OfficeFolderPicker.cxx
@@ -24,6 +24,7 @@
#include <vector>
#include <tools/urlobj.hxx>
#include <cppuhelper/supportsservice.hxx>
+#include <o3tl/make_shared.hxx>
#include <unotools/pathoptions.hxx>
using namespace ::com::sun::star::container;
@@ -70,7 +71,7 @@ void SAL_CALL SvtFolderPicker::startExecuteModal( const Reference< css::ui::dial
std::shared_ptr<SvtFileDialog_Base> SvtFolderPicker::implCreateDialog( weld::Window* pParent )
{
- return std::make_shared<SvtFileDialog>(pParent, PickerFlags::PathDialog);
+ return o3tl::make_shared<SvtFileDialog>(pParent, PickerFlags::PathDialog);
}
sal_Int16 SvtFolderPicker::implExecutePicker( )