From fe1ea3f546a539787d7f5e9c25fcf47dc0cbe2c0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 24 Sep 2020 09:13:16 +0100 Subject: some places where ScDocument* is never passed a nullptr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie06fef80990b539d5b6cc87c80d9bbd3e851766c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103299 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sc/source/ui/undo/undoblk.cxx | 8 ++++---- sc/source/ui/undo/undostyl.cxx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sc/source/ui/undo') diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx index 5a2be9602c8b..e7fccbedded5 100644 --- a/sc/source/ui/undo/undoblk.cxx +++ b/sc/source/ui/undo/undoblk.cxx @@ -1630,13 +1630,13 @@ void ScUndoConditionalFormatList::DoChange(const ScDocument* pSrcDoc) if (pSrcDoc == mpUndoDoc.get()) { - mpRedoDoc->GetCondFormList(mnTab)->RemoveFromDocument(&rDoc); - mpUndoDoc->GetCondFormList(mnTab)->AddToDocument(&rDoc); + mpRedoDoc->GetCondFormList(mnTab)->RemoveFromDocument(rDoc); + mpUndoDoc->GetCondFormList(mnTab)->AddToDocument(rDoc); } else { - mpUndoDoc->GetCondFormList(mnTab)->RemoveFromDocument(&rDoc); - mpRedoDoc->GetCondFormList(mnTab)->AddToDocument(&rDoc); + mpUndoDoc->GetCondFormList(mnTab)->RemoveFromDocument(rDoc); + mpRedoDoc->GetCondFormList(mnTab)->AddToDocument(rDoc); } rDoc.SetCondFormList(new ScConditionalFormatList(&rDoc, *pSrcDoc->GetCondFormList(mnTab)), mnTab); diff --git a/sc/source/ui/undo/undostyl.cxx b/sc/source/ui/undo/undostyl.cxx index 89aad6155455..9596edb07a01 100644 --- a/sc/source/ui/undo/undostyl.cxx +++ b/sc/source/ui/undo/undostyl.cxx @@ -133,7 +133,7 @@ void ScUndoModifyStyle::DoChange( ScDocShell* pDocSh, const OUString& rName, pStyle = &pStlPool->Make( aNewName, eStyleFamily, SfxStyleSearchBits::UserDefined ); if ( eStyleFamily == SfxStyleFamily::Para ) - rDoc.GetPool()->CellStyleCreated( aNewName, &rDoc ); + rDoc.GetPool()->CellStyleCreated( aNewName, rDoc ); } if ( pStyle ) -- cgit