loplugin:stringview more o3tl conversion

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 12 April 2022 10:42 UTC

look for call sequences that can use string_view and the new o3tl functions in o3tl/string_view.hxx

Also add a few more wrappers to said #include file

Change-Id: I05d8752cc67a7b55b0b57e8eed803bd06bfcd9ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132840

cbaf1fbaa6e7 loplugin:stringview more o3tl conversion
chart2/qa/extras/chart2dump/chart2dump.cxx | 18 ++++++++---------
comphelper/source/misc/sequenceashashmap.cxx | 2 +-
compilerplugins/clang/stringview.cxx | 12 +++++++++--
.../source/drivers/postgresql/pq_tools.cxx | 3 ++-
dbaccess/source/filter/hsqldb/createparser.cxx | 23 +++++++++++++---------
desktop/source/deployment/inc/dp_platform.hxx | 2 +-
.../deployment/misc/dp_descriptioninfoset.cxx | 7 ++++---
desktop/source/deployment/misc/dp_platform.cxx | 5 +++--
.../deployment/registry/component/dp_component.cxx | 5 +++--
.../registry/configuration/dp_configuration.cxx | 11 ++++++-----
.../deployment/registry/package/dp_package.cxx | 2 +-
desktop/source/migration/migration.cxx | 2 +-
desktop/source/offacc/acceptor.cxx | 3 ++-
desktop/source/splash/splash.cxx | 8 ++++----
filter/source/msfilter/msvbahelper.cxx | 4 ++--
fpicker/source/office/iodlg.cxx | 3 ++-
framework/source/loadenv/loadenv.cxx | 2 +-
include/o3tl/string_view.hxx | 21 ++++++++++++++++++++
include/oox/ole/vbahelper.hxx | 2 +-
include/oox/vml/vmlformatting.hxx | 2 +-
include/oox/vml/vmlshapecontext.hxx | 2 +-
io/source/connector/connector.cxx | 3 ++-
jvmfwk/source/fwkbase.cxx | 3 ++-
l10ntools/source/lngmerge.cxx | 6 ++++--
l10ntools/source/propmerge.cxx | 11 ++++++-----
oox/source/drawingml/customshapepresetdata.cxx | 6 +++---
oox/source/ole/vbahelper.cxx | 11 ++++++-----
oox/source/ole/vbamodule.cxx | 3 ++-
oox/source/vml/vmlformatting.cxx | 14 ++++++-------
oox/source/vml/vmlshapecontext.cxx | 10 +++++-----
oox/source/vml/vmltextboxcontext.cxx | 3 ++-
sal/rtl/bootstrap.cxx | 4 ++--
sc/source/ui/vba/vbarange.cxx | 3 ++-
sd/qa/unit/export-tests-ooxml2.cxx | 3 ++-
sd/source/filter/ppt/pptinanimations.cxx | 5 +++--
sfx2/source/sidebar/ResourceManager.cxx | 9 +++++----
stoc/source/security/permissions.cxx | 2 +-
svgio/source/svgreader/svgtextpathnode.cxx | 3 ++-
svl/source/numbers/zformat.cxx | 2 +-
svx/source/gallery2/galini.cxx | 6 +++---
svx/source/svdraw/svdobj.cxx | 3 ++-
svx/source/unodraw/unoprov.cxx | 7 ++++---
sw/qa/extras/fodfexport/fodfexport.cxx | 3 ++-
sw/qa/extras/htmlexport/htmlexport.cxx | 3 ++-
sw/qa/extras/odfexport/odfexport.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlencryption.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlexport10.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlexport11.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlexport12.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlexport13.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlexport14.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlexport15.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlexport16.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlexport17.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlexport8.cxx | 1 +
sw/qa/extras/ooxmlexport/ooxmlexport9.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlexport_template.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmllinks.cxx | 3 ++-
sw/qa/extras/ooxmlexport/ooxmlw14export.cxx | 3 ++-
sw/qa/extras/ww8export/ww8export.cxx | 5 +++--
sw/qa/extras/ww8export/ww8export2.cxx | 3 ++-
sw/qa/extras/ww8export/ww8export3.cxx | 3 ++-
sw/source/core/crsr/viscrs.cxx | 3 ++-
sw/source/core/fields/authfld.cxx | 3 ++-
sw/source/filter/html/htmlfldw.cxx | 3 ++-
sw/source/filter/ww8/ww8atr.cxx | 4 ++--
sw/source/filter/ww8/ww8par5.cxx | 2 +-
sw/source/ui/fldui/flddb.cxx | 2 +-
sw/source/ui/fldui/flddinf.cxx | 2 +-
sw/source/ui/fldui/flddok.cxx | 2 +-
sw/source/ui/fldui/fldfunc.cxx | 2 +-
sw/source/ui/fldui/fldref.cxx | 4 ++--
sw/source/ui/fldui/fldvar.cxx | 3 ++-
sw/source/ui/misc/bookmark.cxx | 3 ++-
sw/source/ui/misc/glossary.cxx | 2 +-
vbahelper/source/vbahelper/vbaapplicationbase.cxx | 3 ++-
vcl/qa/cppunit/GraphicFormatDetectorTest.cxx | 9 +++++----
vcl/unx/generic/print/genpspgraphics.cxx | 3 ++-
vcl/unx/generic/printer/jobdata.cxx | 2 +-
writerfilter/source/dmapper/DomainMapper_Impl.cxx | 2 +-
xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 11 ++++++-----
xmloff/source/draw/animationimport.cxx | 7 ++++---
xmloff/source/draw/eventimp.cxx | 5 +++--
.../source/script/XMLStarBasicContextFactory.cxx | 5 +++--
xmloff/source/style/xmlbahdl.cxx | 7 ++++---
xmloff/source/transform/EventOASISTContext.cxx | 7 +++----
87 files changed, 252 insertions(+), 163 deletions(-)

Upstream: cgit.freedesktop.org


  • Share