diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2017-05-02 19:03:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-02 22:00:57 +0200 |
commit | 925dabe8fd42d85e5d8e610dc75252372161d1b3 (patch) | |
tree | a83b86204e1b71f733f98855858ceca7096c728a /sw/inc | |
parent | 4c6876582d864897c3ebd4d00bd9fb5c6334edc1 (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')
-rw-r--r-- | sw/inc/doc.hxx | 1 | ||||
-rw-r--r-- | sw/inc/docary.hxx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 61d57940d2f9..f75ed2775890 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -117,6 +117,7 @@ class SwSectionData; class SwSelBoxes; class SwTableAutoFormatTable; class SwTOXBaseSection; +class SwTOXTypes; class SwTabCols; class SwTable; class SwTableAutoFormat; 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: |