summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-14 15:17:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-15 16:45:27 +0200
commit587a0c682308bb63462d4d8074d59f6fa8a9a51d (patch)
tree625dc8548db02a04589ee24ec8ca2a0e0d521189 /sc/source/ui/docshell
parent5c7937803fa03df79921667bd2121609c5696b5a (diff)
ScRangeData::MakeValidName never passed a null ScDocument*
Change-Id: I8decd37658133d4bbe44703e430cb74946483ee8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102741 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 2d60e831cef8..ab353c1699f1 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -5208,7 +5208,7 @@ void ScDocFunc::CreateOneName( ScRangeName& rList,
return;
OUString aName = rDoc.GetString(nPosX, nPosY, nTab);
- ScRangeData::MakeValidName(&rDoc, aName);
+ ScRangeData::MakeValidName(rDoc, aName);
if (aName.isEmpty())
return;