summaryrefslogtreecommitdiff
path: root/sw/source/filter/inc
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2019-09-20 00:43:42 +0200
committerBjörn Michaelsen <bjoern.michaelsen@libreoffice.org>2019-09-20 02:22:46 +0200
commit11feca7a98e21062a2284e7d4dbb21030598cb65 (patch)
tree117bf110a188df55c1d7f5b3ae64294c4a3fe48b /sw/source/filter/inc
parent7b554b78f864cc25e6178d81cb577daf0f0e7bf2 (diff)
no more SwClient in sw/source/filter/ww8
- prevent apparently leaking ~all InsertedTableClient by using a unique_ptr - rename InsertedTableClient to InsertedTableListener Change-Id: I60407113bf0ba28f5944ff9241a2d8a80a03d399 Reviewed-on: https://gerrit.libreoffice.org/79262 Tested-by: Jenkins Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/source/filter/inc')
-rw-r--r--sw/source/filter/inc/msfilter.hxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sw/source/filter/inc/msfilter.hxx b/sw/source/filter/inc/msfilter.hxx
index e46769c02216..b5fbfdb2e737 100644
--- a/sw/source/filter/inc/msfilter.hxx
+++ b/sw/source/filter/inc/msfilter.hxx
@@ -32,6 +32,7 @@
#include "fltshell.hxx"
#include <shellio.hxx>
#include <svl/zforlist.hxx>
+#include <svl/listener.hxx>
class SwDoc;
class SwPaM;
@@ -250,11 +251,13 @@ namespace sw
explicit FontMapExport(const OUString &rFontDescription);
};
- class InsertedTableClient : public SwClient
+ class InsertedTableListener: public SvtListener
{
+ SwTableNode* m_pTableNode;
public:
- explicit InsertedTableClient(SwTableNode & rNode);
- SwTableNode * GetTableNode();
+ explicit InsertedTableListener(SwTableNode& rNode);
+ SwTableNode* GetTableNode();
+ virtual void Notify(const SfxHint&) override;
};
/** Handle requirements for table formatting in insert->file mode.
@@ -276,7 +279,7 @@ namespace sw
class InsertedTablesManager
{
public:
- typedef std::map<InsertedTableClient *, SwNodeIndex *> TableMap;
+ typedef std::map<std::unique_ptr<InsertedTableListener>, SwNodeIndex*> TableMap;
void DelAndMakeTableFrames();
void InsertTable(SwTableNode &rTableNode, SwPaM &rPaM);
explicit InsertedTablesManager(const SwDoc &rDoc);