summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-05-22 13:44:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-05-22 15:34:46 +0200
commitc5b3f8853751d67c364a91fdeaed3f36cea3179c (patch)
tree0ab4deb9a76ad11e4c573b6493286e8699a53c17 /sc
parent25747014cd54d66f55029f67886418b859f9b980 (diff)
cid#1504537 silence Dereference after null check
no change in practice because either pDoc or pDocSh and not both are set Change-Id: I1da19bef2a2a5cec700cbc6126f873079efcba88 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134733 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/viewdata.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 31f3e5fdeaa9..ac31e522ac79 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -782,7 +782,7 @@ ScViewData::ScViewData(ScDocument* pDoc, ScDocShell* pDocSh, ScTabViewShell* pVi
nPPTY(0.0),
maMarkData (pDocSh ? pDocSh->GetDocument().GetSheetLimits() : pDoc->GetSheetLimits()),
pDocShell ( pDocSh ),
- mrDoc (pDoc ? *pDoc : pDocSh->GetDocument()),
+ mrDoc (pDocSh ? pDocSh->GetDocument() : *pDoc),
pView ( pViewSh ),
maOptions (pDocSh ? pDocSh->GetDocument().GetViewOptions() : DefaultOptions()),
pSpellingView ( nullptr ),