From 121303615054568c204def97872343d2014af4a0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 15 Nov 2017 16:23:52 +0200 Subject: loplugin:useuniqueptr in hwpfilter Change-Id: If6e8dfcec2842a329229e5c57417ca3f00ef74b3 Reviewed-on: https://gerrit.libreoffice.org/44763 Tested-by: Jenkins Reviewed-by: Noel Grandin --- hwpfilter/source/hbox.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'hwpfilter/source/hbox.h') 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 cells; + std::vector> cells; TxtBox *box; }; -- cgit