summaryrefslogtreecommitdiffstats
path: root/sc/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-09-02 03:39:36 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-09-02 04:44:13 +0200
commitcb14008337e7b7ebbc0b5724f98ac9633e1b9331 (patch)
tree2776246950b5ad1a1cdb11d6bf7733cc2c4fc2ff /sc/inc
parentset parent for export dialog same as save dialog (diff)
downloadcore-cb14008337e7b7ebbc0b5724f98ac9633e1b9331.tar.gz
core-cb14008337e7b7ebbc0b5724f98ac9633e1b9331.zip
make sure parent element is staying around
If we use a reference to the object we need to ensure that it not suddenly disappears on us. Change-Id: I7917fc696b0cc48dd26fa332c892f09727e40054 Reviewed-on: https://gerrit.libreoffice.org/41820 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/datauno.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/inc/datauno.hxx b/sc/inc/datauno.hxx
index 34b7da848779..26afe6030065 100644
--- a/sc/inc/datauno.hxx
+++ b/sc/inc/datauno.hxx
@@ -209,7 +209,7 @@ class ScSubTotalFieldObj : public cppu::WeakImplHelper<
css::lang::XServiceInfo >
{
private:
- ScSubTotalDescriptorBase& rParent;
+ rtl::Reference<ScSubTotalDescriptorBase> xParent;
sal_uInt16 nPos;
public: