loplugin:referencecasting look through more clang Types

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 23 August 2021 13:25 UTC

Note that because of where the fix resides, loplugin:redundantcast also notices a few more things.

Change-Id: I0b66047fadfff2c5ceafcbd3eab085de00d861a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120865

8a54339fc83f loplugin:referencecasting look through more clang Types
avmedia/source/viewer/mediawindow_impl.cxx | 16 ++++-----
.../chartapiwrapper/ChartDocumentWrapper.cxx | 2 +-
chart2/source/tools/ExplicitCategoriesProvider.cxx | 2 +-
chart2/source/view/main/ChartView.cxx | 2 +-
compilerplugins/clang/plugin.cxx | 16 +++++++--
compilerplugins/clang/test/referencecasting.cxx | 22 +++++++++++++
dbaccess/source/ui/browser/sbagrid.cxx | 4 +--
dbaccess/source/ui/misc/TokenWriter.cxx | 6 ++--
.../source/deployment/registry/help/dp_help.cxx | 4 +--
embeddedobj/source/msole/ownview.cxx | 27 ++++-----------
filter/source/config/cache/cacheupdatelistener.cxx | 2 +-
forms/source/component/FormComponent.cxx | 3 +-
forms/source/component/FormattedField.cxx | 4 +--
framework/source/dispatch/interceptionhelper.cxx | 4 +--
framework/source/dispatch/mailtodispatcher.cxx | 4 +--
framework/source/dispatch/popupmenudispatcher.cxx | 5 ++-
framework/source/dispatch/servicehandler.cxx | 4 +--
.../source/fwe/helper/actiontriggerhelper.cxx | 2 +-
framework/source/fwe/xml/menuconfiguration.cxx | 2 +-
.../source/helper/uiconfigelementwrapperbase.cxx | 8 ++---
framework/source/jobs/job.cxx | 14 ++++----
framework/source/jobs/jobdispatch.cxx | 2 +-
framework/source/layoutmanager/layoutmanager.cxx | 26 +++++++--------
.../source/layoutmanager/toolbarlayoutmanager.cxx | 16 ++++-----
framework/source/services/autorecovery.cxx | 4 +--
framework/source/services/desktop.cxx | 2 +-
framework/source/services/frame.cxx | 26 ++++++---------
.../source/uiconfiguration/globalsettings.cxx | 4 +--
.../moduleuiconfigurationmanager.cxx | 38 +++++++++++-----------
.../uiconfiguration/uiconfigurationmanager.cxx | 34 +++++++++----------
.../source/uielement/addonstoolbarwrapper.cxx | 2 +-
.../source/uielement/controlmenucontroller.cxx | 4 +--
framework/source/uielement/fontmenucontroller.cxx | 4 +--
.../source/uielement/fontsizemenucontroller.cxx | 4 +--
.../source/uielement/headermenucontroller.cxx | 4 +--
.../uielement/langselectionmenucontroller.cxx | 4 +--
.../source/uielement/macrosmenucontroller.cxx | 4 +--
framework/source/uielement/menubarmanager.cxx | 21 +++++-------
framework/source/uielement/menubarwrapper.cxx | 2 +-
framework/source/uielement/newmenucontroller.cxx | 4 +--
.../source/uielement/objectmenucontroller.cxx | 4 +--
framework/source/uielement/progressbarwrapper.cxx | 9 ++---
.../source/uielement/recentfilesmenucontroller.cxx | 6 ++--
framework/source/uielement/statusbarmanager.cxx | 14 +++-----
framework/source/uielement/statusbarwrapper.cxx | 2 +-
.../source/uielement/subtoolbarcontroller.cxx | 3 +-
framework/source/uielement/toolbarmanager.cxx | 28 ++++++----------
.../source/uielement/toolbarmodemenucontroller.cxx | 6 ++--
.../source/uielement/toolbarsmenucontroller.cxx | 6 ++--
framework/source/uielement/toolbarwrapper.cxx | 2 +-
framework/source/uifactory/menubarfactory.cxx | 3 +-
framework/source/uifactory/statusbarfactory.cxx | 3 +-
framework/source/uifactory/toolbarfactory.cxx | 3 +-
package/source/xstor/ocompinstream.cxx | 2 +-
package/source/xstor/xstorage.cxx | 3 +-
package/source/zippackage/ZipPackageFolder.cxx | 4 +--
.../controller/SlideSorterController.cxx | 3 +-
.../ui/slidesorter/controller/SlsListener.cxx | 8 ++---
sd/source/ui/tools/EventMultiplexer.cxx | 7 ++--
sd/source/ui/view/drviewsa.cxx | 3 +-
sdext/source/presenter/PresenterAccessibility.cxx | 2 +-
sdext/source/presenter/PresenterController.cxx | 6 ++--
sdext/source/presenter/PresenterHelpView.cxx | 3 +-
sdext/source/presenter/PresenterNotesView.cxx | 4 +--
sdext/source/presenter/PresenterPaneFactory.cxx | 6 ++--
sdext/source/presenter/PresenterScreen.cxx | 6 ++--
sdext/source/presenter/PresenterSlideSorter.cxx | 6 ++--
sdext/source/presenter/PresenterToolBar.cxx | 7 ++--
sdext/source/presenter/PresenterViewFactory.cxx | 3 +-
sfx2/source/appl/workwin.cxx | 6 ++--
sfx2/source/control/sfxstatuslistener.cxx | 6 ++--
sfx2/source/control/statcach.cxx | 2 +-
sfx2/source/doc/sfxbasemodel.cxx | 2 +-
sfx2/source/sidebar/ControllerFactory.cxx | 12 +++----
sfx2/source/sidebar/SidebarDockingWindow.cxx | 2 +-
sfx2/source/sidebar/Theme.cxx | 2 +-
sfx2/source/view/sfxbasecontroller.cxx | 3 +-
svl/source/fsstor/oinputstreamcontainer.cxx | 2 +-
svtools/source/uno/popupmenucontrollerbase.cxx | 4 +--
svtools/source/uno/toolboxcontroller.cxx | 14 ++++----
svx/source/accessibility/ChildrenManagerImpl.cxx | 4 +--
svx/source/form/datanavi.cxx | 18 ++++------
svx/source/tbxctrls/tbunosearchcontrollers.cxx | 14 ++++----
svx/source/unodraw/unoshape.cxx | 2 +-
sw/source/core/crsr/viscrs.cxx | 2 +-
sw/source/core/docnode/finalthreadmanager.cxx | 2 +-
sw/source/core/unocore/unochart.cxx | 10 +++---
sw/source/uibase/uno/unomodule.cxx | 2 +-
sw/source/uibase/uno/unotxdoc.cxx | 2 +-
.../source/controls/controlmodelcontainerbase.cxx | 5 ++-
toolkit/source/controls/dialogcontrol.cxx | 2 +-
toolkit/source/controls/roadmapcontrol.cxx | 4 +--
toolkit/source/controls/tabpagemodel.cxx | 2 +-
toolkit/source/controls/unocontrol.cxx | 2 +-
unoxml/source/dom/elementlist.cxx | 2 +-
xmlsecurity/source/helper/xsecctl.cxx | 2 +-
xmlsecurity/source/helper/xsecsign.cxx | 6 ++--
xmlsecurity/source/helper/xsecverify.cxx | 2 +-
98 files changed, 297 insertions(+), 361 deletions(-)

Upstream: cgit.freedesktop.org


  • Share