summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/viewdata.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-14 16:27:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-15 20:07:14 +0200
commit7f242cef830edac793753f9ac3ce162869cd67c6 (patch)
tree8726902d0aba9ef6652c8063d2416b317a5dc13d /sc/source/ui/inc/viewdata.hxx
parenta014c82522834c972e247a28d8e5f42998ae3c0e (diff)
setDocument and InitData never called with a null ScDocument*
Change-Id: Ia0c6613daabcdcd61bd3efe1fe8a79ccbc7fa19c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102751 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/inc/viewdata.hxx')
-rw-r--r--sc/source/ui/inc/viewdata.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx
index 2c362b58c4ec..d79d2e0b84ae 100644
--- a/sc/source/ui/inc/viewdata.hxx
+++ b/sc/source/ui/inc/viewdata.hxx
@@ -138,7 +138,7 @@ private:
public:
ScPositionHelper(ScDocument *pDoc, bool bColumn);
- void setDocument(ScDocument *pDoc, bool bColumn);
+ void setDocument(ScDocument& rDoc, bool bColumn);
void insert(index_type nIndex, long nPos);
void removeByIndex(index_type nIndex);
@@ -247,7 +247,7 @@ private:
bool mbOldCursorValid; // "virtual" Cursor position when combined
ScViewDataTable(ScDocument *pDoc = nullptr);
- void InitData(ScDocument *pDoc);
+ void InitData(ScDocument& rDoc);
void WriteUserDataSequence(
css::uno::Sequence <css::beans::PropertyValue>& rSettings,
const ScViewData& rViewData, SCTAB nTab ) const;
@@ -349,7 +349,7 @@ public:
ScViewData( ScDocShell* pDocSh, ScTabViewShell* pViewSh );
~ScViewData() COVERITY_NOEXCEPT_FALSE;
- void InitData( ScDocument* pDocument );
+ void InitData(ScDocument& rDocument);
ScDocShell* GetDocShell() const { return pDocShell; }
ScDocFunc& GetDocFunc() const;