loplugin singlevalfields improvement

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 13 November 2018 11:27 EST

checking for casting to void* turns out to mask useful stuff, so remove that and just deal with a few extra false+

Change-Id: Id9700d7ceda90ba8fdb38aa870f13a7ca3acb668 Reviewed-on: https://gerrit.libreoffice.org/63145

e32904990094 loplugin singlevalfields improvement
canvas/source/tools/canvascustomspritehelper.cxx | 18 +-
.../controller/dialogs/dlg_ObjectProperties.cxx | 7 +-
.../source/controller/inc/dlg_ObjectProperties.hxx | 2 -
.../clang/singlevalfields.could-be-bool.results | 42 +-
compilerplugins/clang/singlevalfields.cxx | 115 ++----
compilerplugins/clang/singlevalfields.results | 430 +++++++++++++++++----
compilerplugins/clang/test/singlevalfields.cxx | 26 ++
framework/inc/uielement/toolbarsmenucontroller.hxx | 2 -
.../source/uielement/toolbarsmenucontroller.cxx | 9 +-
include/canvas/base/canvascustomspritehelper.hxx | 15 -
lotuswordpro/inc/xfilter/xffontdecl.hxx | 3 -
lotuswordpro/source/filter/xfilter/xffontdecl.cxx | 1 -
.../source/filter/xfilter/xfstylemanager.cxx | 5 +-
sd/source/ui/inc/Window.hxx | 1 -
sd/source/ui/slideshow/slideshowimpl.cxx | 5 -
sd/source/ui/slideshow/slideshowimpl.hxx | 1 -
sd/source/ui/view/sdwindow.cxx | 43 +--
slideshow/source/engine/shapes/viewmediashape.cxx | 13 +-
slideshow/source/engine/shapes/viewmediashape.hxx | 1 -
solenv/CompilerTest_compilerplugins_clang.mk | 1 +
xmloff/source/draw/animexp.cxx | 9 +-
21 files changed, 484 insertions(+), 265 deletions(-)

Upstream: cgit.freedesktop.org


  • Share