diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-03 14:29:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-06 08:16:24 +0200 |
commit | bb2ff075642664084e735948fcc65e21ad861937 (patch) | |
tree | ec9db68195bb4af99609e1485d9bd16b453d253b /sw/source/filter/html/htmlfly.hxx | |
parent | 49ea32064a28675a735fd270d07fd6ea8e7e03b6 (diff) |
loplugin:useuniqueptr in SwHTMLPosFlyFrames
and add a new method erase_extract to o3tl::sorted_vector, otherwise
there is no decent way to extract an element from such a vector without
freeing it.
Change-Id: I769782c04a54a2d7433e8349c99134f997a54689
Reviewed-on: https://gerrit.libreoffice.org/61345
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/html/htmlfly.hxx')
-rw-r--r-- | sw/source/filter/html/htmlfly.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/html/htmlfly.hxx b/sw/source/filter/html/htmlfly.hxx index 5873baf28dad..f12ea3b5582b 100644 --- a/sw/source/filter/html/htmlfly.hxx +++ b/sw/source/filter/html/htmlfly.hxx @@ -122,8 +122,8 @@ public: }; class SwHTMLPosFlyFrames - : public o3tl::sorted_vector<SwHTMLPosFlyFrame*, - o3tl::less_ptr_to<SwHTMLPosFlyFrame>, + : public o3tl::sorted_vector<std::unique_ptr<SwHTMLPosFlyFrame>, + o3tl::less_uniqueptr_to<SwHTMLPosFlyFrame>, o3tl::find_partialorder_ptrequals> {}; |