loplugin:cow_wrapper

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 13 September 2021 13:05 UTC

check the classes that use o3tl::cow_wrapper so that they don't unnecessarity trigger copies

Change-Id: I545e627598217f3e61ba2c384adb8d4f8b404829 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122030

6c7c7bcdbd3e loplugin:cow_wrapper
basegfx/source/polygon/b2dpolygon.cxx | 52 ++++++++--------
basegfx/source/polygon/b2dpolypolygon.cxx | 16 ++---
basegfx/source/polygon/b3dpolygon.cxx | 34 +++++------
basegfx/source/polygon/b3dpolypolygon.cxx | 10 ++--
compilerplugins/clang/cow_wrapper.cxx | 88 ++++++++++++++++++++++++++++
compilerplugins/clang/test/cow_wrapper.cxx | 33 +++++++++++
solenv/CompilerTest_compilerplugins_clang.mk | 1 +
svx/source/xoutdev/_xpoly.cxx | 10 ++--
vcl/source/font/font.cxx | 6 +-
9 files changed, 186 insertions(+), 64 deletions(-)

Upstream: cgit.freedesktop.org


  • Share