diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/table/tableundo.cxx | 4 | ||||
-rw-r--r-- | svx/source/table/tableundo.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
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<SdrObject>& 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<SdrObject>& xObjRef, const CellRef& xCell ); + CellUndo( SdrObject* pObj, const CellRef& xCell ); virtual ~CellUndo() override; virtual void Undo() override; |