diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-24 09:13:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-24 16:24:51 +0200 |
commit | fe1ea3f546a539787d7f5e9c25fcf47dc0cbe2c0 (patch) | |
tree | 3b52b05a162921d0ea21b0e09e64cd82d07ec03d /sc/source/ui/navipi | |
parent | 85af9e1d7a5820b989b004594e5462093b300021 (diff) |
some places where ScDocument* is never passed a nullptr
Change-Id: Ie06fef80990b539d5b6cc87c80d9bbd3e851766c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103299
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/navipi')
-rw-r--r-- | sc/source/ui/navipi/content.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index 8b7d7d7d442b..3c4b952e81c9 100644 --- a/sc/source/ui/navipi/content.cxx +++ b/sc/source/ui/navipi/content.cxx @@ -1093,13 +1093,13 @@ bool ScContentTree::DrawNamesChanged( ScContentId nType ) return !bEqual; } -static bool lcl_GetRange( const ScDocument* pDoc, ScContentId nType, const OUString& rName, ScRange& rRange ) +static bool lcl_GetRange( const ScDocument& rDoc, ScContentId nType, const OUString& rName, ScRange& rRange ) { bool bFound = false; if ( nType == ScContentId::RANGENAME ) { - ScRangeName* pList = pDoc->GetRangeName(); + ScRangeName* pList = rDoc.GetRangeName(); if (pList) { const ScRangeData* p = pList->findByUpperName(ScGlobal::getCharClassPtr()->uppercase(rName)); @@ -1109,7 +1109,7 @@ static bool lcl_GetRange( const ScDocument* pDoc, ScContentId nType, const OUStr } else if ( nType == ScContentId::DBAREA ) { - ScDBCollection* pList = pDoc->GetDBCollection(); + ScDBCollection* pList = rDoc.GetDBCollection(); if (pList) { const ScDBData* p = pList->getNamedDBs().findByUpperName(ScGlobal::getCharClassPtr()->uppercase(rName)); @@ -1338,7 +1338,7 @@ IMPL_LINK(ScContentTree, DragBeginHdl, bool&, rUnsetDragIcon, bool) if ( nType == ScContentId::RANGENAME || nType == ScContentId::DBAREA ) { ScRange aRange; - if ( lcl_GetRange( &rSrcDoc, nType, aText, aRange ) ) + if ( lcl_GetRange( rSrcDoc, nType, aText, aRange ) ) { bDisallow = lcl_DoDragCells( pSrcShell, aRange, ScDragSrc::Navigator, *m_xTreeView ); } |