summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-10 20:02:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-11 10:16:51 +0100
commitb61385c57efdd8c9e709f5bbcf8c388273c5a714 (patch)
tree2146eb393188e9990ae178de421057500a8ea38e
parent8322580ff751cc3f2a176dfae99ab43289385a01 (diff)
SetTabNoAndCursor never passed a null ScViewData*
Change-Id: I972a7825306f6251f9b864ae451fdb491fcd837a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109065 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/ui/view/cellsh1.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index e7c9887b3e12..4a7324d43eb8 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -147,11 +147,11 @@ OUString FlagsToString( InsertDeleteFlags nFlags,
return aFlagsStr;
}
-void SetTabNoAndCursor( const ScViewData* rViewData, const OUString& rCellId )
+void SetTabNoAndCursor( const ScViewData& rViewData, const OUString& rCellId )
{
- ScTabViewShell* pTabViewShell = rViewData->GetViewShell();
+ ScTabViewShell* pTabViewShell = rViewData.GetViewShell();
assert(pTabViewShell);
- const ScDocument& rDoc = rViewData->GetDocShell()->GetDocument();
+ const ScDocument& rDoc = rViewData.GetDocShell()->GetDocument();
std::vector<sc::NoteEntry> aNotes;
rDoc.GetAllNoteEntries(aNotes);
@@ -2287,7 +2287,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
if (!aCellId.isEmpty())
{
- SetTabNoAndCursor( &GetViewData(), aCellId );
+ SetTabNoAndCursor( GetViewData(), aCellId );
}
ScAddress aPos( GetViewData().GetCurX(), GetViewData().GetCurY(), GetViewData().GetTabNo() );
@@ -2466,7 +2466,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
const OUString& aCellId = pIdItem->GetValue();
if (!aCellId.isEmpty())
{
- SetTabNoAndCursor( &GetViewData(), aCellId );
+ SetTabNoAndCursor( GetViewData(), aCellId );
}
}