loplugin:useuniqueptr in PolyPolygon

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 13 January 2018 06:10 EST

Also- convert to o3tl::cow_wrapper- drop the second param to the constructor and just let vector use it's own resize logic- bump MAX_POLYGONS from 0x3FF0 to 0xffff so that the ios2met filter can load it's files properly.

Change-Id: I9db19e4f7b4f946e801ea07c31d2d0ded7837a0e Reviewed-on: https://gerrit.libreoffice.org/47789

d7d9edb27e0e loplugin:useuniqueptr in PolyPolygon
emfio/source/reader/emfreader.cxx | 2 +-
emfio/source/reader/wmfreader.cxx | 2 +-
include/tools/poly.hxx | 6 +-
svx/source/dialog/contwnd.cxx | 2 +-
tools/inc/poly.h | 38 +++--
tools/source/generic/poly2.cxx | 311 ++++++++------------------------------
6 files changed, 90 insertions(+), 271 deletions(-)

Upstream: cgit.freedesktop.org


  • Share