clang-tidy modernize-pass-by-value in sw

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 12 August 2022 06:04 UTC

Change-Id: I9a3b33595e34a264baeede33672a0c090ae85157 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138134

24865e2d57a3 clang-tidy modernize-pass-by-value in sw
sw/source/core/access/accmap.cxx | 21 +++++++++---------
sw/source/core/attr/format.cxx | 1 +
sw/source/core/attr/hints.cxx | 3 ++-
sw/source/core/bastyp/breakit.cxx | 1 +
sw/source/core/bastyp/calc.cxx | 1 +
sw/source/core/bastyp/swcache.cxx | 5 +++--
sw/source/core/crsr/bookmark.cxx | 5 +++--
sw/source/core/crsr/contentcontrolbutton.cxx | 7 +++---
sw/source/core/crsr/pam.cxx | 1 +
.../doc/DocumentLinksAdministrationManager.cxx | 5 +++--
sw/source/core/doc/docfld.cxx | 5 +++--
sw/source/core/doc/docredln.cxx | 1 +
sw/source/core/doc/htmltbl.cxx | 1 +
sw/source/core/doc/list.cxx | 1 +
sw/source/core/doc/number.cxx | 1 +
sw/source/core/doc/tblafmt.cxx | 1 +
sw/source/core/docnode/cancellablejob.cxx | 5 +++--
sw/source/core/docnode/cancellablejob.hxx | 2 +-
sw/source/core/docnode/finalthreadmanager.cxx | 5 +++--
sw/source/core/docnode/retrieveinputstream.cxx | 9 ++++----
sw/source/core/docnode/section.cxx | 1 +
sw/source/core/edit/autofmt.cxx | 7 +++---
sw/source/core/fields/cellfml.cxx | 1 +
sw/source/core/fields/dbfld.cxx | 1 +
sw/source/core/fields/ddefld.cxx | 1 +
sw/source/core/fields/docufld.cxx | 1 +
sw/source/core/fields/expfld.cxx | 1 +
sw/source/core/fields/macrofld.cxx | 1 +
sw/source/core/fields/reffld.cxx | 3 ++-
sw/source/core/fields/scrptfld.cxx | 1 +
sw/source/core/inc/SearchResultLocator.hxx | 6 +++---
sw/source/core/inc/SwUndoFmt.hxx | 6 +++---
sw/source/core/inc/UndoAttribute.hxx | 4 ++--
sw/source/core/inc/UndoBookmark.hxx | 2 +-
sw/source/core/inc/UndoInsert.hxx | 8 +++----
sw/source/core/inc/UndoManager.hxx | 2 +-
sw/source/core/inc/UndoNumbering.hxx | 2 +-
sw/source/core/inc/UndoTable.hxx | 2 +-
sw/source/core/inc/acorrect.hxx | 5 +++--
sw/source/core/inc/bookmark.hxx | 2 +-
sw/source/core/inc/contentcontrolbutton.hxx | 3 +--
sw/source/core/inc/docfld.hxx | 2 +-
sw/source/core/inc/retrievedinputstreamdata.hxx | 3 ++-
sw/source/core/inc/retrieveinputstream.hxx | 4 ++--
sw/source/core/inc/rolbck.hxx | 2 +-
sw/source/core/inc/swblocks.hxx | 2 +-
sw/source/core/inc/swcache.hxx | 2 +-
sw/source/core/inc/txmsrt.hxx | 13 +++++------
sw/source/core/inc/txtfrm.hxx | 5 +++--
sw/source/core/inc/undoflystrattr.hxx | 4 ++--
sw/source/core/inc/unoflatpara.hxx | 2 +-
sw/source/core/inc/unoport.hxx | 6 +++---
sw/source/core/inc/wrong.hxx | 4 ++--
sw/source/core/layout/paintfrm.cxx | 7 +++---
sw/source/core/ole/ndole.cxx | 5 +++--
sw/source/core/swg/swblocks.cxx | 5 +++--
sw/source/core/text/porfld.cxx | 5 +++--
sw/source/core/text/porfld.hxx | 2 +-
sw/source/core/text/porftn.hxx | 2 +-
sw/source/core/text/txtftn.cxx | 5 +++--
sw/source/core/text/wrong.cxx | 9 ++++----
sw/source/core/tox/ToxTextGenerator.cxx | 1 +
sw/source/core/tox/tox.cxx | 1 +
sw/source/core/tox/txmsrt.cxx | 13 +++++------
sw/source/core/txtnode/atrref.cxx | 1 +
sw/source/core/txtnode/fmtatr2.cxx | 1 +
sw/source/core/txtnode/txtedt.cxx | 1 +
sw/source/core/undo/SwUndoField.cxx | 1 +
sw/source/core/undo/SwUndoFmt.cxx | 15 +++++++------
sw/source/core/undo/docundo.cxx | 5 +++--
sw/source/core/undo/rolbck.cxx | 7 +++---
sw/source/core/undo/unattr.cxx | 8 +++----
sw/source/core/undo/unbkmk.cxx | 7 +++---
sw/source/core/undo/undoflystrattr.cxx | 9 ++++----
sw/source/core/undo/unins.cxx | 23 ++++++++++----------
sw/source/core/undo/unnum.cxx | 5 +++--
sw/source/core/undo/unovwr.cxx | 5 +++--
sw/source/core/undo/untbl.cxx | 4 ++--
sw/source/core/unocore/unocontentcontrol.cxx | 6 +++---
sw/source/core/unocore/unoflatpara.cxx | 5 +++--
sw/source/core/unocore/unoobj.cxx | 1 +
sw/source/core/unocore/unoobj2.cxx | 9 ++++----
sw/source/core/unocore/unoparagraph.cxx | 5 +++--
sw/source/core/unocore/unoport.cxx | 13 +++++------
sw/source/core/unocore/unoportenum.cxx | 16 +++++++-------
sw/source/core/unocore/unorefmk.cxx | 4 ++--
sw/source/core/unocore/unostyle.cxx | 15 +++++++------
sw/source/core/unocore/unotextmarkup.cxx | 5 +++--
sw/source/filter/basflt/fltshell.cxx | 5 +++--
sw/source/filter/basflt/shellio.cxx | 1 +
sw/source/filter/html/htmlctxt.cxx | 5 +++--
sw/source/filter/html/htmlform.cxx | 7 +++---
sw/source/filter/html/htmlforw.cxx | 5 +++--
sw/source/filter/html/htmltab.cxx | 15 +++++++------
sw/source/filter/html/parcss1.hxx | 9 ++++----
sw/source/filter/html/svxcss1.cxx | 9 ++++----
sw/source/filter/html/svxcss1.hxx | 4 ++--
sw/source/filter/html/swhtml.cxx | 17 ++++++++-------
sw/source/filter/html/swhtml.hxx | 15 +++++++------
sw/source/filter/html/wrthtml.hxx | 2 +-
sw/source/filter/inc/fltshell.hxx | 2 +-
sw/source/filter/ww8/attributeoutputbase.hxx | 5 +++--
sw/source/filter/ww8/writerhelper.cxx | 9 ++++----
sw/source/filter/ww8/writerhelper.hxx | 4 ++--
sw/source/filter/ww8/wrtww8.hxx | 9 ++++----
sw/source/filter/ww8/ww8graf.cxx | 5 +++--
sw/source/filter/ww8/ww8par.cxx | 5 +++--
sw/source/filter/ww8/ww8par.hxx | 15 +++++++------
sw/source/filter/xml/xmlimpit.cxx | 4 ++--
sw/source/filter/xml/xmlimpit.hxx | 2 +-
sw/source/filter/xml/xmltbli.cxx | 11 +++++-----
sw/source/ui/dbui/createaddresslistdialog.cxx | 5 +++--
sw/source/ui/dbui/createaddresslistdialog.hxx | 2 +-
sw/source/ui/dbui/dbinsdlg.cxx | 5 +++--
sw/source/ui/dbui/dbtablepreviewdialog.cxx | 5 +++--
sw/source/ui/dbui/mailmergewizard.cxx | 5 +++--
sw/source/ui/dbui/mmaddressblockpage.cxx | 7 +++---
sw/source/ui/dbui/mmaddressblockpage.hxx | 2 +-
sw/source/ui/dbui/selectdbtabledialog.cxx | 5 +++--
sw/source/ui/dbui/selectdbtabledialog.hxx | 2 +-
sw/source/ui/dialog/swdlgfact.hxx | 3 ++-
sw/source/ui/frmdlg/cption.cxx | 7 +++---
sw/source/ui/index/cnttab.cxx | 7 +++---
sw/source/ui/index/swuiidxmrk.cxx | 5 +++--
sw/source/ui/vba/vbaaddin.cxx | 5 +++--
sw/source/ui/vba/vbaaddin.hxx | 3 +--
sw/source/ui/vba/vbaautotextentry.cxx | 5 +++--
sw/source/ui/vba/vbaautotextentry.hxx | 2 +-
sw/source/ui/vba/vbabookmark.cxx | 5 +++--
sw/source/ui/vba/vbabookmark.hxx | 2 +-
sw/source/ui/vba/vbabookmarks.cxx | 7 +++---
sw/source/ui/vba/vbabookmarks.hxx | 2 +-
sw/source/ui/vba/vbaborders.cxx | 5 +++--
sw/source/ui/vba/vbacell.cxx | 6 ++++--
sw/source/ui/vba/vbacell.hxx | 2 +-
sw/source/ui/vba/vbacells.cxx | 5 +++--
sw/source/ui/vba/vbacolumn.cxx | 5 +++--
sw/source/ui/vba/vbacolumn.hxx | 2 +-
sw/source/ui/vba/vbacolumns.cxx | 8 ++++---
sw/source/ui/vba/vbacolumns.hxx | 4 ++--
sw/source/ui/vba/vbadocumentproperties.cxx | 11 +++++-----
sw/source/ui/vba/vbadocuments.cxx | 3 ++-
sw/source/ui/vba/vbafield.cxx | 5 +++--
sw/source/ui/vba/vbafind.cxx | 5 ++---
sw/source/ui/vba/vbafind.hxx | 2 +-
sw/source/ui/vba/vbaframe.cxx | 5 +++--
sw/source/ui/vba/vbaframe.hxx | 2 +-
sw/source/ui/vba/vbaframes.cxx | 5 +++--
sw/source/ui/vba/vbaframes.hxx | 2 +-
sw/source/ui/vba/vbaheaderfooter.cxx | 3 ++-
sw/source/ui/vba/vbaheaderfooter.hxx | 2 +-
sw/source/ui/vba/vbaheadersfooters.cxx | 3 ++-
sw/source/ui/vba/vbalistformat.cxx | 3 ++-
sw/source/ui/vba/vbalistformat.hxx | 2 +-
sw/source/ui/vba/vbalistgalleries.cxx | 3 ++-
sw/source/ui/vba/vbalistgalleries.hxx | 2 +-
sw/source/ui/vba/vbalistgallery.cxx | 4 +++-
sw/source/ui/vba/vbalistgallery.hxx | 2 +-
sw/source/ui/vba/vbalisthelper.cxx | 3 ++-
sw/source/ui/vba/vbalisthelper.hxx | 2 +-
sw/source/ui/vba/vbalistlevel.cxx | 3 ++-
sw/source/ui/vba/vbalistlevel.hxx | 2 +-
sw/source/ui/vba/vbalistlevels.cxx | 3 ++-
sw/source/ui/vba/vbalistlevels.hxx | 2 +-
sw/source/ui/vba/vbalisttemplates.cxx | 4 +++-
sw/source/ui/vba/vbalisttemplates.hxx | 2 +-
sw/source/ui/vba/vbapane.cxx | 5 +++--
sw/source/ui/vba/vbapane.hxx | 2 +-
sw/source/ui/vba/vbapanes.cxx | 5 +++--
sw/source/ui/vba/vbaparagraph.cxx | 7 +++---
sw/source/ui/vba/vbaparagraph.hxx | 2 +-
sw/source/ui/vba/vbaparagraphformat.cxx | 3 ++-
sw/source/ui/vba/vbaparagraphformat.hxx | 2 +-
sw/source/ui/vba/vbarange.cxx | 7 +++---
sw/source/ui/vba/vbarange.hxx | 6 +++---
sw/source/ui/vba/vbareplacement.cxx | 6 ++++--
sw/source/ui/vba/vbareplacement.hxx | 2 +-
sw/source/ui/vba/vbarevision.cxx | 3 ++-
sw/source/ui/vba/vbarevision.hxx | 2 +-
sw/source/ui/vba/vbarevisions.cxx | 5 +++--
sw/source/ui/vba/vbarevisions.hxx | 2 +-
sw/source/ui/vba/vbarow.cxx | 5 +++--
sw/source/ui/vba/vbarow.hxx | 2 +-
sw/source/ui/vba/vbarows.cxx | 7 +++---
sw/source/ui/vba/vbarows.hxx | 4 ++--
sw/source/ui/vba/vbasection.cxx | 5 +++--
sw/source/ui/vba/vbasection.hxx | 2 +-
sw/source/ui/vba/vbasections.cxx | 7 +++---
sw/source/ui/vba/vbaselection.cxx | 3 ++-
sw/source/ui/vba/vbaselection.hxx | 2 +-
sw/source/ui/vba/vbastyle.cxx | 3 ++-
sw/source/ui/vba/vbastyle.hxx | 2 +-
sw/source/ui/vba/vbatable.cxx | 3 ++-
sw/source/ui/vba/vbatable.hxx | 2 +-
sw/source/ui/vba/vbatablehelper.cxx | 3 ++-
sw/source/ui/vba/vbatablehelper.hxx | 2 +-
sw/source/ui/vba/vbatableofcontents.cxx | 5 +++--
sw/source/ui/vba/vbatableofcontents.hxx | 2 +-
sw/source/ui/vba/vbatables.cxx | 3 ++-
sw/source/ui/vba/vbatablesofcontents.cxx | 5 +++--
sw/source/ui/vba/vbatabstops.cxx | 5 +++--
sw/source/ui/vba/vbatemplate.cxx | 5 +++--
sw/source/ui/vba/vbatemplate.hxx | 2 +-
sw/source/ui/vba/vbavariable.cxx | 5 +++--
sw/source/ui/vba/vbavariable.hxx | 2 +-
sw/source/ui/vba/vbaview.cxx | 5 +++--
sw/source/ui/vba/vbaview.hxx | 2 +-
sw/source/uibase/app/docst.cxx | 9 ++++----
sw/source/uibase/config/uinums.cxx | 5 +++--
sw/source/uibase/dbui/maildispatcher.cxx | 21 +++++++++---------
sw/source/uibase/dbui/mailmergehelper.cxx | 25 +++++++++++-----------
sw/source/uibase/dochdl/gloshdl.cxx | 5 +++--
sw/source/uibase/docvw/AnchorOverlayObject.cxx | 13 +++++------
sw/source/uibase/docvw/PostItMgr.cxx | 5 +++--
sw/source/uibase/frmdlg/frmmgr.cxx | 5 +++--
sw/source/uibase/inc/content.hxx | 9 ++++----
sw/source/uibase/inc/dbinsdlg.hxx | 7 +++---
sw/source/uibase/inc/fldmgr.hxx | 7 +++---
sw/source/uibase/inc/frmmgr.hxx | 2 +-
sw/source/uibase/inc/maildispatcher.hxx | 2 +-
sw/source/uibase/inc/mailmergehelper.hxx | 17 ++++++++-------
sw/source/uibase/inc/mailmergewizard.hxx | 2 +-
sw/source/uibase/inc/navicont.hxx | 2 +-
sw/source/uibase/inc/olmenu.hxx | 2 +-
sw/source/uibase/inc/optload.hxx | 5 +++--
sw/source/uibase/inc/redlndlg.hxx | 2 +-
sw/source/uibase/inc/swcont.hxx | 2 +-
sw/source/uibase/inc/swuiidxmrk.hxx | 2 +-
sw/source/uibase/inc/uinums.hxx | 2 +-
sw/source/uibase/inc/unoatxt.hxx | 2 +-
sw/source/uibase/inc/workctrl.hxx | 2 +-
sw/source/uibase/lingu/olmenu.cxx | 5 +++--
sw/source/uibase/misc/redlndlg.cxx | 5 +++--
sw/source/uibase/ribbar/workctrl.cxx | 5 +++--
sw/source/uibase/sidebar/StylePresetsPanel.hxx | 5 +++--
sw/source/uibase/sidebar/ThemePanel.cxx | 5 +++--
sw/source/uibase/uno/unoatxt.cxx | 9 ++++----
sw/source/uibase/uno/unomailmerge.cxx | 7 +++---
sw/source/uibase/uno/unotxdoc.cxx | 3 ++-
sw/source/uibase/utlui/content.cxx | 13 +++++------
240 files changed, 658 insertions(+), 500 deletions(-)

Upstream: cgit.freedesktop.org


  • Share