summaryrefslogtreecommitdiff
path: root/sc/inc/datauno.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-23 13:53:42 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-24 06:54:06 +0000
commit111de438ea3e512a541281dc0716cc728ea8d152 (patch)
tree2c9ca866e79ed0cfc9299e553a87239345c515a6 /sc/inc/datauno.hxx
parentd3f21849ec8580fdb59a1f0b35453657f4050e0f (diff)
remove some manual ref-counting
triggered when I noticed a class doing acquire() in the constructor and then release() in the destructor. found mostly by git grep -n -B5 -e '->release()' Change-Id: Ie1abeaed75c1f861df185e3bde680272dbadc97f Reviewed-on: https://gerrit.libreoffice.org/25363 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/inc/datauno.hxx')
-rw-r--r--sc/inc/datauno.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/datauno.hxx b/sc/inc/datauno.hxx
index cbaebc7514a9..cb33562bf0b2 100644
--- a/sc/inc/datauno.hxx
+++ b/sc/inc/datauno.hxx
@@ -222,7 +222,7 @@ public:
class ScRangeSubTotalDescriptor : public ScSubTotalDescriptorBase
{
private:
- ScDatabaseRangeObj* pParent;
+ css::uno::Reference<ScDatabaseRangeObj> mxParent;
public:
ScRangeSubTotalDescriptor(ScDatabaseRangeObj* pPar);
@@ -435,7 +435,7 @@ public:
class ScRangeFilterDescriptor : public ScFilterDescriptorBase
{
private:
- ScDatabaseRangeObj* pParent;
+ css::uno::Reference<ScDatabaseRangeObj> mxParent;
public:
ScRangeFilterDescriptor(ScDocShell* pDocSh, ScDatabaseRangeObj* pPar);
@@ -451,7 +451,7 @@ public:
class ScDataPilotFilterDescriptor : public ScFilterDescriptorBase
{
private:
- ScDataPilotDescriptorBase* pParent;
+ css::uno::Reference<ScDataPilotDescriptorBase> mxParent;
public:
ScDataPilotFilterDescriptor(ScDocShell* pDocSh, ScDataPilotDescriptorBase* pPar);