summaryrefslogtreecommitdiff
path: root/sw/inc/docary.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-05-02 19:03:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-02 22:00:57 +0200
commit925dabe8fd42d85e5d8e610dc75252372161d1b3 (patch)
treea83b86204e1b71f733f98855858ceca7096c728a /sw/inc/docary.hxx
parent4c6876582d864897c3ebd4d00bd9fb5c6334edc1 (diff)
Revert "SwTOXTypes can just be a std::vector typedef"
This reverts commit f894da4e687302702d14218138f96ed1c4983124. the default behaviour of SwVectorModifyBase is to free the elements in it's destructor Change-Id: I7a34fe5cc3cb8ffbcbb92068f4bb816dfd9acd43 Reviewed-on: https://gerrit.libreoffice.org/37168 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/docary.hxx')
-rw-r--r--sw/inc/docary.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx
index 255bc8127ff7..6d25e85dcc74 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -300,7 +300,7 @@ public:
void dumpAsXml(struct _xmlTextWriter* pWriter) const;
};
-typedef std::vector<SwTOXType*> SwTOXTypes;
+class SwTOXTypes : public SwVectorModifyBase<SwTOXType*> {};
class SW_DLLPUBLIC SwNumRuleTable : public SwVectorModifyBase<SwNumRule*> {
public: