summaryrefslogtreecommitdiff
path: root/sw/inc/docfac.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-19 11:29:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-19 13:06:47 +0200
commita754294ac7a902fe96fbbd6b8b6824a360d6b248 (patch)
tree23ead80aa960366395713f2e4d032d9ca868d9a0 /sw/inc/docfac.hxx
parent071c74dfe24940b4222ed9576e2357d012b86617 (diff)
use rtl::Reference in SwDocFac
instead of manual acquire/release Change-Id: I40b4f6d2893fe0d4113032f638bce1793fc47cd7
Diffstat (limited to 'sw/inc/docfac.hxx')
-rw-r--r--sw/inc/docfac.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/docfac.hxx b/sw/inc/docfac.hxx
index cf073a9398ba..8cf4a7320a21 100644
--- a/sw/inc/docfac.hxx
+++ b/sw/inc/docfac.hxx
@@ -20,13 +20,14 @@
#define INCLUDED_SW_INC_DOCFAC_HXX
#include <tools/solar.h>
+#include <rtl/ref.hxx>
class SwDoc;
class SW_DLLPUBLIC SwDocFac
{
protected:
- SwDoc* pDoc;
+ rtl::Reference<SwDoc> mxDoc;
public:
SwDocFac( SwDoc *pDoc = nullptr );