summaryrefslogtreecommitdiff
path: root/sc/source/ui/uitest/uiobject.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-15 20:40:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-17 15:34:22 +0200
commit9a31b606d39f90c72dd674b0f4f6a37c44fac5ef (patch)
treea379c0dbec5c137de62ca1376f90f20b9439fd33 /sc/source/ui/uitest/uiobject.cxx
parente738683f98559af330a1cc36d8d0a1be11abb355 (diff)
GetRangeFromString, etc. never passed a null ScDocument*
for the xml case this isn't immediately obvious, but pDoc should only be null between Init and Destroy. Change-Id: I7def8df4a4144964e3ec10964819451eb8316836 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102915 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/uitest/uiobject.cxx')
-rw-r--r--sc/source/ui/uitest/uiobject.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/uitest/uiobject.cxx b/sc/source/ui/uitest/uiobject.cxx
index 21b101b5bf46..f408ce7328bf 100644
--- a/sc/source/ui/uitest/uiobject.cxx
+++ b/sc/source/ui/uitest/uiobject.cxx
@@ -46,7 +46,7 @@ ScRange get_range_from_string(const ScDocument& rDoc, const OUString& rStr)
{
ScRange aRange;
sal_Int32 nOffset = 0;
- ScRangeStringConverter::GetRangeFromString(aRange, rStr, &rDoc, formula::FormulaGrammar::CONV_OOO, nOffset);
+ ScRangeStringConverter::GetRangeFromString(aRange, rStr, rDoc, formula::FormulaGrammar::CONV_OOO, nOffset);
return aRange;
}