loplugin:redundantfcast look for unnecessary temporaries

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 9 March 2018 06:14 EST

when calling methods that take a const&

Change-Id: Idf45dfd9fea0de6fae0b1f89550f2f7fc302aa15 Reviewed-on: https://gerrit.libreoffice.org/50970

2d40c43e8684 loplugin:redundantfcast look for unnecessary temporaries
.../controller/drawinglayer/DrawViewWrapper.cxx | 2 +-
chart2/source/controller/main/ChartController.cxx | 2 +-
compilerplugins/clang/redundantfcast.cxx | 55 +++++++++++++++++++++-
compilerplugins/clang/test/redundantfcast.cxx | 15 +++++-
sc/source/core/data/olinetab.cxx | 2 +-
sc/source/core/tool/token.cxx | 2 +-
sc/source/ui/unoobj/cellsuno.cxx | 4 +-
sc/source/ui/unoobj/dapiuno.cxx | 8 ++--
sc/source/ui/unoobj/targuno.cxx | 2 +-
sd/source/ui/docshell/docshel4.cxx | 2 +-
sfx2/source/doc/objembed.cxx | 2 +-
sfx2/source/sidebar/SidebarController.cxx | 2 +-
starmath/source/unomodel.cxx | 2 +-
stoc/source/javaloader/javaloader.cxx | 3 +-
vcl/source/filter/wmf/wmfwr.cxx | 2 +-
vcl/source/gdi/dibtools.cxx | 22 ++++-----
writerperfect/source/writer/exp/xmlimp.cxx | 2 +-
17 files changed, 95 insertions(+), 34 deletions(-)

Upstream: cgit.freedesktop.org


  • Share