summaryrefslogtreecommitdiff
path: root/sw/inc/docary.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-05-02 15:28:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-05-02 15:40:28 +0100
commitde9106a511ed9c202423e3c3a9754feb4f969364 (patch)
tree57f429b79c30f3cc5db106961edc4d69e7e37cf8 /sw/inc/docary.hxx
parent4778f39ece4b41625b876e5e7673893e1e011a62 (diff)
Revert "SwFieldTypes can just be a std::vector typedef"
This reverts commit 5eaad8eb1d46b6f85605c5ac210e8b1397b18b22. cause it now leaks as the ~SwVectorModifyBase base deletes the entries Change-Id: I02374f4b439b9cf3e8f331aa9c6892b4418f37f0
Diffstat (limited to 'sw/inc/docary.hxx')
-rw-r--r--sw/inc/docary.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx
index 8e0131516a11..255bc8127ff7 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -295,8 +295,10 @@ public:
void dumpAsXml(struct _xmlTextWriter* pWriter) const;
};
-typedef std::vector<SwFieldType*> SwFieldTypes;
-void dumpAsXml(struct _xmlTextWriter* pWriter, SwFieldTypes const &);
+class SwFieldTypes : public SwVectorModifyBase<SwFieldType*> {
+public:
+ void dumpAsXml(struct _xmlTextWriter* pWriter) const;
+};
typedef std::vector<SwTOXType*> SwTOXTypes;