summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfun2.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-16 11:55:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-18 19:57:28 +0200
commit08e85556d2ae66bdf43d908e1b9dfca4c78295e2 (patch)
treeb49c1f8caf525a05eeb29c8a5373df88bd058770 /sc/source/ui/view/viewfun2.cxx
parent0abf2ac27859f1e91a3d183b81948b1fe8f5aca3 (diff)
ScCellIterator never passed a null ScDocument*
Change-Id: I5d8ea1533fe861cf969c2999343da217c82d54e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103006 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/view/viewfun2.cxx')
-rw-r--r--sc/source/ui/view/viewfun2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 2bdd53892bf3..c0f28d7017a8 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -1985,7 +1985,7 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
{
sc::SearchResultsDlg* pDlg = static_cast<sc::SearchResultsDlg*>(pWnd->GetController().get());
if (pDlg)
- pDlg->FillResults(&rDoc, aMatchedRanges,
+ pDlg->FillResults(rDoc, aMatchedRanges,
pSearchItem->GetCellType() == SvxSearchCellType::NOTE);
}
}