summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/editsh.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-14 15:27:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-15 16:45:46 +0200
commitcf301f5e1a8a3f8617c76c627042f20322673bdb (patch)
tree82d0b5ff99241657f8f029196c9bbf04effcca0e /sc/source/ui/view/editsh.cxx
parent587a0c682308bb63462d4d8074d59f6fa8a9a51d (diff)
ScRefFinder ScDocument* argument dereferenced on all paths
Change-Id: I0e78a9b286dbd8e9a4acbd411f556b6eea0ec1ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102742 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/view/editsh.cxx')
-rw-r--r--sc/source/ui/view/editsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 11a100da976c..fff2c90738b1 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -535,7 +535,7 @@ void ScEditShell::Execute( SfxRequest& rReq )
ESelection aSel = pEditView->GetSelection(); // current View
ScDocument* pDoc = pViewData->GetDocument();
- ScRefFinder aFinder(aText, pViewData->GetCurPos(), pDoc, pDoc->GetAddressConvention());
+ ScRefFinder aFinder(aText, pViewData->GetCurPos(), *pDoc, pDoc->GetAddressConvention());
aFinder.ToggleRel( aSel.nStartPos, aSel.nEndPos );
if (aFinder.GetFound())
{