summaryrefslogtreecommitdiff
path: root/sc/inc/table.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-22 20:44:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-23 09:41:31 +0200
commit02ab482b8fb8faa04e62f97d952f7e98cf0490fb (patch)
treeef8535acbd906fe8e0c7279983d0604e3722a04c /sc/inc/table.hxx
parent8db6083692e92389d50565bbf8643c60572e4aca (diff)
ScRefAddress::GetRefString never passed a null ScDocument*
so the nullptr check can be removed and some more along that vein Change-Id: Ic0c1f98564b6bd457edd0d3ba2a4382b7945e806 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103217 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/inc/table.hxx')
-rw-r--r--sc/inc/table.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index 3e15695567cd..15a74d3fbaf8 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -1272,7 +1272,7 @@ private:
static constexpr SCROW ROW_NOT_FOUND = -1;
public:
- explicit VisibleDataCellIterator(const ScDocument* pDoc, ScFlatBoolRowSegments& rRowSegs, ScColumn& rColumn);
+ explicit VisibleDataCellIterator(const ScDocument& rDoc, ScFlatBoolRowSegments& rRowSegs, ScColumn& rColumn);
~VisibleDataCellIterator();
/**
@@ -1300,7 +1300,7 @@ private:
SCROW getRow() const { return mnCurRow;}
private:
- const ScDocument* mpDocument;
+ const ScDocument& mrDocument;
ScFlatBoolRowSegments& mrRowSegs;
ScColumn& mrColumn;
ScRefCellValue maCell;