diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-15 09:36:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-15 21:36:50 +0200 |
commit | 24ceb100883e5413b1e911bf1bc29df008972a5a (patch) | |
tree | 0e4f93ba2036e459ae70bd430a9902d98687aa89 /sc/source/ui | |
parent | bf3d1b8e8f89bfdb409c70cfea126f36474d4772 (diff) |
CreateNameSortedArray never passed a null ScDocument*
Change-Id: Ib5501d3b3eef77224ffb091df0e30ecab9859c8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102777
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/miscdlgs/crnrdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/miscdlgs/crnrdlg.cxx b/sc/source/ui/miscdlgs/crnrdlg.cxx index 31dd29e9b879..a82d8d26762f 100644 --- a/sc/source/ui/miscdlgs/crnrdlg.cxx +++ b/sc/source/ui/miscdlgs/crnrdlg.cxx @@ -369,7 +369,7 @@ void ScColRowNameRangesDlg::UpdateNames() if ( xColNameRanges->size() > 0 ) { std::vector<const ScRangePair*> aSortArray(xColNameRanges->CreateNameSortedArray( - &rDoc )); + rDoc )); nCount = aSortArray.size(); for ( j=0; j < nCount; j++ ) { @@ -408,7 +408,7 @@ void ScColRowNameRangesDlg::UpdateNames() if ( xRowNameRanges->size() > 0 ) { std::vector<const ScRangePair*> aSortArray(xRowNameRanges->CreateNameSortedArray( - &rDoc )); + rDoc )); nCount = aSortArray.size(); for ( j=0; j < nCount; j++ ) { |