diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-15 16:23:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-16 07:55:00 +0100 |
commit | 121303615054568c204def97872343d2014af4a0 (patch) | |
tree | 233ba5de1ddb4d890310d0648c31b13a1c561f00 /hwpfilter/source/hbox.h | |
parent | use implict conversion operator in TypedWhichId (diff) | |
download | core-121303615054568c204def97872343d2014af4a0.tar.gz core-121303615054568c204def97872343d2014af4a0.zip |
loplugin:useuniqueptr in hwpfilter
Change-Id: If6e8dfcec2842a329229e5c57417ca3f00ef74b3
Reviewed-on: https://gerrit.libreoffice.org/44763
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter/source/hbox.h')
-rw-r--r-- | hwpfilter/source/hbox.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hwpfilter/source/hbox.h b/hwpfilter/source/hbox.h index d934c9bf6622..8592e7d4cd8d 100644 --- a/hwpfilter/source/hbox.h +++ b/hwpfilter/source/hbox.h @@ -510,14 +510,10 @@ struct TCell struct Table { Table() : box(nullptr) {}; - ~Table() { - for (auto const& cell : cells) - delete cell; - }; Columns columns; Rows rows; - std::vector<TCell*> cells; + std::vector<std::unique_ptr<TCell>> cells; TxtBox *box; }; |