From 01e4030aa690e4e408bb9b56a990d7364e9f3a5d Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 3 Feb 2021 10:42:16 +0200 Subject: pass pointer rather than tools::WeakReference in CellUndo makes an upcoming change I have in mind simpler Change-Id: I5f077a8bb2a3d20db500ea8c65d87911daabfdd5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110340 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/table/tableundo.cxx | 4 ++-- svx/source/table/tableundo.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'svx') diff --git a/svx/source/table/tableundo.cxx b/svx/source/table/tableundo.cxx index 63aa489c8bf7..a037db9c9aa8 100644 --- a/svx/source/table/tableundo.cxx +++ b/svx/source/table/tableundo.cxx @@ -34,9 +34,9 @@ using namespace ::com::sun::star::table; namespace sdr::table { -CellUndo::CellUndo( const tools::WeakReference& xObjRef, const CellRef& xCell ) +CellUndo::CellUndo( SdrObject* pObjRef, const CellRef& xCell ) : SdrUndoAction(xCell->GetObject().getSdrModelFromSdrObject()) - ,mxObjRef( xObjRef ) + ,mxObjRef( pObjRef ) ,mxCell( xCell ) ,mbUndo( true ) { diff --git a/svx/source/table/tableundo.hxx b/svx/source/table/tableundo.hxx index 2e1bc12c7ecd..861251963658 100644 --- a/svx/source/table/tableundo.hxx +++ b/svx/source/table/tableundo.hxx @@ -41,7 +41,7 @@ namespace sdr::table { class CellUndo : public SdrUndoAction, public sdr::ObjectUser { public: - CellUndo( const tools::WeakReference& xObjRef, const CellRef& xCell ); + CellUndo( SdrObject* pObj, const CellRef& xCell ); virtual ~CellUndo() override; virtual void Undo() override; -- cgit