summaryrefslogtreecommitdiffstats
path: root/hwpfilter/source/hbox.h
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-15 16:23:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-16 07:55:00 +0100
commit121303615054568c204def97872343d2014af4a0 (patch)
tree233ba5de1ddb4d890310d0648c31b13a1c561f00 /hwpfilter/source/hbox.h
parentuse implict conversion operator in TypedWhichId (diff)
downloadcore-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.h6
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;
};