svx/source/table/tableundo.cxx |    4 ++--
 svx/source/table/tableundo.hxx |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 01e4030aa690e4e408bb9b56a990d7364e9f3a5d
Author:     Noel <noel.gran...@collabora.co.uk>
AuthorDate: Wed Feb 3 10:42:16 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Feb 3 12:48:28 2021 +0100

    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.gran...@collabora.co.uk>

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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to