summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-09-05 20:26:04 +0200
committerJulien Nabet <serval2412@yahoo.fr>2015-09-06 14:28:02 +0000
commit6fb54d7bd3eb8efb2223c6a7250852fb6ad22b89 (patch)
treede4cb2ad132d61552784a50d57596f7315e1a28d /sc
parentfdbad6761f5634982bb7b837bb145b3bd580832b (diff)
loplugin:returnbyref (Fix TB Linux F19-x86-64)
Change-Id: Ibf00b617a10e2bbe1c1e722c235bb2b75dee79a6 Reviewed-on: https://gerrit.libreoffice.org/18354 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/dbdata.hxx2
-rw-r--r--sc/source/core/tool/dbdata.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx
index 36e0aa0c8e84..9785873db257 100644
--- a/sc/inc/dbdata.hxx
+++ b/sc/inc/dbdata.hxx
@@ -54,7 +54,7 @@ class ScDBDataContainerBase
public:
ScDBDataContainerBase( ScDocument& rDoc ) : mrDoc(rDoc) {}
virtual ~ScDBDataContainerBase() {}
- ScDocument* GetDocument() const;
+ ScDocument& GetDocument() const;
ScRangeList& GetDirtyTableColumnNames();
protected:
diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx
index d9bfcd26831e..00b4db9a6516 100644
--- a/sc/source/core/tool/dbdata.cxx
+++ b/sc/source/core/tool/dbdata.cxx
@@ -654,9 +654,9 @@ void ScDBData::StartTableColumnNamesListener()
{
if (mpContainer && bHasHeader)
{
- ScDocument* pDoc = mpContainer->GetDocument();
- if (!pDoc->IsClipOrUndo())
- pDoc->StartListeningArea( GetHeaderArea(), false, this);
+ ScDocument& pDoc = mpContainer->GetDocument();
+ if (!pDoc.IsClipOrUndo())
+ pDoc.StartListeningArea( GetHeaderArea(), false, this);
}
}
@@ -1017,9 +1017,9 @@ public:
}
-ScDocument* ScDBDataContainerBase::GetDocument() const
+ScDocument& ScDBDataContainerBase::GetDocument() const
{
- return &mrDoc;
+ return mrDoc;
}
ScRangeList& ScDBDataContainerBase::GetDirtyTableColumnNames()