diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-11-14 12:20:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-11-14 16:44:57 +0100 |
commit | 914f9ee7bf7254f2f469bde4cf4c151a4ab25110 (patch) | |
tree | 64c11be2675279addc202bc7abda582a833587c0 /sc/source/ui/dbgui/sfiltdlg.cxx | |
parent | 285538be45d03e524a404d072a9b0178c74baeaf (diff) |
SetReference ScDocument arg is never null
Change-Id: Ifdfe305e5319926d804e14962e786389b79fe476
Reviewed-on: https://gerrit.libreoffice.org/82682
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/dbgui/sfiltdlg.cxx')
-rw-r--r-- | sc/source/ui/dbgui/sfiltdlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/sfiltdlg.cxx b/sc/source/ui/dbgui/sfiltdlg.cxx index 53045ebf0725..3b5d8ff55b81 100644 --- a/sc/source/ui/dbgui/sfiltdlg.cxx +++ b/sc/source/ui/dbgui/sfiltdlg.cxx @@ -196,7 +196,7 @@ void ScSpecialFilterDlg::Close() // Transfer of a table area selected with the mouse, which is then displayed // as a new selection in the reference edit. -void ScSpecialFilterDlg::SetReference( const ScRange& rRef, ScDocument* pDocP ) +void ScSpecialFilterDlg::SetReference( const ScRange& rRef, ScDocument& rDocP ) { if ( bRefInputMode && m_pRefInputEdit ) // only possible if in the reference edit mode { @@ -204,12 +204,12 @@ void ScSpecialFilterDlg::SetReference( const ScRange& rRef, ScDocument* pDocP ) RefInputStart( m_pRefInputEdit ); OUString aRefStr; - const formula::FormulaGrammar::AddressConvention eConv = pDocP->GetAddressConvention(); + const formula::FormulaGrammar::AddressConvention eConv = rDocP.GetAddressConvention(); if (m_pRefInputEdit == m_xEdCopyArea.get()) - aRefStr = rRef.aStart.Format(ScRefFlags::ADDR_ABS_3D, pDocP, eConv); + aRefStr = rRef.aStart.Format(ScRefFlags::ADDR_ABS_3D, &rDocP, eConv); else if (m_pRefInputEdit == m_xEdFilterArea.get()) - aRefStr = rRef.Format(ScRefFlags::RANGE_ABS_3D, pDocP, eConv); + aRefStr = rRef.Format(ScRefFlags::RANGE_ABS_3D, &rDocP, eConv); m_pRefInputEdit->SetRefString( aRefStr ); } |