diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-14 16:20:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-16 12:09:05 +0200 |
commit | 13c78ceb25151b971e28f64d2ab931016eea7408 (patch) | |
tree | 1269857b73a80fb2336152d9f989feff52a9d7e3 /include/sfx2 | |
parent | 899fbd617b32771bc8c14effc52a7153465adf5d (diff) |
pass SfxMedium around by std::unique_ptr
Change-Id: Ibde7b68d9248f80d5304991390a80742265f37b3
Reviewed-on: https://gerrit.libreoffice.org/59031
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/docinsert.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sfx2/docinsert.hxx b/include/sfx2/docinsert.hxx index bacf00ec47de..6befefcb31a3 100644 --- a/include/sfx2/docinsert.hxx +++ b/include/sfx2/docinsert.hxx @@ -22,6 +22,7 @@ #include <rtl/ustring.hxx> #include <sfx2/dllapi.h> +#include <sfx2/docfile.hxx> #include <vcl/errcode.hxx> #include <tools/link.hxx> #include <memory> @@ -29,7 +30,6 @@ namespace sfx2 { class FileDialogHelper; } namespace weld { class Window; } -class SfxMedium; class SfxItemSet; enum class FileDialogFlags; @@ -66,7 +66,7 @@ public: ~DocumentInserter(); void StartExecuteModal( const Link<sfx2::FileDialogHelper*,void>& _rDialogClosedLink ); - SfxMedium* CreateMedium(char const* pFallbackHack = nullptr); + std::unique_ptr<SfxMedium> CreateMedium(char const* pFallbackHack = nullptr); SfxMediumList* CreateMediumList(); }; |