summaryrefslogtreecommitdiff
path: root/sc/inc/textuno.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-18 12:40:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-18 14:40:57 +0200
commit159b26e419f1642abe84d7bdc6b7de52fb1b2fb6 (patch)
tree74d5df10af806fc276204160a44093b376ba09eb /sc/inc/textuno.hxx
parentc89a4e31dffd803f06a6bf77710353a26eca26d3 (diff)
use rtl::Reference in sc/../uno/*
instead of manual reference counting Change-Id: I60798316f2b63800a9f539cb719305c00d91ecc5 Reviewed-on: https://gerrit.libreoffice.org/43491 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/textuno.hxx')
-rw-r--r--sc/inc/textuno.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx
index 0a33daa6a3f0..0d72c9b95008 100644
--- a/sc/inc/textuno.hxx
+++ b/sc/inc/textuno.hxx
@@ -217,14 +217,14 @@ public:
class ScCellTextCursor : public SvxUnoTextCursor
{
- ScCellObj& rTextObj;
+ rtl::Reference<ScCellObj> mxTextObj;
public:
ScCellTextCursor(const ScCellTextCursor& rOther);
ScCellTextCursor(ScCellObj& rText);
- virtual ~ScCellTextCursor() throw() override;
+ virtual ~ScCellTextCursor() throw() override;
- ScCellObj& GetCellObj() const { return rTextObj; }
+ ScCellObj& GetCellObj() const { return *mxTextObj; }
// SvxUnoTextCursor methods reimplemented here:
virtual css::uno::Reference< css::text::XText > SAL_CALL
@@ -248,7 +248,7 @@ private:
public:
ScHeaderFooterTextCursor(rtl::Reference<ScHeaderFooterTextObj> const & rText);
- virtual ~ScHeaderFooterTextCursor() throw() override;
+ virtual ~ScHeaderFooterTextCursor() throw() override;
// SvxUnoTextCursor methods reimplemented here:
virtual css::uno::Reference< css::text::XText > SAL_CALL
@@ -314,7 +314,7 @@ class ScEditEngineTextObj : public ScSimpleEditSourceHelper, public SvxUnoText
{
public:
ScEditEngineTextObj();
- virtual ~ScEditEngineTextObj() throw() override;
+ virtual ~ScEditEngineTextObj() throw() override;
void SetText( const EditTextObject& rTextObject );
EditTextObject* CreateTextObject();
@@ -359,8 +359,8 @@ public:
class ScCellTextObj : public ScCellTextData, public SvxUnoText
{
public:
- ScCellTextObj(ScDocShell* pDocSh, const ScAddress& rP);
- virtual ~ScCellTextObj() throw() override;
+ ScCellTextObj(ScDocShell* pDocSh, const ScAddress& rP);
+ virtual ~ScCellTextObj() throw() override;
};
#endif