diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-03 10:42:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-03 12:48:28 +0100 |
commit | 01e4030aa690e4e408bb9b56a990d7364e9f3a5d (patch) | |
tree | a624f7deabf61546ae891b75b29d848e9c038ea5 /svx/source | |
parent | b1779452bdf8b4d00791f013945cb9aa12b19723 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source')
-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; |