loplugin:stringstatic also look for local statics

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 13 August 2020 06:16 UTC

Add some API to O*StringLiteral, to make it easier to use in some places that were using O*String

Change-Id: I1fb93bd47ac2065c9220d509aad3f4320326d99e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100270

3457da6abe0f loplugin:stringstatic also look for local statics
avmedia/source/vlc/vlcframegrabber.cxx | 4 +-
avmedia/source/vlc/vlcplayer.cxx | 4 +-
avmedia/source/vlc/vlcwindow.cxx | 4 +-
basctl/source/basicide/basidectrlr.cxx | 2 +-
basctl/source/basicide/localizationmgr.cxx | 6 +-
basic/source/sbx/sbxvar.cxx | 2 +-
chart2/source/controller/dialogs/DialogModel.cxx | 4 +-
chart2/source/controller/dialogs/tp_DataSource.cxx | 4 +-
chart2/source/model/main/ChartModel.cxx | 4 +-
chart2/source/view/main/ChartView.cxx | 4 +-
.../officeinstallationdirectories.cxx | 4 +-
comphelper/source/xml/ofopxmlhelper.cxx | 36 +++++------
compilerplugins/clang/stringstatic.cxx | 60 +++++++++++------
compilerplugins/clang/test/stringstatic.cxx | 24 +++++++
cui/source/options/treeopt.cxx | 2 +-
dbaccess/source/ui/dlg/dbfindex.cxx | 2 +-
desktop/qa/desktop_lib/test_desktop_lib.cxx | 6 +-
desktop/source/lib/init.cxx | 22 +++----
extensions/source/bibliography/bibmod.cxx | 21 +++---
extensions/source/bibliography/bibprop.hxx | 20 +++---
extensions/source/bibliography/datman.cxx | 6 +-
extensions/source/logging/csvformatter.cxx | 2 +-
filter/source/msfilter/msocximex.cxx | 2 +-
filter/source/msfilter/msvbahelper.cxx | 4 +-
framework/inc/jobs/jobconst.hxx | 6 +-
framework/source/fwi/jobs/jobconst.cxx | 6 +-
idlc/source/astdeclaration.cxx | 2 +-
include/rtl/string.hxx | 75 ++++++++++++++++------
include/xmloff/xmlimp.hxx | 4 +-
oox/source/core/xmlfilterbase.cxx | 4 +-
oox/source/crypto/Standard2007Engine.cxx | 2 +-
oox/source/vml/vmlinputstream.cxx | 4 +-
oox/source/vml/vmlshapecontext.cxx | 2 +-
package/source/zippackage/ZipPackage.cxx | 10 +--
sal/qa/osl/pipe/osl_Pipe.cxx | 9 ++-
sal/qa/rtl/digest/rtl_digest.cxx | 20 +++---
sax/qa/cppunit/xmlimport.cxx | 29 +++++----
sax/source/fastparser/legacyfastparser.cxx | 8 +--
sc/source/core/tool/compiler.cxx | 6 +-
sc/source/filter/excel/xiescher.cxx | 4 +-
.../ui/StatisticsDialogs/FourierAnalysisDialog.cxx | 2 +-
sc/source/ui/dbgui/scuiasciiopt.cxx | 6 +-
sc/source/ui/unoobj/PivotTableDataProvider.cxx | 6 +-
sc/source/ui/vba/excelvbahelper.cxx | 2 -
sc/source/ui/vba/vbaaxis.cxx | 8 +--
sc/source/ui/vba/vbachart.cxx | 32 ++++-----
sc/source/ui/vba/vbachartobject.cxx | 2 +-
sc/source/ui/view/formatsh.cxx | 2 +-
sd/inc/strmname.h | 8 +--
sd/source/ui/dlg/sdabstdlg.cxx | 2 +-
sd/source/ui/framework/tools/FrameworkHelper.cxx | 26 ++++----
sd/source/ui/inc/ToolBarManager.hxx | 30 ++++-----
sd/source/ui/inc/framework/FrameworkHelper.hxx | 26 ++++----
sd/source/ui/remotecontrol/ImagePreparer.cxx | 4 +-
sd/source/ui/view/ToolBarManager.cxx | 30 ++++-----
.../presenter/PresenterConfigurationAccess.cxx | 2 +-
.../presenter/PresenterConfigurationAccess.hxx | 2 +-
sdext/source/presenter/PresenterHelper.cxx | 12 ++--
sdext/source/presenter/PresenterHelper.hxx | 12 ++--
sdext/source/presenter/PresenterNotesView.cxx | 4 +-
sdext/source/presenter/PresenterPaneFactory.cxx | 14 ++--
sdext/source/presenter/PresenterPaneFactory.hxx | 14 ++--
sdext/source/presenter/PresenterViewFactory.cxx | 12 ++--
sdext/source/presenter/PresenterViewFactory.hxx | 12 ++--
sfx2/source/appl/sfxhelp.cxx | 2 +-
sfx2/source/dialog/filedlghelper.cxx | 14 ++--
sfx2/source/doc/objstor.cxx | 2 +-
solenv/CompilerTest_compilerplugins_clang.mk | 1 +
svgio/inc/svgtools.hxx | 8 +--
svgio/source/svgreader/svgtools.cxx | 8 +--
svl/source/numbers/zforscan.cxx | 2 +-
svl/source/numbers/zforscan.hxx | 4 +-
svx/qa/unit/classicshapes.cxx | 2 +-
svx/qa/unit/customshapes.cxx | 2 +-
svx/source/dialog/ClassificationDialog.cxx | 2 +-
svx/source/form/fmshimp.cxx | 4 +-
sw/inc/tox.hxx | 2 +-
sw/qa/core/test_ToxLinkProcessor.cxx | 32 ++++-----
sw/qa/extras/uiwriter/uiwriter.cxx | 12 ++--
sw/source/core/edit/edfcol.cxx | 30 ++++-----
sw/source/core/tox/tox.cxx | 2 +-
sw/source/core/txtnode/thints.cxx | 2 +-
sw/source/filter/ww8/docxexport.cxx | 2 +-
sw/source/ui/misc/bookmark.cxx | 6 +-
sw/source/uibase/dialog/swabstdlg.cxx | 2 +-
sw/source/uibase/inc/bookmark.hxx | 2 +-
test/source/sheet/xsheetoutline.cxx | 22 +++----
ucb/source/ucp/webdav-neon/DAVProperties.cxx | 49 +++++++-------
ucb/source/ucp/webdav-neon/DAVProperties.hxx | 24 +++----
vbahelper/source/msforms/vbamultipage.cxx | 2 +-
vbahelper/source/msforms/vbaprogressbar.cxx | 2 +-
vcl/qa/api/XGraphicTest.cxx | 2 +-
vcl/qa/cppunit/bitmaprender/BitmapRenderTest.cxx | 2 +-
vcl/qa/cppunit/jpeg/JpegReaderTest.cxx | 2 +-
vcl/qa/cppunit/jpeg/JpegWriterTest.cxx | 2 +-
.../widgetdraw/WidgetDefinitionReaderTest.cxx | 2 +-
vcl/unx/generic/printer/ppdparser.cxx | 2 +-
xmloff/source/core/xmlimp.cxx | 4 +-
xmlscript/source/xml_helper/xml_impctx.cxx | 4 +-
99 files changed, 527 insertions(+), 445 deletions(-)

Upstream: cgit.freedesktop.org


  • Share