summaryrefslogtreecommitdiff
path: root/sw/source/uibase/inc/unoatxt.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-25 15:54:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-26 08:13:46 +0200
commitf025255bf66394ec168ae4cfc4d048c202800d16 (patch)
treedbd349df86257dbdd1841da909c982454750cd24 /sw/source/uibase/inc/unoatxt.hxx
parent12ff6d6c35f84f4e57e59274049b7ece4e3d0a37 (diff)
use rtl::Reference in SwXAutoTextEntry
instead of storing both a raw pointer and an uno::Reference Change-Id: I52c8827446d999d0a34b91ab17c056d4237d71a7
Diffstat (limited to 'sw/source/uibase/inc/unoatxt.hxx')
-rw-r--r--sw/source/uibase/inc/unoatxt.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/uibase/inc/unoatxt.hxx b/sw/source/uibase/inc/unoatxt.hxx
index feaf0ce69e04..00d6bb0de895 100644
--- a/sw/source/uibase/inc/unoatxt.hxx
+++ b/sw/source/uibase/inc/unoatxt.hxx
@@ -34,7 +34,9 @@
#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/implbase.hxx>
+#include <rtl/ref.hxx>
#include <svtools/unoevent.hxx>
+
class SwTextBlocks;
class SwGlossaries;
class SwDoc;
@@ -172,12 +174,12 @@ class SwXAutoTextEntry
OUString sGroupName;
OUString sEntryName;
SwDocShellRef xDocSh;
- SwXBodyText* pBodyText;
- css::uno::Reference < css::lang::XServiceInfo> xBodyText;
+ rtl::Reference<SwXBodyText>
+ mxBodyText;
void EnsureBodyText ()
{
- if ( !pBodyText )
+ if ( !mxBodyText.is() )
GetBodyText();
}
void GetBodyText ();