summaryrefslogtreecommitdiff
path: root/sc/inc/textuno.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-12-08 12:18:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-12-08 12:18:32 +0100
commit01b21b027114baebac99da23f95463373a6addf2 (patch)
tree2e162ae2e2e6a5b0a5f7e4a65b528e283167e041 /sc/inc/textuno.hxx
parent65cc20c6911bdbe0995691d6c3d0f5c772155d13 (diff)
Replace manual acquire/release calls with rtl::Reference
...which also removes the need for a user-declared ScHeaderFooterTextCursor copy ctor Change-Id: Ida4ad4b3aef0865b40535f1fbf220ce5c44f2d47
Diffstat (limited to 'sc/inc/textuno.hxx')
-rw-r--r--sc/inc/textuno.hxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx
index eafda68ba6be..12c7136fce8b 100644
--- a/sc/inc/textuno.hxx
+++ b/sc/inc/textuno.hxx
@@ -263,11 +263,10 @@ public:
class ScHeaderFooterTextCursor : public SvxUnoTextCursor
{
private:
- ScHeaderFooterTextObj& rTextObj;
+ rtl::Reference<ScHeaderFooterTextObj> rTextObj;
public:
- ScHeaderFooterTextCursor(const ScHeaderFooterTextCursor& rOther);
- ScHeaderFooterTextCursor(ScHeaderFooterTextObj& rText);
+ ScHeaderFooterTextCursor(rtl::Reference<ScHeaderFooterTextObj> const & rText);
virtual ~ScHeaderFooterTextCursor() throw() override;
// SvxUnoTextCursor methods reimplemented here: