loplugin:singlevalfields in sfx2

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 16 October 2018 08:15 EDT

pParent in SfxDispatch_Impl was always nullptr, which led to a bunch of dead code similarly with pParent in SfxWorkWindow

Change-Id: I964a43fe094409ab4b6d1eda7225af997092e81c Reviewed-on: https://gerrit.libreoffice.org/61811

27dadc070ec2 loplugin:singlevalfields in sfx2
include/sfx2/dispatch.hxx | 4 +-
include/sfx2/printer.hxx | 3 -
include/sfx2/progress.hxx | 1 -
sfx2/source/appl/app.cxx | 1 -
sfx2/source/appl/workwin.cxx | 148 ++----------------------------------
sfx2/source/bastyp/progress.cxx | 52 -------------
sfx2/source/control/bindings.cxx | 2 +-
sfx2/source/control/dispatch.cxx | 157 ++++++++++-----------------------------
sfx2/source/control/statcach.cxx | 2 +-
sfx2/source/control/unoctitm.cxx | 3 +-
sfx2/source/dialog/splitwin.cxx | 3 +-
sfx2/source/inc/workwin.hxx | 8 +-
sfx2/source/view/printer.cxx | 30 +-------
sfx2/source/view/viewfrm2.cxx | 2 +-
14 files changed, 54 insertions(+), 362 deletions(-)

Upstream: cgit.freedesktop.org


  • Share