loplugin:useuniqueptr in l10ntools

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

update plugin to find all places where we are unconditionally deleting stuff in a destructor

Change-Id: Ia0fedc2420c7717ed2bdd8d3bb00262d2a63e0bc Reviewed-on: https://gerrit.libreoffice.org/47724

96d9bd226215 loplugin:useuniqueptr in l10ntools
compilerplugins/clang/test/useuniqueptr.cxx | 15 +-
compilerplugins/clang/useuniqueptr.cxx | 412 +++++++++++-----------------
l10ntools/inc/cfgmerge.hxx | 2 +-
l10ntools/inc/lngmerge.hxx | 4 +-
l10ntools/inc/xrmmerge.hxx | 2 +-
l10ntools/source/cfgmerge.cxx | 8 +-
l10ntools/source/lngmerge.cxx | 50 ++--
l10ntools/source/xrmmerge.cxx | 5 +-
8 files changed, 206 insertions(+), 292 deletions(-)

Upstream: cgit.freedesktop.org


  • Share