loplugin:stringadd improvement for appending numbers

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 3 May 2021 13:32 UTC

I was wrong, the Concat framework already optimised appending numbers by stack-allocating small buffers, so include them in the plugin

Change-Id: I922edbdde273c89abfe21d51c5d25dc01c97db25 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115037

c5a0b7af847a loplugin:stringadd improvement for appending numbers
basctl/source/basicide/baside2b.cxx | 4 +-
chart2/qa/extras/chart2dump/chart2dump.cxx | 2 +-
comphelper/source/misc/mimeconfighelper.cxx | 2 +-
compilerplugins/clang/stringadd.cxx | 16 +--
dbaccess/source/ui/querydesign/QueryDesignView.cxx | 2 +-
filter/source/svg/svgwriter.cxx | 20 ++--
lotuswordpro/source/filter/xfilter/xfdrawpath.cxx | 2 +-
.../source/filter/xfilter/xfdrawpolygon.cxx | 2 +-
.../source/filter/xfilter/xfdrawpolyline.cxx | 2 +-
oox/source/export/chartexport.cxx | 12 +--
oox/source/export/drawingml.cxx | 14 ++-
oox/source/export/vmlexport.cxx | 45 +++++----
sax/source/tools/converter.cxx | 4 +-
sc/source/core/tool/compiler.cxx | 4 +-
sc/source/filter/excel/xehelper.cxx | 2 +-
sc/source/filter/html/htmlexp.cxx | 11 +--
sc/source/filter/oox/formulabase.cxx | 4 +-
sc/source/filter/oox/querytablebuffer.cxx | 2 +-
sc/source/ui/dbgui/asciiopt.cxx | 12 +--
sc/source/ui/miscdlgs/dataproviderdlg.cxx | 2 +-
sc/source/ui/view/tabview.cxx | 12 +--
sd/source/filter/eppt/pptx-epptooxml.cxx | 109 +++++----------------
sd/source/filter/html/htmlex.cxx | 2 +-
sdext/source/pdfimport/pdfparse/pdfentries.cxx | 4 +-
sdext/source/pdfimport/tree/genericelements.cxx | 2 +-
sfx2/source/appl/newhelp.cxx | 8 +-
sfx2/source/control/unoctitm.cxx | 6 +-
sfx2/source/view/lokhelper.cxx | 6 +-
svl/source/passwordcontainer/passwordcontainer.cxx | 2 +-
svtools/source/svhtml/htmlout.cxx | 8 +-
sw/source/core/fields/cellfml.cxx | 6 +-
sw/source/filter/html/htmldrawwriter.cxx | 12 +--
sw/source/filter/html/htmlflywriter.cxx | 13 ++-
sw/source/filter/html/htmltabw.cxx | 14 +--
sw/source/filter/ww8/docxattributeoutput.cxx | 20 ++--
sw/source/filter/ww8/rtfattributeoutput.cxx | 10 +-
sw/source/filter/ww8/rtfsdrexport.cxx | 46 ++++-----
sw/source/uibase/config/modcfg.cxx | 2 +-
sw/source/uibase/uiview/pview.cxx | 7 +-
vcl/skia/gdiimpl.cxx | 11 +--
vcl/source/gdi/pdfobjectcopier.cxx | 2 +-
vcl/source/uitest/logger.cxx | 6 +-
vcl/source/window/printdlg.cxx | 6 +-
xmloff/source/draw/animationexport.cxx | 2 +-
xmloff/source/draw/shapeexport.cxx | 2 +-
xmloff/source/style/xmlbahdl.cxx | 7 +-
xmloff/source/xforms/xformsexport.cxx | 6 +-
xmlsecurity/source/framework/buffernode.cxx | 4 +-
.../source/framework/saxeventkeeperimpl.cxx | 4 +-
49 files changed, 205 insertions(+), 298 deletions(-)

Upstream: cgit.freedesktop.org


  • Share