summaryrefslogtreecommitdiffstats
path: root/sc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/document.hxx3
-rw-r--r--sc/inc/funcuno.hxx4
2 files changed, 5 insertions, 2 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 35ea5104b090..a2a073a68ab2 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -36,6 +36,7 @@
#include "typedstrdata.hxx"
#include "calcmacros.hxx"
#include "calcconfig.hxx"
+#include <o3tl/deleter.hxx>
#include <svl/hint.hxx>
#include <tools/gen.hxx>
#include <svl/zforlist.hxx>
@@ -2386,6 +2387,8 @@ private:
void SetNeedsListeningGroups( const std::vector<ScAddress>& rPosArray );
};
+typedef std::unique_ptr<ScDocument, o3tl::default_delete<ScDocument>> ScDocumentUniquePtr;
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/inc/funcuno.hxx b/sc/inc/funcuno.hxx
index cf0dc8065a1b..174975c8a1f9 100644
--- a/sc/inc/funcuno.hxx
+++ b/sc/inc/funcuno.hxx
@@ -26,8 +26,8 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <cppuhelper/implbase.hxx>
#include <svl/lstner.hxx>
+#include "document.hxx"
-class ScDocument;
class ScDocOptions;
css::uno::Reference< css::uno::XInterface > SAL_CALL
@@ -37,7 +37,7 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL
class ScTempDocCache
{
private:
- std::unique_ptr<ScDocument> xDoc;
+ ScDocumentUniquePtr xDoc;
bool bInUse;
public: