[Libreoffice-commits] core.git: 57 commits - avmedia/source basctl/source basebmp/test basic/qa basic/source canvas/source chart2/source comphelper/source configmgr/qa connectivity/source cpputools/source cui/source dbaccess/source desktop/source dtrans/source editeng/qa editeng/source embeddedobj/source extensions/qa extensions/source filter/source forms/source fpicker/source framework/source i18npool/source idlc/source io/source linguistic/source oox/source reportdesign/source sal/qa sal/rtl sax/source sc/qa scripting/source sc/source sdext/source sd/qa sd/source sfx2/source shell/source slideshow/source sot/source starmath/source stoc/source svgio/source svl/source svtools/source svx/source svx/workben sw/qa sw/source test/source toolkit/source tools/qa tools/source ucbhelper/source ucb/source unotest/source unotools/source uui/source vcl/generic vcl/qa vcl/source vcl/unx vcl/workben xmlhelp/source xmloff/source xmlscript/source xmlsecurity/source
Stephan Bergmann
sbergman at redhat.com
Fri Nov 6 00:39:40 PST 2015
avmedia/source/viewer/mediawindow.cxx | 2
basctl/source/basicide/baside2b.cxx | 4
basctl/source/basicide/basidesh.cxx | 2
basctl/source/basicide/moduldl2.cxx | 2
basctl/source/dlged/dlged.cxx | 4
basctl/source/dlged/dlgedobj.cxx | 2
basebmp/test/polytest.cxx | 20 -
basic/qa/cppunit/basictest.hxx | 4
basic/source/basmgr/basicmanagerrepository.cxx | 4
basic/source/basmgr/basmgr.cxx | 38 +--
basic/source/classes/eventatt.cxx | 2
basic/source/classes/image.cxx | 4
basic/source/classes/sb.cxx | 18 -
basic/source/classes/sbunoobj.cxx | 8
basic/source/classes/sbxmod.cxx | 16 -
basic/source/comp/dim.cxx | 8
basic/source/runtime/methods.cxx | 4
basic/source/runtime/runtime.cxx | 4
basic/source/runtime/stdobj.cxx | 4
basic/source/runtime/stdobj1.cxx | 32 +-
basic/source/uno/namecont.cxx | 12
basic/source/uno/scriptcont.cxx | 6
canvas/source/factory/cf_service.cxx | 6
chart2/source/controller/itemsetwrapper/RegressionCurveItemConverter.cxx | 2
comphelper/source/misc/mimeconfighelper.cxx | 6
comphelper/source/xml/ofopxmlhelper.cxx | 8
configmgr/qa/unit/test.cxx | 26 +-
connectivity/source/commontools/TColumnsHelper.cxx | 2
connectivity/source/commontools/dbtools.cxx | 4
connectivity/source/commontools/dbtools2.cxx | 2
connectivity/source/commontools/predicateinput.cxx | 2
connectivity/source/drivers/evoab2/NStatement.cxx | 2
connectivity/source/drivers/mork/MResultSet.cxx | 4
connectivity/source/parse/sqliterator.cxx | 4
connectivity/source/parse/sqlnode.cxx | 8
cpputools/source/unoexe/unoexe.cxx | 6
cui/source/customize/acccfg.cxx | 4
cui/source/customize/cfg.cxx | 2
cui/source/dialogs/hlinettp.cxx | 2
cui/source/options/doclinkdialog.cxx | 2
cui/source/options/optinet2.cxx | 2
cui/source/options/optjava.cxx | 6
cui/source/options/optlingu.cxx | 2
cui/source/options/treeopt.cxx | 4
cui/source/options/webconninfo.cxx | 2
cui/source/tabpages/tpbitmap.cxx | 2
cui/source/tabpages/tpgradnt.cxx | 2
cui/source/tabpages/tphatch.cxx | 2
cui/source/tabpages/tplnedef.cxx | 2
dbaccess/source/core/api/KeySet.cxx | 2
dbaccess/source/core/dataaccess/databasecontext.cxx | 2
dbaccess/source/core/misc/DatabaseDataProvider.cxx | 2
dbaccess/source/filter/xml/xmlfilter.cxx | 4
dbaccess/source/ui/app/AppController.cxx | 8
dbaccess/source/ui/app/AppControllerGen.cxx | 4
dbaccess/source/ui/browser/dbloader.cxx | 2
dbaccess/source/ui/browser/genericcontroller.cxx | 2
dbaccess/source/ui/browser/unodatbr.cxx | 24 -
dbaccess/source/ui/control/FieldDescControl.cxx | 2
dbaccess/source/ui/control/opendoccontrols.cxx | 2
dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx | 2
dbaccess/source/ui/dlg/DbAdminImpl.cxx | 2
dbaccess/source/ui/dlg/dbfindex.cxx | 2
dbaccess/source/ui/dlg/dbwizsetup.cxx | 8
dbaccess/source/ui/dlg/generalpage.cxx | 6
dbaccess/source/ui/misc/UITools.cxx | 2
dbaccess/source/ui/misc/WTypeSelect.cxx | 2
dbaccess/source/ui/misc/databaseobjectview.cxx | 2
dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx | 2
dbaccess/source/ui/misc/linkeddocuments.cxx | 2
dbaccess/source/ui/querydesign/QueryDesignView.cxx | 6
dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 2
dbaccess/source/ui/querydesign/querycontroller.cxx | 16 -
dbaccess/source/ui/tabledesign/TableController.cxx | 4
dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx | 4
desktop/source/app/app.cxx | 28 +-
desktop/source/app/sofficemain.cxx | 2
desktop/source/deployment/manager/dp_informationprovider.cxx | 6
dtrans/source/cnttype/mcnttype.cxx | 14 -
editeng/qa/lookuptree/lookuptree_test.cxx | 32 +-
editeng/source/editeng/eehtml.cxx | 2
editeng/source/misc/acorrcfg.cxx | 2
editeng/source/misc/svxacorr.cxx | 10
embeddedobj/source/commonembedding/embedobj.cxx | 4
embeddedobj/source/commonembedding/persistence.cxx | 8
embeddedobj/source/general/docholder.cxx | 2
embeddedobj/source/general/dummyobject.cxx | 4
embeddedobj/source/msole/olepersist.cxx | 8
extensions/qa/update/test_update.cxx | 16 -
extensions/source/abpilot/abpfinalpage.cxx | 2
extensions/source/abpilot/unodialogabp.cxx | 2
extensions/source/dbpilots/commonpagesdbp.cxx | 2
extensions/source/logging/logger.cxx | 2
extensions/source/plugin/base/manager.cxx | 4
extensions/source/propctrlr/browserline.cxx | 2
extensions/source/propctrlr/formcomponenthandler.cxx | 2
extensions/source/propctrlr/inspectormodelbase.cxx | 8
extensions/source/propctrlr/usercontrol.cxx | 2
extensions/source/scanner/sanedlg.cxx | 2
filter/source/flash/swfwriter1.cxx | 2
filter/source/msfilter/escherex.cxx | 116 ++++-----
filter/source/msfilter/msdffimp.cxx | 12
filter/source/msfilter/msoleexp.cxx | 6
filter/source/msfilter/mstoolbar.cxx | 2
filter/source/pdf/impdialog.cxx | 2
filter/source/svg/impsvgdialog.cxx | 12
filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx | 10
filter/source/xsltdialog/typedetectionexport.cxx | 22 -
filter/source/xsltdialog/xmlfilterjar.cxx | 4
forms/source/component/DatabaseForm.cxx | 2
forms/source/component/scrollbar.cxx | 4
forms/source/component/spinbutton.cxx | 4
fpicker/source/office/PlacesListBox.cxx | 4
fpicker/source/office/RemoteFilesDialog.cxx | 4
fpicker/source/office/commonpicker.cxx | 4
fpicker/source/office/iodlg.cxx | 8
framework/source/accelerators/documentacceleratorconfiguration.cxx | 2
framework/source/classes/fwktabwindow.cxx | 2
framework/source/fwe/classes/addonmenu.cxx | 4
framework/source/fwe/xml/menudocumenthandler.cxx | 22 -
framework/source/fwe/xml/statusbardocumenthandler.cxx | 22 -
framework/source/fwe/xml/toolboxdocumenthandler.cxx | 12
framework/source/loadenv/loadenv.cxx | 16 -
framework/source/services/autorecovery.cxx | 54 ++--
framework/source/services/substitutepathvars.cxx | 2
framework/source/services/taskcreatorsrv.cxx | 16 -
framework/source/uielement/comboboxtoolbarcontroller.cxx | 2
framework/source/uielement/complextoolbarcontroller.cxx | 6
framework/source/uielement/dropdownboxtoolbarcontroller.cxx | 2
framework/source/uielement/imagebuttontoolbarcontroller.cxx | 2
framework/source/uielement/recentfilesmenucontroller.cxx | 4
framework/source/uielement/saveasmenucontroller.cxx | 2
framework/source/uielement/togglebuttontoolbarcontroller.cxx | 4
framework/source/uielement/toolbarmanager.cxx | 4
framework/source/uielement/toolbarsmenucontroller.cxx | 8
framework/source/xml/acceleratorconfigurationwriter.cxx | 8
framework/source/xml/imagesdocumenthandler.cxx | 12
i18npool/source/breakiterator/breakiteratorImpl.cxx | 2
i18npool/source/calendar/calendar_gregorian.cxx | 2
i18npool/source/characterclassification/characterclassificationImpl.cxx | 2
i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx | 4
i18npool/source/localedata/LocaleNode.cxx | 10
i18npool/source/localedata/localedata.cxx | 2
i18npool/source/transliteration/transliterationImpl.cxx | 4
idlc/source/astdump.cxx | 4
io/source/acceptor/acceptor.cxx | 10
linguistic/source/convdiclist.cxx | 2
linguistic/source/lngsvcmgr.cxx | 8
oox/source/core/fragmenthandler2.cxx | 2
oox/source/export/chartexport.cxx | 6
oox/source/ole/olehelper.cxx | 12
reportdesign/source/core/api/ReportDefinition.cxx | 12
reportdesign/source/core/sdr/ReportDrawPage.cxx | 2
reportdesign/source/filter/xml/xmlExport.cxx | 4
reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx | 4
reportdesign/source/filter/xml/xmlFixedContent.cxx | 2
reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx | 2
reportdesign/source/filter/xml/xmlfilter.cxx | 6
reportdesign/source/ui/dlg/Condition.cxx | 2
reportdesign/source/ui/dlg/GroupExchange.cxx | 2
reportdesign/source/ui/inspection/GeometryHandler.cxx | 16 -
reportdesign/source/ui/misc/UITools.cxx | 6
reportdesign/source/ui/report/ReportController.cxx | 4
reportdesign/source/ui/report/dlgedclip.cxx | 2
sal/qa/osl/file/osl_File.cxx | 20 -
sal/rtl/bootstrap.cxx | 4
sax/source/fastparser/fastparser.cxx | 2
sc/qa/extras/new_cond_format.cxx | 2
sc/qa/extras/scannotationobj.cxx | 2
sc/qa/extras/scannotationsobj.cxx | 2
sc/qa/extras/sccondformats.cxx | 4
sc/qa/extras/scdatapilotfieldobj.cxx | 2
sc/qa/extras/scdatapilottableobj.cxx | 2
sc/qa/extras/scmodelobj.cxx | 2
sc/qa/extras/scnamedrangeobj.cxx | 4
sc/qa/extras/scnamedrangesobj.cxx | 2
sc/qa/extras/scoutlineobj.cxx | 2
sc/qa/extras/scstyleloaderobj.cxx | 2
sc/qa/extras/sctablesheetobj.cxx | 2
sc/qa/extras/sctablesheetsobj.cxx | 2
sc/qa/unit/bugfix-test.cxx | 8
sc/qa/unit/filters-test.cxx | 10
sc/qa/unit/helper/qahelper.cxx | 4
sc/qa/unit/subsequent_export-test.cxx | 2
sc/qa/unit/subsequent_filters-test.cxx | 42 +--
sc/qa/unit/ucalc.cxx | 2
sc/qa/unit/ucalc_formula.cxx | 126 +++++-----
sc/qa/unit/ucalc_pivottable.cxx | 84 +++---
sc/source/core/data/bcaslot.cxx | 2
sc/source/core/data/dpobject.cxx | 60 ++--
sc/source/core/data/dpoutput.cxx | 34 +-
sc/source/core/data/dpsave.cxx | 18 -
sc/source/core/data/drwlayer.cxx | 10
sc/source/core/data/global.cxx | 2
sc/source/core/opencl/formulagroupcl.cxx | 126 +++-------
sc/source/core/tool/autoform.cxx | 2
sc/source/core/tool/charthelper.cxx | 2
sc/source/core/tool/interpr1.cxx | 4
sc/source/filter/excel/excimp8.cxx | 2
sc/source/filter/excel/expop2.cxx | 2
sc/source/filter/excel/xecontent.cxx | 4
sc/source/filter/excel/xeescher.cxx | 2
sc/source/filter/excel/xestyle.cxx | 4
sc/source/filter/oox/condformatbuffer.cxx | 2
sc/source/filter/oox/formulabase.cxx | 2
sc/source/filter/orcus/orcusfiltersimpl.cxx | 2
sc/source/filter/xcl97/XclExpChangeTrack.cxx | 8
sc/source/filter/xml/xmlexprt.cxx | 6
sc/source/filter/xml/xmlstyli.cxx | 4
sc/source/filter/xml/xmlwrap.cxx | 14 -
sc/source/ui/Accessibility/AccessibleEditObject.cxx | 4
sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.cxx | 2
sc/source/ui/app/inputwin.cxx | 2
sc/source/ui/app/scdll.cxx | 2
sc/source/ui/app/scmod.cxx | 2
sc/source/ui/cctrl/checklistmenu.cxx | 2
sc/source/ui/cctrl/tbzoomsliderctrl.cxx | 4
sc/source/ui/condformat/condformatdlg.cxx | 14 -
sc/source/ui/condformat/condformatdlgentry.cxx | 2
sc/source/ui/docshell/docsh.cxx | 60 ++--
sc/source/ui/docshell/docsh8.cxx | 2
sc/source/ui/docshell/externalrefmgr.cxx | 4
sc/source/ui/docshell/impex.cxx | 2
sc/source/ui/drawfunc/chartsh.cxx | 2
sc/source/ui/drawfunc/drawsh2.cxx | 2
sc/source/ui/drawfunc/drformsh.cxx | 2
sc/source/ui/drawfunc/drtxtob.cxx | 2
sc/source/ui/drawfunc/graphsh.cxx | 2
sc/source/ui/drawfunc/oleobjsh.cxx | 2
sc/source/ui/sidebar/AlignmentPropertyPanel.cxx | 4
sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx | 6
sc/source/ui/unoobj/celllistsource.cxx | 2
sc/source/ui/unoobj/cellsuno.cxx | 2
sc/source/ui/unoobj/cellvaluebinding.cxx | 2
sc/source/ui/unoobj/chartuno.cxx | 2
sc/source/ui/unoobj/dapiuno.cxx | 4
sc/source/ui/vba/vbaapplication.cxx | 12
sc/source/ui/vba/vbachart.cxx | 16 -
sc/source/ui/vba/vbachartobjects.cxx | 2
sc/source/ui/vba/vbacondition.cxx | 2
sc/source/ui/vba/vbaformat.cxx | 6
sc/source/ui/vba/vbaformatconditions.cxx | 2
sc/source/ui/vba/vbarange.cxx | 4
sc/source/ui/vba/vbastyle.cxx | 2
sc/source/ui/view/auditsh.cxx | 2
sc/source/ui/view/cellsh.cxx | 2
sc/source/ui/view/editsh.cxx | 2
sc/source/ui/view/formatsh.cxx | 2
sc/source/ui/view/hdrcont.cxx | 4
sc/source/ui/view/output2.cxx | 2
sc/source/ui/view/pgbrksh.cxx | 2
sc/source/ui/view/pivotsh.cxx | 2
sc/source/ui/view/prevwsh.cxx | 2
sc/source/ui/view/printfun.cxx | 2
sc/source/ui/view/tabvwsh4.cxx | 2
sc/source/ui/view/viewfun2.cxx | 2
sc/source/ui/view/viewfun3.cxx | 8
sc/source/ui/view/viewfunc.cxx | 2
scripting/source/dlgprov/dlgevtatt.cxx | 2
scripting/source/stringresource/stringresource.cxx | 4
scripting/source/vbaevents/eventhelper.cxx | 4
sd/qa/unit/filters-test.cxx | 20 -
sd/source/core/sdpage.cxx | 6
sd/source/filter/eppt/eppt.cxx | 72 ++---
sd/source/filter/eppt/epptso.cxx | 82 +++---
sd/source/filter/eppt/pptx-epptbase.cxx | 32 +-
sd/source/filter/eppt/pptx-epptooxml.cxx | 2
sd/source/filter/eppt/pptx-stylesheet.cxx | 4
sd/source/filter/eppt/pptx-text.cxx | 76 +++---
sd/source/filter/html/htmlex.cxx | 2
sd/source/filter/html/pubdlg.cxx | 16 -
sd/source/filter/ppt/pptin.cxx | 6
sd/source/filter/sdpptwrp.cxx | 4
sd/source/ui/app/sdmod.cxx | 4
sd/source/ui/dlg/PaneShells.cxx | 4
sd/source/ui/dlg/filedlg.cxx | 12
sd/source/ui/dlg/morphdlg.cxx | 4
sd/source/ui/dlg/sdtreelb.cxx | 3
sd/source/ui/dlg/tpaction.cxx | 2
sd/source/ui/dlg/vectdlg.cxx | 4
sd/source/ui/func/fuinsert.cxx | 6
sd/source/ui/presenter/PresenterTextView.cxx | 2
sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx | 2
sd/source/ui/view/GraphicObjectBar.cxx | 2
sd/source/ui/view/drtxtob.cxx | 2
sd/source/ui/view/outlnvsh.cxx | 2
sd/source/ui/view/outlview.cxx | 2
sdext/source/minimizer/informationdialog.cxx | 8
sdext/source/minimizer/optimizerdialog.cxx | 4
sdext/source/minimizer/optimizerdialogcontrols.cxx | 4
sdext/source/minimizer/unodialog.cxx | 16 -
sdext/source/pdfimport/tree/pdfiprocessor.cxx | 4
sdext/source/presenter/PresenterScreen.cxx | 8
sfx2/source/appl/app.cxx | 2
sfx2/source/appl/appserv.cxx | 4
sfx2/source/appl/fileobj.cxx | 2
sfx2/source/appl/linkmgr2.cxx | 2
sfx2/source/appl/lnkbase2.cxx | 2
sfx2/source/appl/newhelp.cxx | 2
sfx2/source/appl/shutdownicon.cxx | 4
sfx2/source/appl/shutdowniconunx.cxx | 2
sfx2/source/bastyp/fltfnc.cxx | 2
sfx2/source/control/thumbnailviewitem.cxx | 2
sfx2/source/dialog/dinfdlg.cxx | 2
sfx2/source/dialog/filtergrouping.cxx | 2
sfx2/source/dialog/mailmodel.cxx | 12
sfx2/source/doc/DocumentMetadataAccess.cxx | 2
sfx2/source/doc/SfxDocumentMetaData.cxx | 2
sfx2/source/doc/docfile.cxx | 30 +-
sfx2/source/doc/docfilt.cxx | 12
sfx2/source/doc/docinf.cxx | 12
sfx2/source/doc/doctemplates.cxx | 18 -
sfx2/source/doc/doctemplateslocal.cxx | 4
sfx2/source/doc/guisaveas.cxx | 26 +-
sfx2/source/doc/objmisc.cxx | 4
sfx2/source/doc/objstor.cxx | 110 ++++----
sfx2/source/doc/sfxbasemodel.cxx | 24 -
sfx2/source/doc/templatedlg.cxx | 2
sfx2/source/inet/inettbc.cxx | 2
sfx2/source/menu/mnumgr.cxx | 2
sfx2/source/view/viewprn.cxx | 10
sfx2/source/view/viewsh.cxx | 10
shell/source/backends/desktopbe/desktopbackend.cxx | 9
slideshow/source/engine/animationnodes/animationtransformnode.cxx | 6
slideshow/source/engine/rehearsetimingsactivity.cxx | 2
slideshow/source/engine/shapes/shapeimporter.cxx | 4
slideshow/source/engine/shapes/viewmediashape.cxx | 10
slideshow/source/engine/slideshowimpl.cxx | 6
slideshow/source/engine/transitions/shapetransitionfactory.cxx | 2
sot/source/sdstor/stgdir.cxx | 2
sot/source/sdstor/ucbstorage.cxx | 14 -
starmath/source/document.cxx | 4
starmath/source/edit.cxx | 2
starmath/source/eqnolefilehdr.cxx | 2
starmath/source/mathtype.cxx | 10
starmath/source/smdll.cxx | 2
starmath/source/smmod.cxx | 2
starmath/source/symbol.cxx | 4
starmath/source/unofilter.cxx | 2
starmath/source/view.cxx | 2
stoc/source/javavm/javavm.cxx | 2
svgio/source/svgreader/svgcirclenode.cxx | 2
svgio/source/svgreader/svgellipsenode.cxx | 2
svgio/source/svgreader/svggnode.cxx | 2
svgio/source/svgreader/svgimagenode.cxx | 2
svgio/source/svgreader/svglinenode.cxx | 2
svgio/source/svgreader/svgmarkernode.cxx | 2
svgio/source/svgreader/svgpathnode.cxx | 2
svgio/source/svgreader/svgpatternnode.cxx | 2
svgio/source/svgreader/svgrectnode.cxx | 2
svgio/source/svgreader/svgsvgnode.cxx | 2
svgio/source/svgreader/svgtextnode.cxx | 2
svgio/source/svgreader/svgtools.cxx | 2
svgio/source/svgreader/svgtspannode.cxx | 2
svgio/source/svgreader/svgusenode.cxx | 2
svl/source/misc/documentlockfile.cxx | 4
svl/source/misc/fstathelper.cxx | 2
svl/source/misc/sharecontrolfile.cxx | 2
svl/source/passwordcontainer/passwordcontainer.cxx | 8
svtools/source/config/colorcfg.cxx | 2
svtools/source/config/extcolorcfg.cxx | 4
svtools/source/contnr/DocumentInfoPreview.cxx | 2
svtools/source/contnr/fileview.cxx | 2
svtools/source/control/ctrlbox.cxx | 6
svtools/source/control/ctrltool.cxx | 2
svtools/source/control/roadmap.cxx | 6
svtools/source/control/ruler.cxx | 2
svtools/source/dialogs/addresstemplate.cxx | 4
svtools/source/filter/exportdialog.cxx | 82 +++---
svtools/source/uno/addrtempuno.cxx | 2
svtools/source/uno/genericunodialog.cxx | 4
svtools/source/uno/toolboxcontroller.cxx | 4
svx/source/dialog/_contdlg.cxx | 4
svx/source/dialog/compressgraphicdialog.cxx | 4
svx/source/dialog/imapdlg.cxx | 4
svx/source/dialog/rubydialog.cxx | 2
svx/source/dialog/swframeexample.cxx | 4
svx/source/fmcomp/dbaexchange.cxx | 4
svx/source/fmcomp/dbaobjectex.cxx | 4
svx/source/fmcomp/xmlexchg.cxx | 2
svx/source/form/databaselocationinput.cxx | 2
svx/source/form/datanavi.cxx | 2
svx/source/form/filtnav.cxx | 2
svx/source/form/fmexch.cxx | 6
svx/source/form/fmshell.cxx | 4
svx/source/form/tbxform.cxx | 2
svx/source/form/xfm_addcondition.cxx | 8
svx/source/gallery2/galmisc.cxx | 6
svx/source/gallery2/galtheme.cxx | 4
svx/source/mnuctrls/clipboardctl.cxx | 4
svx/source/sidebar/area/AreaPropertyPanelBase.cxx | 8
svx/source/sidebar/graphic/GraphicPropertyPanel.cxx | 10
svx/source/sidebar/line/LinePropertyPanelBase.cxx | 12
svx/source/sidebar/nbdtmg.cxx | 18 -
svx/source/stbctrls/modctrl.cxx | 2
svx/source/stbctrls/pszctrl.cxx | 8
svx/source/svdraw/svdibrow.cxx | 22 -
svx/source/tbxctrls/fillctrl.cxx | 16 -
svx/source/tbxctrls/fontworkgallery.cxx | 2
svx/source/tbxctrls/formatpaintbrushctrl.cxx | 2
svx/source/tbxctrls/grafctrl.cxx | 4
svx/source/tbxctrls/itemwin.cxx | 8
svx/source/tbxctrls/lboxctrl.cxx | 4
svx/source/tbxctrls/linectrl.cxx | 10
svx/source/tbxctrls/tbcontrl.cxx | 44 +--
svx/source/tbxctrls/tbunocontroller.cxx | 2
svx/source/tbxctrls/verttexttbxctrl.cxx | 4
svx/source/unodraw/tableshape.cxx | 2
svx/source/unodraw/unoprov.cxx | 2
svx/source/unodraw/unoshap4.cxx | 14 -
svx/source/xml/xmlxtimp.cxx | 12
svx/workben/pixelctl.cxx | 2
sw/qa/core/filters-test.cxx | 34 +-
sw/qa/core/macros-test.cxx | 12
sw/qa/core/uwriter.cxx | 44 +--
sw/qa/extras/rtfimport/rtfimport.cxx | 2
sw/qa/extras/uiwriter/uiwriter.cxx | 64 ++---
sw/source/core/access/acccell.cxx | 10
sw/source/core/bastyp/SwSmartTagMgr.cxx | 2
sw/source/core/crsr/bookmrk.cxx | 6
sw/source/core/doc/docdraw.cxx | 2
sw/source/core/doc/docglbl.cxx | 4
sw/source/core/doc/notxtfrm.cxx | 2
sw/source/core/draw/drawdoc.cxx | 2
sw/source/core/edit/edglss.cxx | 2
sw/source/core/frmedt/fews.cxx | 2
sw/source/core/layout/newfrm.cxx | 2
sw/source/core/layout/paintfrm.cxx | 2
sw/source/core/swg/SwXMLSectionList.cxx | 4
sw/source/core/text/EnhancedPDFExportHelper.cxx | 8
sw/source/core/txtnode/fntcap.cxx | 2
sw/source/core/undo/unins.cxx | 2
sw/source/filter/basflt/fltini.cxx | 2
sw/source/filter/basflt/iodetect.cxx | 6
sw/source/filter/html/htmlcss1.cxx | 2
sw/source/filter/ww8/docxattributeoutput.cxx | 4
sw/source/filter/ww8/docxsdrexport.cxx | 4
sw/source/filter/ww8/rtfattributeoutput.cxx | 2
sw/source/filter/ww8/wrtw8sty.cxx | 2
sw/source/filter/ww8/wrtww8.cxx | 2
sw/source/filter/ww8/ww8par.cxx | 4
sw/source/filter/ww8/ww8par4.cxx | 8
sw/source/filter/ww8/ww8par5.cxx | 2
sw/source/ui/dbui/mmoutputpage.cxx | 10
sw/source/ui/envelp/labprt.cxx | 2
sw/source/ui/fldui/fldtdlg.cxx | 3
sw/source/ui/vba/vbaheaderfooter.cxx | 2
sw/source/ui/vba/vbalisthelper.cxx | 50 +--
sw/source/ui/vba/vbalistlevel.cxx | 38 +--
sw/source/ui/vba/vbawrapformat.cxx | 16 -
sw/source/uibase/app/docsh.cxx | 12
sw/source/uibase/app/docsh2.cxx | 10
sw/source/uibase/app/docshini.cxx | 4
sw/source/uibase/app/swdll.cxx | 6
sw/source/uibase/app/swmodule.cxx | 2
sw/source/uibase/config/viewopt.cxx | 2
sw/source/uibase/dbui/dbmgr.cxx | 2
sw/source/uibase/docvw/AnnotationWin.cxx | 4
sw/source/uibase/shells/basesh.cxx | 2
sw/source/uibase/shells/beziersh.cxx | 2
sw/source/uibase/shells/drawsh.cxx | 2
sw/source/uibase/shells/drformsh.cxx | 2
sw/source/uibase/shells/drwtxtsh.cxx | 2
sw/source/uibase/shells/frmsh.cxx | 2
sw/source/uibase/shells/grfsh.cxx | 2
sw/source/uibase/shells/listsh.cxx | 2
sw/source/uibase/shells/mediash.cxx | 2
sw/source/uibase/shells/navsh.cxx | 2
sw/source/uibase/shells/olesh.cxx | 2
sw/source/uibase/shells/tabsh.cxx | 2
sw/source/uibase/shells/textsh.cxx | 2
sw/source/uibase/uiview/pview.cxx | 2
sw/source/uibase/uiview/srcview.cxx | 4
sw/source/uibase/uiview/view.cxx | 2
sw/source/uibase/uno/unomailmerge.cxx | 2
sw/source/uibase/uno/unomod.cxx | 2
sw/source/uibase/web/wgrfsh.cxx | 2
sw/source/uibase/web/wlistsh.cxx | 2
sw/source/uibase/web/wolesh.cxx | 2
sw/source/uibase/web/wtabsh.cxx | 2
sw/source/uibase/wrtsh/wrtsh2.cxx | 2
test/source/sheet/xdatabaserange.cxx | 12
toolkit/source/awt/vclxtoolkit.cxx | 2
toolkit/source/controls/roadmapentry.cxx | 8
tools/qa/cppunit/test_urlobj.cxx | 8
tools/source/inet/inetmsg.cxx | 4
ucb/source/core/FileAccess.cxx | 6
ucb/source/core/ucbcmds.cxx | 40 +--
ucb/source/ucp/cmis/cmis_content.cxx | 2
ucb/source/ucp/cmis/cmis_repo_content.cxx | 2
ucb/source/ucp/ext/ucpext_content.cxx | 2
ucb/source/ucp/file/filglob.cxx | 20 -
ucb/source/ucp/ftp/ftpcontentprovider.cxx | 2
ucb/source/ucp/hierarchy/hierarchycontent.cxx | 14 -
ucb/source/ucp/hierarchy/hierarchyuri.cxx | 2
ucb/source/ucp/package/pkgcontent.cxx | 21 -
ucb/source/ucp/package/pkguri.cxx | 4
ucb/source/ucp/tdoc/tdoc_content.cxx | 26 +-
ucb/source/ucp/webdav-neon/webdavcontent.cxx | 34 +-
ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx | 4
ucb/source/ucp/webdav-neon/webdavprovider.cxx | 8
ucbhelper/source/client/content.cxx | 4
unotest/source/cpp/officeconnection.cxx | 4
unotools/source/config/configmgr.cxx | 32 +-
unotools/source/config/lingucfg.cxx | 2
unotools/source/i18n/transliterationwrapper.cxx | 6
unotools/source/ucbhelper/ucbhelper.cxx | 8
unotools/source/ucbhelper/ucbstreamhelper.cxx | 4
uui/source/iahndl-filter.cxx | 4
uui/source/iahndl.cxx | 2
vcl/generic/print/printerjob.cxx | 8
vcl/qa/cppunit/graphicfilter/filters-test.cxx | 6
vcl/source/app/settings.cxx | 10
vcl/source/app/svapp.cxx | 4
vcl/source/app/svdata.cxx | 2
vcl/source/edit/texteng.cxx | 4
vcl/source/filter/GraphicNativeTransform.cxx | 8
vcl/source/filter/sgvmain.cxx | 2
vcl/source/gdi/impgraph.cxx | 6
vcl/source/gdi/impimagetree.cxx | 2
vcl/source/gdi/pdfwriter_impl.cxx | 6
vcl/source/gdi/print3.cxx | 40 +--
vcl/source/outdev/font.cxx | 2
vcl/source/uipreviewer/previewer.cxx | 2
vcl/source/window/printdlg.cxx | 70 ++---
vcl/source/window/settings.cxx | 2
vcl/source/window/toolbox2.cxx | 4
vcl/source/window/window.cxx | 2
vcl/unx/generic/app/i18n_status.cxx | 2
vcl/unx/generic/app/wmadaptor.cxx | 4
vcl/unx/generic/dtrans/X11_clipboard.cxx | 6
vcl/unx/generic/dtrans/X11_selection.cxx | 50 +--
vcl/unx/generic/dtrans/X11_transferable.cxx | 4
vcl/unx/generic/printer/cupsmgr.cxx | 2
vcl/unx/generic/printer/printerinfomanager.cxx | 6
vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx | 2
vcl/unx/gtk/fpicker/SalGtkPicker.cxx | 2
vcl/unx/gtk/gdi/salprn-gtk.cxx | 8
vcl/workben/icontest.cxx | 2
vcl/workben/mtfdemo.cxx | 2
vcl/workben/outdevgrind.cxx | 2
vcl/workben/svdem.cxx | 2
vcl/workben/svpclient.cxx | 6
vcl/workben/svptest.cxx | 2
xmlhelp/source/cxxhelp/provider/databases.cxx | 8
xmlhelp/source/treeview/tvread.cxx | 2
xmloff/source/chart/SchXMLAxisContext.cxx | 2
xmloff/source/chart/SchXMLChartContext.cxx | 10
xmloff/source/chart/SchXMLExport.cxx | 16 -
xmloff/source/chart/SchXMLPlotAreaContext.cxx | 6
xmloff/source/chart/SchXMLSeries2Context.cxx | 4
xmloff/source/chart/SchXMLTableContext.cxx | 2
xmloff/source/chart/XMLChartStyleContext.cxx | 4
xmloff/source/core/xmlimp.cxx | 64 ++---
xmloff/source/draw/shapeexport.cxx | 10
xmloff/source/forms/elementexport.cxx | 2
xmloff/source/forms/elementimport.cxx | 4
xmloff/source/text/txtfldi.cxx | 2
xmloff/source/text/txtparai.cxx | 10
xmloff/source/text/txtvfldi.cxx | 6
xmloff/source/transform/EventOASISTContext.cxx | 4
xmlscript/source/xmldlg_imexp/xmldlg_export.cxx | 6
xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx | 2
xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 24 -
xmlscript/source/xmllib_imexp/xmllib_export.cxx | 2
xmlsecurity/source/helper/xmlsignaturehelper.cxx | 2
xmlsecurity/source/helper/xsecctl.cxx | 32 +-
567 files changed, 2242 insertions(+), 2294 deletions(-)
New commits:
commit 5a2704f374a619432da0792152cbef4a3b173529
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 6 09:38:53 2015 +0100
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I8e9ac508a3bb98e051f30127c9567a1d4831a68f
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
index 7827155..a916040 100644
--- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
@@ -161,7 +161,7 @@ uno::Reference<xml::sax::XWriter> XMLSignatureHelper::CreateDocumentHandlerWithH
sNamespace = NS_DOCUMENTSIGNATURES_ODF_1_2;
pAttributeList->AddAttribute(
- OUString(ATTR_XMLNS),
+ ATTR_XMLNS,
sNamespace);
xSaxWriter->startDocument();
diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx
index 666b67b..c025632 100644
--- a/xmlsecurity/source/helper/xsecctl.cxx
+++ b/xmlsecurity/source/helper/xsecctl.cxx
@@ -734,13 +734,13 @@ void XSecController::exportSignature(
*/
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
- OUString(ATTR_XMLNS),
- OUString(NS_XMLDSIG));
+ ATTR_XMLNS,
+ NS_XMLDSIG);
if (!signatureInfo.ouSignatureId.isEmpty())
{
pAttributeList->AddAttribute(
- OUString(ATTR_ID),
+ ATTR_ID,
OUString(signatureInfo.ouSignatureId));
}
@@ -754,16 +754,16 @@ void XSecController::exportSignature(
/* Write CanonicalizationMethod element */
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
- OUString(ATTR_ALGORITHM),
- OUString(ALGO_C14N));
+ ATTR_ALGORITHM,
+ ALGO_C14N);
xDocumentHandler->startElement( tag_CanonicalizationMethod, cssu::Reference< cssxs::XAttributeList > (pAttributeList) );
xDocumentHandler->endElement( tag_CanonicalizationMethod );
/* Write SignatureMethod element */
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
- OUString(ATTR_ALGORITHM),
- OUString(ALGO_RSASHA1));
+ ATTR_ALGORITHM,
+ ALGO_RSASHA1);
xDocumentHandler->startElement( tag_SignatureMethod, cssu::Reference< cssxs::XAttributeList > (pAttributeList) );
xDocumentHandler->endElement( tag_SignatureMethod );
@@ -782,7 +782,7 @@ void XSecController::exportSignature(
*/
{
pAttributeList->AddAttribute(
- OUString(ATTR_URI),
+ ATTR_URI,
refInfor.ouURI);
}
else
@@ -791,7 +791,7 @@ void XSecController::exportSignature(
*/
{
pAttributeList->AddAttribute(
- OUString(ATTR_URI),
+ ATTR_URI,
CHAR_FRAGMENT+refInfor.ouURI);
}
@@ -809,8 +809,8 @@ void XSecController::exportSignature(
{
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
- OUString(ATTR_ALGORITHM),
- OUString(ALGO_C14N));
+ ATTR_ALGORITHM,
+ ALGO_C14N);
xDocumentHandler->startElement(
tag_Transform,
cssu::Reference< cssxs::XAttributeList > (pAttributeList) );
@@ -822,8 +822,8 @@ void XSecController::exportSignature(
/* Write DigestMethod element */
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
- OUString(ATTR_ALGORITHM),
- OUString(ALGO_XMLDSIGSHA1));
+ ATTR_ALGORITHM,
+ ALGO_XMLDSIGSHA1);
xDocumentHandler->startElement(
tag_DigestMethod,
cssu::Reference< cssxs::XAttributeList > (pAttributeList) );
@@ -906,10 +906,10 @@ void XSecController::exportSignature(
/* Write SignatureProperty element */
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
- OUString(ATTR_ID),
+ ATTR_ID,
signatureInfo.ouPropertyId);
pAttributeList->AddAttribute(
- OUString(ATTR_TARGET),
+ ATTR_TARGET,
CHAR_FRAGMENT+signatureInfo.ouSignatureId);
xDocumentHandler->startElement(
tag_SignatureProperty,
@@ -920,7 +920,7 @@ void XSecController::exportSignature(
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
ATTR_XMLNS ":" NSTAG_DC,
- OUString(NS_DC));
+ NS_DC);
xDocumentHandler->startElement(
NSTAG_DC ":" + tag_Date,
commit 28d63935b222c3c3ce00f2f7649e33fc0916fdfb
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 6 09:38:49 2015 +0100
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I8aedb690380d407dcbc290a44d21afa6604b8f95
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
index 936dd48..9ad7272 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
@@ -1026,13 +1026,13 @@ void ElementDescriptor::readImageScaleModeAttr( OUString const & rPropName, OUSt
switch(nImageScaleMode)
{
case ::awt::ImageScaleMode::NONE:
- addAttribute( rAttrName, OUString( "none") );
+ addAttribute( rAttrName, "none" );
break;
case ::awt::ImageScaleMode::ISOTROPIC:
- addAttribute( rAttrName, OUString( "isotropic") );
+ addAttribute( rAttrName, "isotropic" );
break;
case ::awt::ImageScaleMode::ANISOTROPIC:
- addAttribute( rAttrName, OUString( "anisotropic" ) );
+ addAttribute( rAttrName, "anisotropic" );
break;
default:
OSL_ENSURE( false, "### illegal image scale mode value.");
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
index 424d0ab..7ca5ed4 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
@@ -208,7 +208,7 @@ void Page::endElement()
}
ctx.importDefaults( 0, 0, _xAttributes ); // inherited from BulletinBoardElement
- ctx.importStringProperty( OUString( "Title" ), OUString( "title" ), _xAttributes );
+ ctx.importStringProperty( "Title", "title", _xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
// vector< event elements > holding event elements holding this (via _pParent)
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
index e5ad4dc..57c85a1 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
@@ -1564,23 +1564,23 @@ void ImportContext::importEvents(
void ImportContext::importScollableSettings(
Reference< xml::input::XAttributes > const & _xAttributes )
{
- importLongProperty( OUString( "ScrollHeight" ),
- OUString( "scrollheight" ),
+ importLongProperty( "ScrollHeight",
+ "scrollheight",
_xAttributes );
- importLongProperty( OUString( "ScrollWidth" ),
- OUString( "scrollwidth" ),
+ importLongProperty( "ScrollWidth",
+ "scrollwidth",
_xAttributes );
- importLongProperty( OUString( "ScrollTop" ),
- OUString( "scrolltop" ),
+ importLongProperty( "ScrollTop",
+ "scrolltop",
_xAttributes );
- importLongProperty( OUString( "ScrollLeft" ),
- OUString( "scrollleft" ),
+ importLongProperty( "ScrollLeft",
+ "scrollleft",
_xAttributes );
- importBooleanProperty( OUString( "HScroll" ),
- OUString( "hscroll" ),
+ importBooleanProperty( "HScroll",
+ "hscroll",
_xAttributes );
- importBooleanProperty( OUString( "VScroll" ),
- OUString( "vscroll" ),
+ importBooleanProperty( "VScroll",
+ "vscroll",
_xAttributes );
}
diff --git a/xmlscript/source/xmllib_imexp/xmllib_export.cxx b/xmlscript/source/xmllib_imexp/xmllib_export.cxx
index b4b0721..a10df15 100644
--- a/xmlscript/source/xmllib_imexp/xmllib_export.cxx
+++ b/xmlscript/source/xmllib_imexp/xmllib_export.cxx
@@ -130,7 +130,7 @@ SAL_CALL exportLibrary(
Reference< xml::sax::XAttributeList > xElementAttribs;
xElementAttribs = static_cast< xml::sax::XAttributeList* >( pElement );
- pElement->addAttribute( OUString( XMLNS_LIBRARY_PREFIX ":name" ),
+ pElement->addAttribute( XMLNS_LIBRARY_PREFIX ":name",
pElementNames[i] );
pLibElement->addSubElement( pElement );
commit 41a000b7428ea111f99acf1ce00c1d34747e987e
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 6 09:38:44 2015 +0100
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: Ibb9372bc45a0bc0b9083ad0e405440bbbe5ef678
diff --git a/xmloff/source/chart/SchXMLAxisContext.cxx b/xmloff/source/chart/SchXMLAxisContext.cxx
index c480081..9f8a0de 100644
--- a/xmloff/source/chart/SchXMLAxisContext.cxx
+++ b/xmloff/source/chart/SchXMLAxisContext.cxx
@@ -567,7 +567,7 @@ void SchXMLAxisContext::CreateAxis()
}
m_rbAxisPositionAttributeImported = m_rbAxisPositionAttributeImported || SchXMLTools::getPropertyFromContext(
- OUString("CrossoverPosition"), pPropStyleContext, pStylesCtxt ).hasValue();
+ "CrossoverPosition", pPropStyleContext, pStylesCtxt ).hasValue();
}
}
}
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx
index b33438a..0637caa 100644
--- a/xmloff/source/chart/SchXMLChartContext.cxx
+++ b/xmloff/source/chart/SchXMLChartContext.cxx
@@ -957,27 +957,27 @@ void SchXMLChartContext::MergeSeriesForStockChart()
if( bHasJapaneseCandlestick )
{
// open values
- lcl_setRoleAtFirstSequence( aSeriesSeq[ nSeriesIndex ], OUString( "values-first" ));
+ lcl_setRoleAtFirstSequence( aSeriesSeq[ nSeriesIndex ], "values-first");
aNewSeries[i] = aSeriesSeq[ nSeriesIndex ];
// low values
lcl_MoveDataToCandleStickSeries(
uno::Reference< chart2::data::XDataSource >( aSeriesSeq[ ++nSeriesIndex ], uno::UNO_QUERY_THROW ),
- aNewSeries[i], OUString( "values-min" ));
+ aNewSeries[i], "values-min");
}
else
{
// low values
- lcl_setRoleAtFirstSequence( aSeriesSeq[ nSeriesIndex ], OUString( "values-min" ));
+ lcl_setRoleAtFirstSequence( aSeriesSeq[ nSeriesIndex ], "values-min");
aNewSeries[i] = aSeriesSeq[ nSeriesIndex ];
}
// high values
lcl_MoveDataToCandleStickSeries(
uno::Reference< chart2::data::XDataSource >( aSeriesSeq[ ++nSeriesIndex ], uno::UNO_QUERY_THROW ),
- aNewSeries[i], OUString( "values-max" ));
+ aNewSeries[i], "values-max");
// close values
lcl_MoveDataToCandleStickSeries(
uno::Reference< chart2::data::XDataSource >( aSeriesSeq[ ++nSeriesIndex ], uno::UNO_QUERY_THROW ),
- aNewSeries[i], OUString( "values-last" ));
+ aNewSeries[i], "values-last");
}
xDSContainer->setDataSeries( aNewSeries );
}
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 527be59..01a9b21 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -432,7 +432,7 @@ Reference< chart2::data::XDataSource > lcl_pressUsedDataIntoRectangularFormat( c
//the first x-values is always the next sequence //todo ... other x-values get lost for old format
Reference< chart2::data::XLabeledDataSequence > xXValues(
- lcl_getDataSequenceByRole( aSeriesSeqVector, OUString( "values-x" ) ) );
+ lcl_getDataSequenceByRole( aSeriesSeqVector, "values-x" ) );
if( xXValues.is() )
aLabeledSeqVector.push_back( xXValues );
@@ -2768,7 +2768,7 @@ void SchXMLExportHelper_Impl::exportSeries(
Reference< chart2::data::XDataSequence > xYValuesForBubbleChart;
if( bIsBubbleChart )
{
- Reference< chart2::data::XLabeledDataSequence > xSequence( lcl_getDataSequenceByRole( aSeqCnt, OUString( "values-y" ) ) );
+ Reference< chart2::data::XLabeledDataSequence > xSequence( lcl_getDataSequenceByRole( aSeqCnt, "values-y" ) );
if( xSequence.is() )
{
xYValuesForBubbleChart = xSequence->getValues();
@@ -2778,7 +2778,7 @@ void SchXMLExportHelper_Impl::exportSeries(
}
if( bIsScatterChart || bIsBubbleChart )
{
- Reference< chart2::data::XLabeledDataSequence > xSequence( lcl_getDataSequenceByRole( aSeqCnt, OUString( "values-x" ) ) );
+ Reference< chart2::data::XLabeledDataSequence > xSequence( lcl_getDataSequenceByRole( aSeqCnt, "values-x" ) );
if( xSequence.is() )
{
Reference< chart2::data::XDataSequence > xValues( xSequence->getValues() );
@@ -3139,7 +3139,7 @@ void SchXMLExportHelper_Impl::exportCandleStickSeries(
xSource->getDataSequences());
sal_Int32 nSeriesLength =
- lcl_getSequenceLengthByRole( aSeqCnt, OUString( "values-last" ));
+ lcl_getSequenceLengthByRole( aSeqCnt, "values-last");
if( bExportContent )
{
@@ -3151,7 +3151,7 @@ void SchXMLExportHelper_Impl::exportCandleStickSeries(
if( bJapaneseCandleSticks )
{
tLabelAndValueRange aRanges( lcl_getLabelAndValueRangeByRole(
- aSeqCnt, OUString( "values-first" ), xNewDoc, m_aDataSequencesToExport ));
+ aSeqCnt, "values-first", xNewDoc, m_aDataSequencesToExport ));
if( !aRanges.second.isEmpty())
mrExport.AddAttribute( XML_NAMESPACE_CHART, XML_VALUES_CELL_RANGE_ADDRESS, aRanges.second );
if( !aRanges.first.isEmpty())
@@ -3168,7 +3168,7 @@ void SchXMLExportHelper_Impl::exportCandleStickSeries(
// low
{
tLabelAndValueRange aRanges( lcl_getLabelAndValueRangeByRole(
- aSeqCnt, OUString( "values-min" ), xNewDoc, m_aDataSequencesToExport ));
+ aSeqCnt, "values-min", xNewDoc, m_aDataSequencesToExport ));
if( !aRanges.second.isEmpty())
mrExport.AddAttribute( XML_NAMESPACE_CHART, XML_VALUES_CELL_RANGE_ADDRESS, aRanges.second );
if( !aRanges.first.isEmpty())
@@ -3185,7 +3185,7 @@ void SchXMLExportHelper_Impl::exportCandleStickSeries(
// high
{
tLabelAndValueRange aRanges( lcl_getLabelAndValueRangeByRole(
- aSeqCnt, OUString( "values-max" ), xNewDoc, m_aDataSequencesToExport ));
+ aSeqCnt, "values-max", xNewDoc, m_aDataSequencesToExport ));
if( !aRanges.second.isEmpty())
mrExport.AddAttribute( XML_NAMESPACE_CHART, XML_VALUES_CELL_RANGE_ADDRESS, aRanges.second );
if( !aRanges.first.isEmpty())
@@ -3202,7 +3202,7 @@ void SchXMLExportHelper_Impl::exportCandleStickSeries(
// close
{
tLabelAndValueRange aRanges( lcl_getLabelAndValueRangeByRole(
- aSeqCnt, OUString( "values-last" ), xNewDoc, m_aDataSequencesToExport ));
+ aSeqCnt, "values-last", xNewDoc, m_aDataSequencesToExport ));
if( !aRanges.second.isEmpty())
mrExport.AddAttribute( XML_NAMESPACE_CHART, XML_VALUES_CELL_RANGE_ADDRESS, aRanges.second );
if( !aRanges.first.isEmpty())
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx
index 6b5a4a2..9f5b9c0 100644
--- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx
+++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx
@@ -322,7 +322,7 @@ void SchXMLPlotAreaContext::StartElement( const uno::Reference< xml::sax::XAttri
//lines on/off
//this old property is not supported fully anymore with the new chart, so we need to get the information a little bit different from similar properties
mrSeriesDefaultsAndStyles.maLinesOnProperty = SchXMLTools::getPropertyFromContext(
- OUString("Lines"), pPropStyleContext, pStylesCtxt );
+ "Lines", pPropStyleContext, pStylesCtxt );
//handle automatic position and size
m_aOuterPositioning.readAutomaticPositioningProperties( pPropStyleContext, pStylesCtxt );
@@ -736,9 +736,9 @@ void SchXMLPositonAttributesHelper::readAutomaticPositioningProperties( XMLPropS
{
//handle automatic position and size
SchXMLTools::getPropertyFromContext(
- OUString("AutomaticSize"), pPropStyleContext, pStylesCtxt ) >>= m_bAutoSize;
+ "AutomaticSize", pPropStyleContext, pStylesCtxt ) >>= m_bAutoSize;
SchXMLTools::getPropertyFromContext(
- OUString("AutomaticPosition"), pPropStyleContext, pStylesCtxt ) >>= m_bAutoPosition;
+ "AutomaticPosition", pPropStyleContext, pStylesCtxt ) >>= m_bAutoPosition;
}
}
diff --git a/xmloff/source/chart/SchXMLSeries2Context.cxx b/xmloff/source/chart/SchXMLSeries2Context.cxx
index fcb0a91..871797e 100644
--- a/xmloff/source/chart/SchXMLSeries2Context.cxx
+++ b/xmloff/source/chart/SchXMLSeries2Context.cxx
@@ -172,7 +172,7 @@ void lcl_setSymbolSizeIfNeeded( const uno::Reference< beans::XPropertySet >& xSe
void lcl_resetSymbolSizeForPointsIfNecessary( const uno::Reference< beans::XPropertySet >& xPointProp, const SvXMLImport& rImport
, const XMLPropStyleContext * pPropStyleContext, const SvXMLStylesContext* pStylesCtxt )
{
- uno::Any aASymbolSize( SchXMLTools::getPropertyFromContext( OUString("SymbolSize"), pPropStyleContext, pStylesCtxt ) );
+ uno::Any aASymbolSize( SchXMLTools::getPropertyFromContext( "SymbolSize", pPropStyleContext, pStylesCtxt ) );
if( !aASymbolSize.hasValue() )
lcl_setSymbolSizeIfNeeded( xPointProp, rImport );
}
@@ -481,7 +481,7 @@ void SchXMLSeries2Context::StartElement( const uno::Reference< xml::sax::XAttrib
const XMLPropStyleContext* pPropStyleContext = dynamic_cast< const XMLPropStyleContext * >( pStyle );
- uno::Any aASymbolSize( SchXMLTools::getPropertyFromContext( OUString("SymbolSize")
+ uno::Any aASymbolSize( SchXMLTools::getPropertyFromContext( "SymbolSize"
, pPropStyleContext, pStylesCtxt ) );
mbSymbolSizeIsMissingInFile = !aASymbolSize.hasValue();
}
diff --git a/xmloff/source/chart/SchXMLTableContext.cxx b/xmloff/source/chart/SchXMLTableContext.cxx
index 409e1f6..dea1a00 100644
--- a/xmloff/source/chart/SchXMLTableContext.cxx
+++ b/xmloff/source/chart/SchXMLTableContext.cxx
@@ -954,7 +954,7 @@ void SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary(
if( ! bCategoriesApplied )
{
SchXMLTools::CreateCategories(
- xDataProv, xChartDoc, OUString("categories"),
+ xDataProv, xChartDoc, "categories",
0 /* nCooSysIndex */, 0 /* nDimension */ );
}
diff --git a/xmloff/source/chart/XMLChartStyleContext.cxx b/xmloff/source/chart/XMLChartStyleContext.cxx
index ca3f36b..b308c65 100644
--- a/xmloff/source/chart/XMLChartStyleContext.cxx
+++ b/xmloff/source/chart/XMLChartStyleContext.cxx
@@ -106,8 +106,8 @@ void XMLChartStyleContext::FillPropertySet(
DBG_ASSERT( false, "unknown property exception -> shape style not completely imported for chart style" );
}
- lcl_NumberFormatStyleToProperty( msDataStyleName, OUString( "NumberFormat" ), mrStyles, rPropSet );
- lcl_NumberFormatStyleToProperty( msPercentageDataStyleName, OUString( "PercentageNumberFormat" ), mrStyles, rPropSet );
+ lcl_NumberFormatStyleToProperty( msDataStyleName, "NumberFormat", mrStyles, rPropSet );
+ lcl_NumberFormatStyleToProperty( msPercentageDataStyleName, "PercentageNumberFormat", mrStyles, rPropSet );
}
SvXMLImportContext *XMLChartStyleContext::CreateChildContext(
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index 7b7c36c..7998494 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -358,38 +358,38 @@ void SvXMLImport::_InitCtor()
{
// implicit "xml" namespace prefix
mpNamespaceMap->Add( GetXMLToken(XML_XML), GetXMLToken(XML_N_XML), XML_NAMESPACE_XML );
- mpNamespaceMap->Add( OUString( sXML_np__office ), GetXMLToken(XML_N_OFFICE), XML_NAMESPACE_OFFICE );
- mpNamespaceMap->Add( OUString( sXML_np__office_ext ), GetXMLToken(XML_N_OFFICE_EXT), XML_NAMESPACE_OFFICE_EXT );
- mpNamespaceMap->Add( OUString( sXML_np__ooo ), GetXMLToken(XML_N_OOO), XML_NAMESPACE_OOO );
- mpNamespaceMap->Add( OUString( sXML_np__style ), GetXMLToken(XML_N_STYLE), XML_NAMESPACE_STYLE );
- mpNamespaceMap->Add( OUString( sXML_np__text ), GetXMLToken(XML_N_TEXT), XML_NAMESPACE_TEXT );
- mpNamespaceMap->Add( OUString( sXML_np__table ), GetXMLToken(XML_N_TABLE), XML_NAMESPACE_TABLE );
- mpNamespaceMap->Add( OUString( sXML_np__table_ext ), GetXMLToken(XML_N_TABLE_EXT), XML_NAMESPACE_TABLE_EXT );
- mpNamespaceMap->Add( OUString( sXML_np__draw ), GetXMLToken(XML_N_DRAW), XML_NAMESPACE_DRAW );
- mpNamespaceMap->Add( OUString( sXML_np__draw_ext ), GetXMLToken(XML_N_DRAW_EXT), XML_NAMESPACE_DRAW_EXT );
- mpNamespaceMap->Add( OUString( sXML_np__dr3d ), GetXMLToken(XML_N_DR3D), XML_NAMESPACE_DR3D );
- mpNamespaceMap->Add( OUString( sXML_np__fo ), GetXMLToken(XML_N_FO_COMPAT), XML_NAMESPACE_FO );
- mpNamespaceMap->Add( OUString( sXML_np__xlink ), GetXMLToken(XML_N_XLINK), XML_NAMESPACE_XLINK );
- mpNamespaceMap->Add( OUString( sXML_np__dc ), GetXMLToken(XML_N_DC), XML_NAMESPACE_DC );
- mpNamespaceMap->Add( OUString( sXML_np__dom ), GetXMLToken(XML_N_DOM), XML_NAMESPACE_DOM );
- mpNamespaceMap->Add( OUString( sXML_np__meta ), GetXMLToken(XML_N_META), XML_NAMESPACE_META );
- mpNamespaceMap->Add( OUString( sXML_np__number ), GetXMLToken(XML_N_NUMBER), XML_NAMESPACE_NUMBER );
- mpNamespaceMap->Add( OUString( sXML_np__svg ), GetXMLToken(XML_N_SVG_COMPAT), XML_NAMESPACE_SVG );
- mpNamespaceMap->Add( OUString( sXML_np__chart ), GetXMLToken(XML_N_CHART), XML_NAMESPACE_CHART );
- mpNamespaceMap->Add( OUString( sXML_np__math ), GetXMLToken(XML_N_MATH), XML_NAMESPACE_MATH );
- mpNamespaceMap->Add(OUString( sXML_np__form ), GetXMLToken(XML_N_FORM), XML_NAMESPACE_FORM );
- mpNamespaceMap->Add( OUString( sXML_np__script ), GetXMLToken(XML_N_SCRIPT), XML_NAMESPACE_SCRIPT );
- mpNamespaceMap->Add( OUString( sXML_np__config ), GetXMLToken(XML_N_CONFIG), XML_NAMESPACE_CONFIG );
- mpNamespaceMap->Add( OUString( sXML_np__xforms ), GetXMLToken(XML_N_XFORMS_1_0), XML_NAMESPACE_XFORMS );
- mpNamespaceMap->Add( OUString( sXML_np__formx ), GetXMLToken( XML_N_FORMX ), XML_NAMESPACE_FORMX );
- mpNamespaceMap->Add( OUString( sXML_np__xsd ), GetXMLToken(XML_N_XSD), XML_NAMESPACE_XSD );
- mpNamespaceMap->Add( OUString( sXML_np__xsi ), GetXMLToken(XML_N_XSI), XML_NAMESPACE_XFORMS );
- mpNamespaceMap->Add( OUString( sXML_np__ooow ), GetXMLToken(XML_N_OOOW), XML_NAMESPACE_OOOW );
- mpNamespaceMap->Add( OUString( sXML_np__oooc ), GetXMLToken(XML_N_OOOC), XML_NAMESPACE_OOOC );
- mpNamespaceMap->Add( OUString( sXML_np__field ), GetXMLToken(XML_N_FIELD), XML_NAMESPACE_FIELD );
- mpNamespaceMap->Add( OUString( sXML_np__of ), GetXMLToken(XML_N_OF), XML_NAMESPACE_OF );
- mpNamespaceMap->Add( OUString( sXML_np__xhtml ), GetXMLToken(XML_N_XHTML), XML_NAMESPACE_XHTML );
- mpNamespaceMap->Add( OUString( sXML_np__css3text ), GetXMLToken(XML_N_CSS3TEXT), XML_NAMESPACE_CSS3TEXT );
+ mpNamespaceMap->Add( sXML_np__office, GetXMLToken(XML_N_OFFICE), XML_NAMESPACE_OFFICE );
+ mpNamespaceMap->Add( sXML_np__office_ext, GetXMLToken(XML_N_OFFICE_EXT), XML_NAMESPACE_OFFICE_EXT );
+ mpNamespaceMap->Add( sXML_np__ooo, GetXMLToken(XML_N_OOO), XML_NAMESPACE_OOO );
+ mpNamespaceMap->Add( sXML_np__style, GetXMLToken(XML_N_STYLE), XML_NAMESPACE_STYLE );
+ mpNamespaceMap->Add( sXML_np__text, GetXMLToken(XML_N_TEXT), XML_NAMESPACE_TEXT );
+ mpNamespaceMap->Add( sXML_np__table, GetXMLToken(XML_N_TABLE), XML_NAMESPACE_TABLE );
+ mpNamespaceMap->Add( sXML_np__table_ext, GetXMLToken(XML_N_TABLE_EXT), XML_NAMESPACE_TABLE_EXT );
+ mpNamespaceMap->Add( sXML_np__draw, GetXMLToken(XML_N_DRAW), XML_NAMESPACE_DRAW );
+ mpNamespaceMap->Add( sXML_np__draw_ext, GetXMLToken(XML_N_DRAW_EXT), XML_NAMESPACE_DRAW_EXT );
+ mpNamespaceMap->Add( sXML_np__dr3d, GetXMLToken(XML_N_DR3D), XML_NAMESPACE_DR3D );
+ mpNamespaceMap->Add( sXML_np__fo, GetXMLToken(XML_N_FO_COMPAT), XML_NAMESPACE_FO );
+ mpNamespaceMap->Add( sXML_np__xlink, GetXMLToken(XML_N_XLINK), XML_NAMESPACE_XLINK );
+ mpNamespaceMap->Add( sXML_np__dc, GetXMLToken(XML_N_DC), XML_NAMESPACE_DC );
+ mpNamespaceMap->Add( sXML_np__dom, GetXMLToken(XML_N_DOM), XML_NAMESPACE_DOM );
+ mpNamespaceMap->Add( sXML_np__meta, GetXMLToken(XML_N_META), XML_NAMESPACE_META );
+ mpNamespaceMap->Add( sXML_np__number, GetXMLToken(XML_N_NUMBER), XML_NAMESPACE_NUMBER );
+ mpNamespaceMap->Add( sXML_np__svg, GetXMLToken(XML_N_SVG_COMPAT), XML_NAMESPACE_SVG );
+ mpNamespaceMap->Add( sXML_np__chart, GetXMLToken(XML_N_CHART), XML_NAMESPACE_CHART );
+ mpNamespaceMap->Add( sXML_np__math, GetXMLToken(XML_N_MATH), XML_NAMESPACE_MATH );
+ mpNamespaceMap->Add(sXML_np__form, GetXMLToken(XML_N_FORM), XML_NAMESPACE_FORM );
+ mpNamespaceMap->Add( sXML_np__script, GetXMLToken(XML_N_SCRIPT), XML_NAMESPACE_SCRIPT );
+ mpNamespaceMap->Add( sXML_np__config, GetXMLToken(XML_N_CONFIG), XML_NAMESPACE_CONFIG );
+ mpNamespaceMap->Add( sXML_np__xforms, GetXMLToken(XML_N_XFORMS_1_0), XML_NAMESPACE_XFORMS );
+ mpNamespaceMap->Add( sXML_np__formx, GetXMLToken( XML_N_FORMX ), XML_NAMESPACE_FORMX );
+ mpNamespaceMap->Add( sXML_np__xsd, GetXMLToken(XML_N_XSD), XML_NAMESPACE_XSD );
+ mpNamespaceMap->Add( sXML_np__xsi, GetXMLToken(XML_N_XSI), XML_NAMESPACE_XFORMS );
+ mpNamespaceMap->Add( sXML_np__ooow, GetXMLToken(XML_N_OOOW), XML_NAMESPACE_OOOW );
+ mpNamespaceMap->Add( sXML_np__oooc, GetXMLToken(XML_N_OOOC), XML_NAMESPACE_OOOC );
+ mpNamespaceMap->Add( sXML_np__field, GetXMLToken(XML_N_FIELD), XML_NAMESPACE_FIELD );
+ mpNamespaceMap->Add( sXML_np__of, GetXMLToken(XML_N_OF), XML_NAMESPACE_OF );
+ mpNamespaceMap->Add( sXML_np__xhtml, GetXMLToken(XML_N_XHTML), XML_NAMESPACE_XHTML );
+ mpNamespaceMap->Add( sXML_np__css3text, GetXMLToken(XML_N_CSS3TEXT), XML_NAMESPACE_CSS3TEXT );
mpNamespaceMap->Add( "_calc_libo", GetXMLToken(XML_N_CALC_EXT), XML_NAMESPACE_CALC_EXT);
mpNamespaceMap->Add( "_office_libo",
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index e7d42dd..de47927 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -1267,7 +1267,7 @@ void XMLShapeExport::ExportGraphicDefaults()
uno::Reference< beans::XPropertySet > xDefaults( xFact->createInstance("com.sun.star.drawing.Defaults"), uno::UNO_QUERY );
if( xDefaults.is() )
{
- aStEx->exportDefaultStyle( xDefaults, OUString(XML_STYLE_FAMILY_SD_GRAPHICS_NAME), xPropertySetMapper );
+ aStEx->exportDefaultStyle( xDefaults, XML_STYLE_FAMILY_SD_GRAPHICS_NAME, xPropertySetMapper );
// write graphic family styles
aStEx->exportStyleFamily("graphics", OUString(XML_STYLE_FAMILY_SD_GRAPHICS_NAME), xPropertySetMapper, false, XML_STYLE_FAMILY_SD_GRAPHICS_ID);
@@ -1635,7 +1635,7 @@ void XMLShapeExport::ImpExportEvents( const uno::Reference< drawing::XShape >& x
OUString aEventQName(
mrExport.GetNamespaceMap().GetQNameByKey(
- XML_NAMESPACE_DOM, OUString( "click" ) ) );
+ XML_NAMESPACE_DOM, "click" ) );
mrExport.AddAttribute( XML_NAMESPACE_SCRIPT, XML_EVENT_NAME, aEventQName );
mrExport.AddAttribute( XML_NAMESPACE_PRESENTATION, XML_ACTION, eStrAction );
@@ -1725,10 +1725,10 @@ void XMLShapeExport::ImpExportEvents( const uno::Reference< drawing::XShape >& x
mrExport.AddAttribute( XML_NAMESPACE_SCRIPT, XML_LANGUAGE,
mrExport.GetNamespaceMap().GetQNameByKey(
XML_NAMESPACE_OOO,
- OUString( "starbasic" ) ) );
+ "starbasic" ) );
OUString aEventQName(
mrExport.GetNamespaceMap().GetQNameByKey(
- XML_NAMESPACE_DOM, OUString( "click" ) ) );
+ XML_NAMESPACE_DOM, "click" ) );
mrExport.AddAttribute( XML_NAMESPACE_SCRIPT, XML_EVENT_NAME, aEventQName );
if( nFound & FOUND_LIBRARY )
@@ -1759,7 +1759,7 @@ void XMLShapeExport::ImpExportEvents( const uno::Reference< drawing::XShape >& x
XML_NAMESPACE_OOO, GetXMLToken(XML_SCRIPT) ) );
OUString aEventQName(
mrExport.GetNamespaceMap().GetQNameByKey(
- XML_NAMESPACE_DOM, OUString( "click" ) ) );
+ XML_NAMESPACE_DOM, "click" ) );
mrExport.AddAttribute( XML_NAMESPACE_SCRIPT, XML_EVENT_NAME, aEventQName );
mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_HREF, aStrMacro );
mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_TYPE, "simple" );
diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx
index a94265c..31da709 100644
--- a/xmloff/source/forms/elementexport.cxx
+++ b/xmloff/source/forms/elementexport.cxx
@@ -354,7 +354,7 @@ namespace xmloff
// later on imported, it overwrites anything which has previously been imported for
// CharStrikeout.
// #i27729#
- exportedProperty( OUString( "CharCrossedOut" ) );
+ exportedProperty( "CharCrossedOut" );
}
if ( m_eType == LISTBOX )
diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx
index cd10c32..202dab5 100644
--- a/xmloff/source/forms/elementimport.cxx
+++ b/xmloff/source/forms/elementimport.cxx
@@ -1755,9 +1755,9 @@ namespace xmloff
// the label and the value
const SvXMLNamespaceMap& rMap = GetImport().GetNamespaceMap();
const OUString sLabelAttribute = rMap.GetQNameByKey(
- GetPrefix(), OUString("label"));
+ GetPrefix(), "label");
const OUString sValueAttribute = rMap.GetQNameByKey(
- GetPrefix(), OUString("value"));
+ GetPrefix(), "value");
// the label attribute
OUString sValue = _rxAttrList->getValueByName(sLabelAttribute);
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx
index bd33705..e183b4f 100644
--- a/xmloff/source/text/txtfldi.cxx
+++ b/xmloff/source/text/txtfldi.cxx
@@ -1964,7 +1964,7 @@ void XMLUserDocInfoImportContext::ProcessAttribute(
{
if (!bValid)
{
- SetServiceName(OUString(sAPI_docinfo_custom ) );
+ SetServiceName(sAPI_docinfo_custom );
aName = sAttrValue;
bValid = true;
}
diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx
index 0a57b10..e99e4e6 100644
--- a/xmloff/source/text/txtparai.cxx
+++ b/xmloff/source/text/txtparai.cxx
@@ -395,10 +395,10 @@ XMLImpHyperlinkContext_Impl::XMLImpHyperlinkContext_Impl(
{
if( IsXMLToken( sShow, XML_NEW ) )
mpHint->SetTargetFrameName(
- OUString( "_blank" ) );
+ "_blank" );
else if( IsXMLToken( sShow, XML_REPLACE ) )
mpHint->SetTargetFrameName(
- OUString( "_self" ) );
+ "_self" );
}
if ( mpHint->GetHRef().isEmpty() )
@@ -883,7 +883,7 @@ void XMLMetaImportContext::InsertMeta(
const uno::Reference<rdf::XMetadatable> xMeta(
XMLTextMarkImportContext::CreateAndInsertMark(
GetImport(),
- OUString("com.sun.star.text.InContentMetadata"),
+ "com.sun.star.text.InContentMetadata",
OUString(),
i_xInsertionRange, m_XmlId),
uno::UNO_QUERY);
@@ -959,7 +959,7 @@ void XMLMetaFieldImportContext::InsertMeta(
const Reference<XPropertySet> xPropertySet(
XMLTextMarkImportContext::CreateAndInsertMark(
GetImport(),
- OUString("com.sun.star.text.textfield.MetadataField"),
+ "com.sun.star.text.textfield.MetadataField",
OUString(),
i_xInsertionRange, m_XmlId),
UNO_QUERY);
@@ -2108,7 +2108,7 @@ XMLParaContext::~XMLParaContext()
// borrow from XMLTextMarkImportContext
XMLTextMarkImportContext::CreateAndInsertMark(
GetImport(),
- OUString( "com.sun.star.text.ReferenceMark"),
+ "com.sun.star.text.ReferenceMark",
rRefName,
xAttrCursor);
}
diff --git a/xmloff/source/text/txtvfldi.cxx b/xmloff/source/text/txtvfldi.cxx
index 9d75525..9ee5e69 100644
--- a/xmloff/source/text/txtvfldi.cxx
+++ b/xmloff/source/text/txtvfldi.cxx
@@ -1144,8 +1144,7 @@ void XMLDatabaseDisplayImportContext::EndElement()
// create and prepare field master first
if (CreateField(xMaster,
- OUString(
- sAPI_fieldmaster_database)))
+ sAPI_fieldmaster_database))
{
Any aAny;
aAny <<= sColumnName;
@@ -1157,8 +1156,7 @@ void XMLDatabaseDisplayImportContext::EndElement()
// create field
Reference<XPropertySet> xField;
if (CreateField(xField,
- OUString(
- sAPI_database)))
+ sAPI_database))
{
// attach field master
Reference<XDependentTextField> xDepField(xField, UNO_QUERY);
diff --git a/xmloff/source/transform/EventOASISTContext.cxx b/xmloff/source/transform/EventOASISTContext.cxx
index 78117a7..b7768a0 100644
--- a/xmloff/source/transform/EventOASISTContext.cxx
+++ b/xmloff/source/transform/EventOASISTContext.cxx
@@ -227,7 +227,7 @@ void XMLEventOASISTransformerContext::StartElement(
GetXMLToken( XML_LANGUAGE ) ) );
pMutableAttrList->SetValueByIndex( idx,
- OUString("StarBasic") );
+ "StarBasic" );
OUString aLocQName(
GetTransformer().GetNamespaceMap().GetQNameByKey(
@@ -279,7 +279,7 @@ void XMLEventOASISTransformerContext::StartElement(
GetXMLToken( XML_LANGUAGE ) ) );
pMutableAttrList->SetValueByIndex( idx,
- OUString("StarBasic") );
+ "StarBasic" );
OUString aLocQName(
GetTransformer().GetNamespaceMap().GetQNameByKey(
commit fd80fa38db85129934326e7e31f249a967c5ec04
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 6 09:38:40 2015 +0100
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I9ee0d12d68cef7bd65d1e119d0272e356e7cf300
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx
index 16aff94..332dbe3 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.cxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.cxx
@@ -1587,7 +1587,7 @@ OUString KeyDataBaseFileIterator::implGetDbFileFromPackage
( Reference< deployment::XPackage > xPackage )
{
OUString aExpandedURL =
- implGetFileFromPackage( OUString( ".key" ), xPackage );
+ implGetFileFromPackage( ".key", xPackage );
return aExpandedURL;
}
@@ -1658,7 +1658,7 @@ Reference< XHierarchicalNameAccess > JarFileIterator::implGetJarFromPackage
Reference< XHierarchicalNameAccess > xNA;
OUString zipFile =
- implGetFileFromPackage( OUString( ".jar" ), xPackage );
+ implGetFileFromPackage( ".jar", xPackage );
try
{
@@ -1784,7 +1784,7 @@ OUString IndexFolderIterator::nextIndexFolder( bool& o_rbExtension, bool& o_rbTe
OUString IndexFolderIterator::implGetIndexFolderFromPackage( bool& o_rbTemporary, Reference< deployment::XPackage > xPackage )
{
OUString aIndexFolder =
- implGetFileFromPackage( OUString( ".idxl" ), xPackage );
+ implGetFileFromPackage( ".idxl", xPackage );
o_rbTemporary = false;
if( !m_xSFA->isFolder( aIndexFolder ) )
@@ -1848,7 +1848,7 @@ OUString IndexFolderIterator::implGetIndexFolderFromPackage( bool& o_rbTemporary
aIndexer.indexDocuments();
if( bIsWriteAccess )
- aIndexFolder = implGetFileFromPackage( OUString( ".idxl" ), xPackage );
+ aIndexFolder = implGetFileFromPackage( ".idxl", xPackage );
else
aIndexFolder = aZipDir + "/help.idxl";
}
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx
index 28ad152..27e2daf 100644
--- a/xmlhelp/source/treeview/tvread.cxx
+++ b/xmlhelp/source/treeview/tvread.cxx
@@ -496,7 +496,7 @@ bool TVChildTarget::SearchAndInsert(TVDom* p, TVDom* tvDom)
for(i = tvDom->children.begin(); i!=tvDom->children.end(); ++i)
if (!((*i)->isLeaf()) &&
((*i)->id.getLength() == p->id.getLength()) &&
- (p->id.replaceAt((*i)->parent->id.getLength(), p->id.getLength()-(*i)->parent->id.getLength(), OUString("")) == (*i)->parent->id)) //prefix check
+ (p->id.replaceAt((*i)->parent->id.getLength(), p->id.getLength()-(*i)->parent->id.getLength(), "") == (*i)->parent->id)) //prefix check
{
h = true;
c_int = (*i)->id.toInt32();
commit 36328248309ebebee616452248d55923280deabb
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 6 09:38:34 2015 +0100
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I7ac150458a72963f3336d30ef9d99d7c0d81c024
diff --git a/vcl/generic/print/printerjob.cxx b/vcl/generic/print/printerjob.cxx
index fd42783..315347c 100644
--- a/vcl/generic/print/printerjob.cxx
+++ b/vcl/generic/print/printerjob.cxx
@@ -326,8 +326,8 @@ PrinterJob::StartJob (
maJobTitle = rJobName;
OUString aExt(".ps");
- mpJobHeader = CreateSpoolFile (OUString("psp_head"), aExt);
- mpJobTrailer = CreateSpoolFile (OUString("psp_tail"), aExt);
+ mpJobHeader = CreateSpoolFile ("psp_head", aExt);
+ mpJobTrailer = CreateSpoolFile ("psp_tail", aExt);
if( ! (mpJobHeader && mpJobTrailer) ) // existing files are removed in destructor
return false;
@@ -587,8 +587,8 @@ PrinterJob::StartPage (const JobData& rJobSetup)
OUString aPageNo = OUString::number ((sal_Int32)maPageList.size()+1); // sequential page number must start with 1
OUString aExt = aPageNo + ".ps";
- osl::File* pPageHeader = CreateSpoolFile ( OUString("psp_pghead"), aExt);
- osl::File* pPageBody = CreateSpoolFile ( OUString("psp_pgbody"), aExt);
+ osl::File* pPageHeader = CreateSpoolFile ( "psp_pghead", aExt);
+ osl::File* pPageBody = CreateSpoolFile ( "psp_pgbody", aExt);
maHeaderList.push_back (pPageHeader);
maPageList.push_back (pPageBody);
diff --git a/vcl/qa/cppunit/graphicfilter/filters-test.cxx b/vcl/qa/cppunit/graphicfilter/filters-test.cxx
index 7224892..ab0e122 100644
--- a/vcl/qa/cppunit/graphicfilter/filters-test.cxx
+++ b/vcl/qa/cppunit/graphicfilter/filters-test.cxx
@@ -112,11 +112,11 @@ void VclFiltersTest::checkExportImport(const OUString& aFilterShortName)
void VclFiltersTest::testExportImport()
{
fprintf(stderr, "Check ExportImport JPG\n");
- checkExportImport(OUString("jpg"));
+ checkExportImport("jpg");
fprintf(stderr, "Check ExportImport PNG\n");
- checkExportImport(OUString("png"));
+ checkExportImport("png");
fprintf(stderr, "Check ExportImport BMP\n");
- checkExportImport(OUString("bmp"));
+ checkExportImport("bmp");
}
void VclFiltersTest::testCVEs()
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index 2fd7597..cd3e91d 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -2477,8 +2477,8 @@ bool MiscSettings::GetDisablePrinting() const
{
OUString aEnable =
vcl::SettingsConfigItem::get()->
- getValue( OUString( "DesktopManagement" ),
- OUString( "DisablePrinting" ) );
+ getValue( "DesktopManagement",
+ "DisablePrinting" );
mxData->mnDisablePrinting = aEnable.equalsIgnoreAsciiCase("true") ? TRISTATE_TRUE : TRISTATE_FALSE;
}
@@ -2543,8 +2543,8 @@ bool MiscSettings::GetEnableATToolSupport() const
{
OUString aEnable =
vcl::SettingsConfigItem::get()->
- getValue( OUString( "Accessibility" ),
- OUString( "EnableATToolSupport" ) );
+ getValue( "Accessibility",
+ "EnableATToolSupport" );
mxData->mnEnableATT = aEnable.equalsIgnoreAsciiCase("true") ? TRISTATE_TRUE : TRISTATE_FALSE;
}
else
@@ -2885,7 +2885,7 @@ namespace
nUIMirroring = 0; // ask configuration only once
utl::OConfigurationNode aNode = utl::OConfigurationTreeRoot::tryCreateWithComponentContext(
comphelper::getProcessComponentContext(),
- OUString("org.openoffice.Office.Common/I18N/CTL") ); // note: case sensitive !
+ "org.openoffice.Office.Common/I18N/CTL" ); // note: case sensitive !
if ( aNode.isValid() )
{
bool bTmp = bool();
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index f4928aa..a14b884 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -286,10 +286,10 @@ sal_uInt16 Application::Exception( sal_uInt16 nError )
#ifdef DBG_UTIL
case EXC_RSCNOTLOADED:
- Abort(OUString("Resource not loaded"));
+ Abort("Resource not loaded");
break;
default:
- Abort(OUString("Unknown Error"));
+ Abort("Unknown Error");
break;
#else
default:
diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx
index 45a6c02..a4b03de 100644
--- a/vcl/source/app/svdata.cxx
+++ b/vcl/source/app/svdata.cxx
@@ -136,7 +136,7 @@ vcl::Window* ImplGetDefaultWindow()
{
SAL_INFO( "vcl", "ImplGetDefaultWindow(): No AppWindow" );
pSVData->mpDefaultWin = VclPtr<WorkWindow>::Create( nullptr, WB_DEFAULTWIN );
- pSVData->mpDefaultWin->SetText( OUString( "VCL ImplGetDefaultWindow" ) );
+ pSVData->mpDefaultWin->SetText( "VCL ImplGetDefaultWindow" );
// Add a reference to the default context so it never gets deleted
rtl::Reference<OpenGLContext> pContext = pSVData->mpDefaultWin->GetGraphics()->GetOpenGLContext();
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index c65b38d..b91f1bd 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -194,10 +194,10 @@ void TextEngine::SetFont( const vcl::Font& rFont )
maFont.SetAlign( ALIGN_TOP );
mpRefDev->SetFont( maFont);
Size aTextSize;
- aTextSize.Width() = mpRefDev->GetTextWidth(OUString(" "));
+ aTextSize.Width() = mpRefDev->GetTextWidth(" ");
aTextSize.Height() = mpRefDev->GetTextHeight();
if ( !aTextSize.Width() )
- aTextSize.Width() = mpRefDev->GetTextWidth(OUString("XXXX"));
+ aTextSize.Width() = mpRefDev->GetTextWidth("XXXX");
mnDefTab = aTextSize.Width();
if ( !mnDefTab )
diff --git a/vcl/source/filter/GraphicNativeTransform.cxx b/vcl/source/filter/GraphicNativeTransform.cxx
index 6647497..11a17a5 100644
--- a/vcl/source/filter/GraphicNativeTransform.cxx
+++ b/vcl/source/filter/GraphicNativeTransform.cxx
@@ -76,11 +76,11 @@ bool GraphicNativeTransform::rotate(sal_uInt16 aInputRotation)
}
else if ( aLink.GetType() == GFX_LINK_TYPE_NATIVE_PNG )
{
- return rotateGeneric(aRotation, OUString("png"));
+ return rotateGeneric(aRotation, "png");
}
else if ( aLink.GetType() == GFX_LINK_TYPE_NATIVE_GIF )
{
- return rotateGeneric(aRotation, OUString("gif"));
+ return rotateGeneric(aRotation, "gif");
}
else if ( aLink.GetType() == GFX_LINK_TYPE_NONE )
{
@@ -127,7 +127,7 @@ bool GraphicNativeTransform::rotateGeneric(sal_uInt16 aRotation, const OUString&
BitmapEx aBitmap = mrGraphic.GetBitmapEx();
aBitmap.Rotate(aRotation, COL_BLACK);
- rFilter.ExportGraphic( aBitmap, OUString( "none" ), aStream, nFilterFormat, &aFilterData );
+ rFilter.ExportGraphic( aBitmap, "none", aStream, nFilterFormat, &aFilterData );
aStream.Seek( STREAM_SEEK_TO_BEGIN );
@@ -145,7 +145,7 @@ bool GraphicNativeTransform::rotateJPEG(sal_uInt16 aRotation)
if (aBitmap.GetSizePixel().Width() % 16 != 0 ||
aBitmap.GetSizePixel().Height() % 16 != 0 )
{
- rotateGeneric(aRotation, OUString("png"));
+ rotateGeneric(aRotation, "png");
}
else
{
diff --git a/vcl/source/filter/sgvmain.cxx b/vcl/source/filter/sgvmain.cxx
index 4882248..e666b3f 100644
--- a/vcl/source/filter/sgvmain.cxx
+++ b/vcl/source/filter/sgvmain.cxx
@@ -841,7 +841,7 @@ bool SgfSDrwFilter(SvStream& rInp, GDIMetaFile& rMtf, const INetURLObject& _aIni
bool bRet=false; // return value
INetURLObject aIniPath = _aIniPath;
- aIniPath.Append(OUString("sgf.ini"));
+ aIniPath.Append("sgf.ini");
pSgfFonts = new SgfFontLst;
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index ecd1c8f..31613aa 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -360,7 +360,7 @@ void ImpGraphic::ImplClear()
::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >(),
comphelper::getProcessComponentContext() );
- aCnt.executeCommand( OUString("delete"),
+ aCnt.executeCommand( "delete",
::com::sun::star::uno::makeAny( true ) );
}
catch( const ::com::sun::star::ucb::ContentCreationException& )
@@ -1190,7 +1190,7 @@ bool ImpGraphic::ImplSwapOut()
::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >(),
comphelper::getProcessComponentContext() );
- aCnt.executeCommand( OUString("delete"),
+ aCnt.executeCommand( "delete",
::com::sun::star::uno::makeAny( true ) );
}
catch( const ::com::sun::star::ucb::ContentCreationException& )
@@ -1288,7 +1288,7 @@ bool ImpGraphic::ImplSwapIn()
::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >(),
comphelper::getProcessComponentContext() );
- aCnt.executeCommand( OUString("delete"),
+ aCnt.executeCommand( "delete",
::com::sun::star::uno::makeAny( true ) );
}
catch( const ::com::sun::star::ucb::ContentCreationException& )
diff --git a/vcl/source/gdi/impimagetree.cxx b/vcl/source/gdi/impimagetree.cxx
index 9bec5dc..b7620c8 100644
--- a/vcl/source/gdi/impimagetree.cxx
+++ b/vcl/source/gdi/impimagetree.cxx
@@ -213,7 +213,7 @@ bool ImplImageTree::loadImage(OUString const & name, OUString const & style, Bit
bool ImplImageTree::loadDefaultImage(OUString const & style, BitmapEx& bitmap)
{
return doLoadImage(
- OUString("res/grafikde.png"),
+ "res/grafikde.png",
style, bitmap, false);
}
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index ae00978..156dc69 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -1783,7 +1783,7 @@ void PDFWriterImpl::PDFPage::appendWaveLine( sal_Int32 nWidth, sal_Int32 nY, sal
m_aStructure[0].m_nParentElement = 0;
Font aFont;
- aFont.SetName( OUString( "Times" ) );
+ aFont.SetName( "Times" );
aFont.SetSize( Size( 0, 12 ) );
GraphicsState aState;
@@ -2339,7 +2339,7 @@ void PDFWriterImpl::endPage()
// reset the default font
Font aFont;
- aFont.SetName( OUString( "Times" ) );
+ aFont.SetName( "Times" );
aFont.SetSize( Size( 0, 12 ) );
m_aCurrentPDFState = m_aGraphicsStack.front();
@@ -4552,7 +4552,7 @@ we check in the following sequence:
else if( aFileExtension.equalsIgnoreAsciiCase( "ods" ) )
bChangeFileExtensionToPDF = true;
if( bChangeFileExtensionToPDF )
- aTargetURL.setExtension(OUString( "pdf" ) );
+ aTargetURL.setExtension("pdf" );
}
//check if extension is pdf, see if GoToR should be forced
bTargetHasPDFExtension = aTargetURL.GetFileExtension().equalsIgnoreAsciiCase( "pdf" );
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index 560f695..9a1fbf1 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -309,7 +309,7 @@ bool Printer::PreparePrintJob(std::shared_ptr<PrinterController> xController,
"vcl/ui/errornoprinterdialog.ui");
aBox->Execute();
}
- xController->setValue( OUString( "IsDirect" ),
+ xController->setValue( "IsDirect",
makeAny( false ) );
}
@@ -356,7 +356,7 @@ bool Printer::PreparePrintJob(std::shared_ptr<PrinterController> xController,
if( pContentVal )
{
pContentVal->Value = makeAny( sal_Int32( 1 ) );
- xController->setValue(OUString("PageRange"), pPagesVal->Value);
+ xController->setValue("PageRange", pPagesVal->Value);
}
}
}
@@ -385,7 +385,7 @@ bool Printer::PreparePrintJob(std::shared_ptr<PrinterController> xController,
aBuf.append( "-" );
aBuf.append( nPages );
}
- xController->setValue(OUString("PageRange"), makeAny(aBuf.makeStringAndClear()));
+ xController->setValue("PageRange", makeAny(aBuf.makeStringAndClear()));
}
}
}
@@ -409,33 +409,33 @@ bool Printer::PreparePrintJob(std::shared_ptr<PrinterController> xController,
}
// setup NUp printing from properties
- sal_Int32 nRows = xController->getIntProperty(OUString("NUpRows"), 1);
- sal_Int32 nCols = xController->getIntProperty(OUString("NUpColumns"), 1);
+ sal_Int32 nRows = xController->getIntProperty("NUpRows", 1);
+ sal_Int32 nCols = xController->getIntProperty("NUpColumns", 1);
if( nRows > 1 || nCols > 1 )
{
PrinterController::MultiPageSetup aMPS;
aMPS.nRows = nRows > 1 ? nRows : 1;
aMPS.nColumns = nCols > 1 ? nCols : 1;
- sal_Int32 nValue = xController->getIntProperty(OUString("NUpPageMarginLeft"), aMPS.nLeftMargin);
+ sal_Int32 nValue = xController->getIntProperty("NUpPageMarginLeft", aMPS.nLeftMargin);
if( nValue >= 0 )
aMPS.nLeftMargin = nValue;
- nValue = xController->getIntProperty(OUString("NUpPageMarginRight"), aMPS.nRightMargin);
+ nValue = xController->getIntProperty("NUpPageMarginRight", aMPS.nRightMargin);
if( nValue >= 0 )
aMPS.nRightMargin = nValue;
- nValue = xController->getIntProperty( OUString( "NUpPageMarginTop" ), aMPS.nTopMargin );
+ nValue = xController->getIntProperty( "NUpPageMarginTop", aMPS.nTopMargin );
if( nValue >= 0 )
aMPS.nTopMargin = nValue;
- nValue = xController->getIntProperty( OUString( "NUpPageMarginBottom" ), aMPS.nBottomMargin );
+ nValue = xController->getIntProperty( "NUpPageMarginBottom", aMPS.nBottomMargin );
if( nValue >= 0 )
aMPS.nBottomMargin = nValue;
- nValue = xController->getIntProperty( OUString( "NUpHorizontalSpacing" ), aMPS.nHorizontalSpacing );
+ nValue = xController->getIntProperty( "NUpHorizontalSpacing", aMPS.nHorizontalSpacing );
if( nValue >= 0 )
aMPS.nHorizontalSpacing = nValue;
- nValue = xController->getIntProperty( OUString( "NUpVerticalSpacing" ), aMPS.nVerticalSpacing );
+ nValue = xController->getIntProperty( "NUpVerticalSpacing", aMPS.nVerticalSpacing );
if( nValue >= 0 )
aMPS.nVerticalSpacing = nValue;
- aMPS.bDrawBorder = xController->getBoolProperty( OUString( "NUpDrawBorder" ), aMPS.bDrawBorder );
- aMPS.nOrder = static_cast<PrinterController::NupOrderType>(xController->getIntProperty( OUString( "NUpSubPageOrder" ), aMPS.nOrder ));
+ aMPS.bDrawBorder = xController->getBoolProperty( "NUpDrawBorder", aMPS.bDrawBorder );
+ aMPS.nOrder = static_cast<PrinterController::NupOrderType>(xController->getIntProperty( "NUpSubPageOrder", aMPS.nOrder ));
aMPS.aPaperSize = xController->getPrinter()->PixelToLogic( xController->getPrinter()->GetPaperSizePixel(), MapMode( MAP_100TH_MM ) );
PropertyValue* pPgSizeVal = xController->getValue( OUString( "NUpPaperSize" ) );
awt::Size aSizeVal;
@@ -485,12 +485,12 @@ bool Printer::PreparePrintJob(std::shared_ptr<PrinterController> xController,
xController->abortJob();
return false;
}
- xController->setValue( OUString( "LocalFileName" ),
+ xController->setValue( "LocalFileName",
makeAny( aFile ) );
}
else if( aDlg->isSingleJobs() )
{
- xController->setValue( OUString( "PrintCollateAsSingleJobs" ),
+ xController->setValue( "PrintCollateAsSingleJobs",
makeAny( true ) );
}
}
@@ -751,8 +751,8 @@ bool Printer::StartJob( const OUString& i_rJobName, std::shared_ptr<vcl::Printer
if (i_xController->isShowDialogs() && !i_xController->isDirectPrint())
{
SettingsConfigItem* pItem = SettingsConfigItem::get();
- pItem->setValue( OUString( "PrintDialog" ),
- OUString( "LastPrinterUsed" ),
+ pItem->setValue( "PrintDialog",
+ "LastPrinterUsed",
GetName()
);
}
@@ -783,7 +783,7 @@ const VclPtr<Printer>& PrinterController::getPrinter() const
void PrinterController::setPrinter( const VclPtr<Printer>& i_rPrinter )
{
mpImplData->mxPrinter = i_rPrinter;
- setValue( OUString( "Name" ),
+ setValue( "Name",
makeAny( OUString( i_rPrinter->GetName() ) ) );
mpImplData->mnDefaultPaperBin = mpImplData->mxPrinter->GetPaperBin();
mpImplData->mxPrinter->Push();
@@ -1731,13 +1731,13 @@ void PrinterController::pushPropertiesToPrinter()
bool PrinterController::isShowDialogs() const
{
- bool bApi = getBoolProperty( OUString( "IsApi" ), false );
+ bool bApi = getBoolProperty( "IsApi", false );
return ! bApi && ! Application::IsHeadlessModeEnabled();
}
bool PrinterController::isDirectPrint() const
{
- bool bDirect = getBoolProperty( OUString( "IsDirect" ), false );
+ bool bDirect = getBoolProperty( "IsDirect", false );
return bDirect;
}
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index 9335b79..21f9c4a 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -1383,7 +1383,7 @@ ImplFontEntry* ImplFontCache::GetGlyphFallbackFont( PhysicalFontCollection* pFon
//sufficient heavy-weight code that's likely to undo the value of the
//optimization
if (nFallbackLevel == 1)
- pFallbackData = pFontCollection->FindFontFamily(OUString("EUDC"));
+ pFallbackData = pFontCollection->FindFontFamily("EUDC");
if (!pFallbackData)
pFallbackData = pFontCollection->GetGlyphFallbackFont(rFontSelData, rMissingCodes, nFallbackLevel-1);
// escape when there are no font candidates
diff --git a/vcl/source/uipreviewer/previewer.cxx b/vcl/source/uipreviewer/previewer.cxx
index 0650e42..63f7ae5 100644
--- a/vcl/source/uipreviewer/previewer.cxx
+++ b/vcl/source/uipreviewer/previewer.cxx
@@ -77,7 +77,7 @@ int UIPreviewApp::Main()
if (!pRealDialog)
pRealDialog = pDialog;
- pRealDialog->SetText(OUString("LibreOffice ui-previewer"));
+ pRealDialog->SetText("LibreOffice ui-previewer");
pRealDialog->SetStyle(pDialog->GetStyle()|WB_CLOSEABLE);
/*
Force a new StateChangedType::InitShow for the edge case where pRoot
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index d741dd0..ef58f37 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -79,8 +79,8 @@ PrintDialog::PrintPreviewWindow::PrintPreviewWindow( vcl::Window* i_pParent )
maHorzDim->Show();
maVertDim->Show();
- maHorzDim->SetText( OUString( "2.0in" ) );
- maVertDim->SetText( OUString( "2.0in" ) );
+ maHorzDim->SetText( "2.0in" );
+ maVertDim->SetText( "2.0in" );
}
PrintDialog::PrintPreviewWindow::~PrintPreviewWindow()
@@ -504,8 +504,8 @@ void PrintDialog::JobTabPage::readFromSettings()
SettingsConfigItem* pItem = SettingsConfigItem::get();
OUString aValue;
- aValue = pItem->getValue( OUString( "PrintDialog" ),
- OUString( "CollateBox" ) );
+ aValue = pItem->getValue( "PrintDialog",
+ "CollateBox" );
if( aValue.equalsIgnoreAsciiCase("alwaysoff") )
{
mnCollateUIMode = 1;
@@ -515,8 +515,8 @@ void PrintDialog::JobTabPage::readFromSettings()
else
{
mnCollateUIMode = 0;
- aValue = pItem->getValue( OUString( "PrintDialog" ),
- OUString( "Collate" ) );
+ aValue = pItem->getValue( "PrintDialog",
+ "Collate" );
mpCollateBox->Check( aValue.equalsIgnoreAsciiCase("true") );
}
}
@@ -524,11 +524,11 @@ void PrintDialog::JobTabPage::readFromSettings()
void PrintDialog::JobTabPage::storeToSettings()
{
SettingsConfigItem* pItem = SettingsConfigItem::get();
- pItem->setValue( OUString( "PrintDialog" ),
- OUString( "CopyCount" ),
+ pItem->setValue( "PrintDialog",
+ "CopyCount",
mpCopyCountField->GetText() );
- pItem->setValue( OUString( "PrintDialog" ),
- OUString( "Collate" ),
+ pItem->setValue( "PrintDialog",
+ "Collate",
mpCollateBox->IsChecked() ? OUString("true") :
OUString("false") );
}
@@ -544,8 +544,8 @@ void PrintDialog::OutputOptPage::readFromSettings()
{
SettingsConfigItem* pItem = SettingsConfigItem::get();
OUString aValue;
- aValue = pItem->getValue( OUString( "PrintDialog" ),
- OUString( "CollateSingleJobs" ) );
+ aValue = pItem->getValue( "PrintDialog",
+ "CollateSingleJobs" );
if ( aValue.equalsIgnoreAsciiCase("true") )
{
mpCollateSingleJobsBox->Check();
@@ -559,12 +559,12 @@ void PrintDialog::OutputOptPage::readFromSettings()
void PrintDialog::OutputOptPage::storeToSettings()
{
SettingsConfigItem* pItem = SettingsConfigItem::get();
- pItem->setValue( OUString( "PrintDialog" ),
- OUString( "ToFile" ),
+ pItem->setValue( "PrintDialog",
+ "ToFile",
mpToFileBox->IsChecked() ? OUString("true")
: OUString("false") );
- pItem->setValue( OUString( "PrintDialog" ),
- OUString( "CollateSingleJobs" ),
+ pItem->setValue( "PrintDialog",
+ "CollateSingleJobs",
mpCollateSingleJobsBox->IsChecked() ? OUString("true") :
OUString("false") );
}
@@ -623,8 +623,8 @@ PrintDialog::PrintDialog( vcl::Window* i_pParent, const std::shared_ptr<PrinterC
{
// fall back to last printer
SettingsConfigItem* pItem = SettingsConfigItem::get();
- OUString aValue( pItem->getValue( OUString( "PrintDialog" ),
- OUString( "LastPrinter" ) ) );
+ OUString aValue( pItem->getValue( "PrintDialog",
+ "LastPrinter" ) );
if( maJobPage.mpPrinters->GetEntryPos( aValue ) != LISTBOX_ENTRY_NOTFOUND )
{
maJobPage.mpPrinters->SelectEntry( aValue );
@@ -707,7 +707,7 @@ PrintDialog::PrintDialog( vcl::Window* i_pParent, const std::shared_ptr<PrinterC
// setup dependencies
checkControlDependencies();
- if ( maPController->getBoolProperty( OUString( "HideHelpButton" ), false ) )
+ if ( maPController->getBoolProperty( "HideHelpButton", false ) )
mpHelpButton->Hide();
// set initial focus to "Number of copies"
maJobPage.mpCopyCountField->GrabFocus();
@@ -744,8 +744,8 @@ void PrintDialog::readFromSettings()
// read last selected tab page; if it exists, activate it
SettingsConfigItem* pItem = SettingsConfigItem::get();
- OUString aValue = pItem->getValue( OUString( "PrintDialog" ),
- OUString( "LastPage" ) );
+ OUString aValue = pItem->getValue( "PrintDialog",
+ "LastPage" );
sal_uInt16 nCount = mpTabCtrl->GetPageCount();
for( sal_uInt16 i = 0; i < nCount; i++ )
{
@@ -759,8 +759,8 @@ void PrintDialog::readFromSettings()
mpOKButton->SetText( maOptionsPage.mpToFileBox->IsChecked() ? maPrintToFileText : maPrintText );
// persistent window state
- OUString aWinState( pItem->getValue( OUString( "PrintDialog" ),
- OUString( "WindowState" ) ) );
+ OUString aWinState( pItem->getValue( "PrintDialog",
+ "WindowState" ) );
if( !aWinState.isEmpty() )
SetWindowState( OUStringToOString( aWinState, RTL_TEXTENCODING_UTF8 ) );
@@ -778,15 +778,15 @@ void PrintDialog::storeToSettings()
// store last selected printer
SettingsConfigItem* pItem = SettingsConfigItem::get();
- pItem->setValue( OUString( "PrintDialog" ),
- OUString( "LastPrinter" ),
+ pItem->setValue( "PrintDialog",
+ "LastPrinter",
maJobPage.mpPrinters->GetSelectEntry() );
- pItem->setValue( OUString( "PrintDialog" ),
- OUString( "LastPage" ),
+ pItem->setValue( "PrintDialog",
+ "LastPage",
mpTabCtrl->GetPageText( mpTabCtrl->GetCurPageId() ) );
- pItem->setValue( OUString( "PrintDialog" ),
- OUString( "WindowState" ),
+ pItem->setValue( "PrintDialog",
+ "WindowState",
OStringToOUString( GetWindowState(), RTL_TEXTENCODING_UTF8 )
);
pItem->Commit();
@@ -1564,7 +1564,7 @@ IMPL_LINK_TYPED( PrintDialog, ClickHdl, Button*, pButton, void )
Help* pHelp = Application::GetHelp();
if( pHelp )
{
- pHelp->Start( OUString("vcl/ui/printdialog"), mpOKButton );
+ pHelp->Start( "vcl/ui/printdialog", mpOKButton );
}
}
else if( pButton == mpForwardBtn )
@@ -1585,7 +1585,7 @@ IMPL_LINK_TYPED( PrintDialog, ClickHdl, Button*, pButton, void )
{
bool bChecked = maOptionsPage.mpPapersizeFromSetup->IsChecked();
maPController->setPapersizeFromSetup( bChecked );
- maPController->setValue( OUString( "PapersizeFromSetup" ),
+ maPController->setValue( "PapersizeFromSetup",
makeAny( bChecked ) );
preparePreview( true, true );
}
@@ -1617,7 +1617,7 @@ IMPL_LINK_TYPED( PrintDialog, ClickHdl, Button*, pButton, void )
}
else if( pButton == maJobPage.mpCollateBox )
{
- maPController->setValue( OUString( "Collate" ),
+ maPController->setValue( "Collate",
makeAny( isCollate() ) );
checkControlDependencies();
}
@@ -1625,7 +1625,7 @@ IMPL_LINK_TYPED( PrintDialog, ClickHdl, Button*, pButton, void )
{
bool bChecked = maJobPage.mpReverseOrderBox->IsChecked();
maPController->setReversePrint( bChecked );
- maPController->setValue( OUString( "PrintReverse" ),
+ maPController->setValue( "PrintReverse",
makeAny( bChecked ) );
preparePreview( true, true );
}
@@ -1662,9 +1662,9 @@ IMPL_LINK_TYPED( PrintDialog, ModifyHdl, Edit&, rEdit, void )
}
else if( &rEdit == maJobPage.mpCopyCountField )
{
- maPController->setValue( OUString( "CopyCount" ),
+ maPController->setValue( "CopyCount",
makeAny( sal_Int32(maJobPage.mpCopyCountField->GetValue()) ) );
- maPController->setValue( OUString( "Collate" ),
+ maPController->setValue( "Collate",
makeAny( isCollate() ) );
}
}
diff --git a/vcl/source/window/settings.cxx b/vcl/source/window/settings.cxx
index 4e0e4ed..500dede 100644
--- a/vcl/source/window/settings.cxx
+++ b/vcl/source/window/settings.cxx
@@ -244,7 +244,7 @@ void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl )
bool bAutoHCMode = true;
utl::OConfigurationNode aNode = utl::OConfigurationTreeRoot::tryCreateWithComponentContext(
comphelper::getProcessComponentContext(),
- OUString("org.openoffice.Office.Common/Accessibility") ); // note: case sensitive !
+ "org.openoffice.Office.Common/Accessibility" ); // note: case sensitive !
if ( aNode.isValid() )
{
::com::sun::star::uno::Any aValue = aNode.getNodeValue( OUString("AutoDetectSystemHC") );
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index f0e5008..f8dd351 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1999,7 +1999,7 @@ bool ToolBox::AlwaysLocked()
utl::OConfigurationNode aNode = utl::OConfigurationTreeRoot::tryCreateWithComponentContext(
comphelper::getProcessComponentContext(),
- OUString("/org.openoffice.Office.UI.GlobalSettings/Toolbars") ); // note: case sensitive !
+ "/org.openoffice.Office.UI.GlobalSettings/Toolbars" ); // note: case sensitive !
if ( aNode.isValid() )
{
// feature enabled ?
@@ -2012,7 +2012,7 @@ bool ToolBox::AlwaysLocked()
// now read the locking state
utl::OConfigurationNode aNode2 = utl::OConfigurationTreeRoot::tryCreateWithComponentContext(
comphelper::getProcessComponentContext(),
- OUString("/org.openoffice.Office.UI.GlobalSettings/Toolbars/States") ); // note: case sensitive !
+ "/org.openoffice.Office.UI.GlobalSettings/Toolbars/States" ); // note: case sensitive !
bool bLocked = bool();
::com::sun::star::uno::Any aValue2 = aNode2.getNodeValue( OUString("Locked") );
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 97a2991..c7f4fd6 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2039,7 +2039,7 @@ void Window::RequestHelp( const HelpEvent& rHEvt )
if( !aStrHelpId.isEmpty() )
pHelp->Start( aStrHelpId, this );
else
- pHelp->Start( OUString( OOO_HELP_INDEX ), this );
+ pHelp->Start( OOO_HELP_INDEX, this );
}
}
}
diff --git a/vcl/unx/generic/app/i18n_status.cxx b/vcl/unx/generic/app/i18n_status.cxx
index 24e3854..82fc677 100644
--- a/vcl/unx/generic/app/i18n_status.cxx
+++ b/vcl/unx/generic/app/i18n_status.cxx
@@ -334,7 +334,7 @@ IIIMPStatusWindow::IIIMPStatusWindow( SalFrame* pParent, bool bOn ) :
m_bShow( true ),
m_bOn( bOn )
{
- SetText( OUString( "IME Status" ) );
+ SetText( "IME Status" );
layout();
diff --git a/vcl/unx/generic/app/wmadaptor.cxx b/vcl/unx/generic/app/wmadaptor.cxx
index 300954e..3822d09 100644
--- a/vcl/unx/generic/app/wmadaptor.cxx
+++ b/vcl/unx/generic/app/wmadaptor.cxx
@@ -880,8 +880,8 @@ bool WMAdaptor::getWMshouldSwitchWorkspace() const
pWMA->m_bWMshouldSwitchWorkspace = true;
vcl::SettingsConfigItem* pItem = vcl::SettingsConfigItem::get();
- OUString aSetting( pItem->getValue( OUString( "WM" ),
- OUString( "ShouldSwitchWorkspace" ) ) );
+ OUString aSetting( pItem->getValue( "WM",
+ "ShouldSwitchWorkspace" ) );
if( aSetting.isEmpty() )
{
if( m_aWMName == "awesome" )
diff --git a/vcl/unx/generic/dtrans/X11_clipboard.cxx b/vcl/unx/generic/dtrans/X11_clipboard.cxx
index 0ec568f..4983742 100644
--- a/vcl/unx/generic/dtrans/X11_clipboard.cxx
+++ b/vcl/unx/generic/dtrans/X11_clipboard.cxx
@@ -71,7 +71,7 @@ X11Clipboard::create( SelectionManager& rManager, Atom aSelection )
else
{
rManager.registerHandler( XA_PRIMARY, *cb.get() );
- rManager.registerHandler( rManager.getAtom( OUString("CLIPBOARD") ), *cb.get() );
+ rManager.registerHandler( rManager.getAtom( "CLIPBOARD" ), *cb.get() );
}
return cb.get();
}
@@ -88,7 +88,7 @@ X11Clipboard::~X11Clipboard()
else
{
m_rSelectionManager.deregisterHandler( XA_PRIMARY );
- m_rSelectionManager.deregisterHandler( m_rSelectionManager.getAtom( OUString("CLIPBOARD") ) );
+ m_rSelectionManager.deregisterHandler( m_rSelectionManager.getAtom( "CLIPBOARD" ) );
}
}
@@ -164,7 +164,7 @@ void SAL_CALL X11Clipboard::setContents(
else
{
m_rSelectionManager.requestOwnership( XA_PRIMARY );
- m_rSelectionManager.requestOwnership( m_rSelectionManager.getAtom( OUString("CLIPBOARD") ) );
+ m_rSelectionManager.requestOwnership( m_rSelectionManager.getAtom( "CLIPBOARD" ) );
}
// notify old owner on loss of ownership
diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx
index 427cb67..c42ca79 100644
--- a/vcl/unx/generic/dtrans/X11_selection.cxx
+++ b/vcl/unx/generic/dtrans/X11_selection.cxx
@@ -362,34 +362,34 @@ void SelectionManager::initialize( const Sequence< Any >& arguments ) throw (::c
XSynchronize( m_pDisplay, True );
#endif
// clipboard selection
- m_nCLIPBOARDAtom = getAtom( OUString("CLIPBOARD") );
+ m_nCLIPBOARDAtom = getAtom( "CLIPBOARD" );
// special targets
- m_nTARGETSAtom = getAtom( OUString("TARGETS") );
- m_nTIMESTAMPAtom = getAtom( OUString("TIMESTAMP") );
- m_nTEXTAtom = getAtom( OUString("TEXT") );
- m_nINCRAtom = getAtom( OUString("INCR") );
- m_nCOMPOUNDAtom = getAtom( OUString("COMPOUND_TEXT") );
- m_nMULTIPLEAtom = getAtom( OUString("MULTIPLE") );
- m_nUTF16Atom = getAtom( OUString("ISO10646-1") );
- m_nImageBmpAtom = getAtom( OUString("image/bmp") );
+ m_nTARGETSAtom = getAtom( "TARGETS" );
+ m_nTIMESTAMPAtom = getAtom( "TIMESTAMP" );
+ m_nTEXTAtom = getAtom( "TEXT" );
+ m_nINCRAtom = getAtom( "INCR" );
+ m_nCOMPOUNDAtom = getAtom( "COMPOUND_TEXT" );
+ m_nMULTIPLEAtom = getAtom( "MULTIPLE" );
+ m_nUTF16Atom = getAtom( "ISO10646-1" );
+ m_nImageBmpAtom = getAtom( "image/bmp" );
// Atoms for Xdnd protocol
- m_nXdndAware = getAtom( OUString("XdndAware") );
- m_nXdndEnter = getAtom( OUString("XdndEnter") );
- m_nXdndLeave = getAtom( OUString("XdndLeave") );
- m_nXdndPosition = getAtom( OUString("XdndPosition") );
- m_nXdndStatus = getAtom( OUString("XdndStatus") );
- m_nXdndDrop = getAtom( OUString("XdndDrop") );
- m_nXdndFinished = getAtom( OUString("XdndFinished") );
- m_nXdndSelection = getAtom( OUString("XdndSelection") );
- m_nXdndTypeList = getAtom( OUString("XdndTypeList") );
- m_nXdndProxy = getAtom( OUString("XdndProxy") );
- m_nXdndActionCopy = getAtom( OUString("XdndActionCopy") );
- m_nXdndActionMove = getAtom( OUString("XdndActionMove") );
- m_nXdndActionLink = getAtom( OUString("XdndActionLink") );
- m_nXdndActionAsk = getAtom( OUString("XdndActionAsk") );
- m_nXdndActionPrivate= getAtom( OUString("XdndActionPrivate") );
+ m_nXdndAware = getAtom( "XdndAware" );
+ m_nXdndEnter = getAtom( "XdndEnter" );
+ m_nXdndLeave = getAtom( "XdndLeave" );
+ m_nXdndPosition = getAtom( "XdndPosition" );
+ m_nXdndStatus = getAtom( "XdndStatus" );
+ m_nXdndDrop = getAtom( "XdndDrop" );
+ m_nXdndFinished = getAtom( "XdndFinished" );
+ m_nXdndSelection = getAtom( "XdndSelection" );
+ m_nXdndTypeList = getAtom( "XdndTypeList" );
+ m_nXdndProxy = getAtom( "XdndProxy" );
+ m_nXdndActionCopy = getAtom( "XdndActionCopy" );
+ m_nXdndActionMove = getAtom( "XdndActionMove" );
+ m_nXdndActionLink = getAtom( "XdndActionLink" );
+ m_nXdndActionAsk = getAtom( "XdndActionAsk" );
+ m_nXdndActionPrivate= getAtom( "XdndActionPrivate" );
// initialize map with member none
m_aAtomToString[ 0 ]= "None";
@@ -827,7 +827,7 @@ void SelectionManager::getNativeTypeList( const Sequence< DataFlavor >& rTypes,
rOutTypeList.push_front( XA_STRING );
rOutTypeList.push_front( m_nCOMPOUNDAtom );
}
- convertTypeToNative( OUString("text/plain;charset=utf-8"), targetselection, nFormat, rOutTypeList, true );
+ convertTypeToNative( "text/plain;charset=utf-8", targetselection, nFormat, rOutTypeList, true );
}
if( targetselection != m_nXdndSelection )
rOutTypeList.push_back( m_nMULTIPLEAtom );
diff --git a/vcl/unx/generic/dtrans/X11_transferable.cxx b/vcl/unx/generic/dtrans/X11_transferable.cxx
index 45a38cd..9bd683d 100644
--- a/vcl/unx/generic/dtrans/X11_transferable.cxx
+++ b/vcl/unx/generic/dtrans/X11_transferable.cxx
@@ -50,7 +50,7 @@ Any SAL_CALL X11Transferable::getTransferData( const DataFlavor& rFlavor )
Sequence< sal_Int8 > aData;
bool bSuccess = m_rManager.getPasteData( m_aSelection ? m_aSelection : XA_PRIMARY, rFlavor.MimeType, aData );
if( ! bSuccess && m_aSelection == 0 )
- bSuccess = m_rManager.getPasteData( m_rManager.getAtom( OUString("CLIPBOARD") ), rFlavor.MimeType, aData );
+ bSuccess = m_rManager.getPasteData( m_rManager.getAtom( "CLIPBOARD" ), rFlavor.MimeType, aData );
if( ! bSuccess )
{
@@ -76,7 +76,7 @@ Sequence< DataFlavor > SAL_CALL X11Transferable::getTransferDataFlavors()
Sequence< DataFlavor > aFlavorList;
bool bSuccess = m_rManager.getPasteDataTypes( m_aSelection ? m_aSelection : XA_PRIMARY, aFlavorList );
if( ! bSuccess && m_aSelection == 0 )
- m_rManager.getPasteDataTypes( m_rManager.getAtom( OUString("CLIPBOARD") ), aFlavorList );
+ m_rManager.getPasteDataTypes( m_rManager.getAtom( "CLIPBOARD" ), aFlavorList );
return aFlavorList;
}
diff --git a/vcl/unx/generic/printer/cupsmgr.cxx b/vcl/unx/generic/printer/cupsmgr.cxx
index 67d6da5..5d171d8 100644
--- a/vcl/unx/generic/printer/cupsmgr.cxx
+++ b/vcl/unx/generic/printer/cupsmgr.cxx
@@ -491,7 +491,7 @@ const PPDParser* CUPSManager::createCUPSParser( const OUString& rPrinter )
if( ! pNewParser )
{
// get the default PPD
- pNewParser = PPDParser::getParser( OUString( "SGENPRT" ) );
+ pNewParser = PPDParser::getParser( "SGENPRT" );
PrinterInfo& rInfo = m_aPrinters[ aPrinter ].m_aInfo;
diff --git a/vcl/unx/generic/printer/printerinfomanager.cxx b/vcl/unx/generic/printer/printerinfomanager.cxx
index 9018b51..e4ddbc8 100644
--- a/vcl/unx/generic/printer/printerinfomanager.cxx
+++ b/vcl/unx/generic/printer/printerinfomanager.cxx
@@ -194,7 +194,7 @@ void PrinterInfoManager::initialize()
m_aGlobalDefaults = PrinterInfo();
// need a parser for the PPDContext. generic printer should do.
- m_aGlobalDefaults.m_pParser = PPDParser::getParser( OUString( "SGENPRT" ) );
+ m_aGlobalDefaults.m_pParser = PPDParser::getParser( "SGENPRT" );
m_aGlobalDefaults.m_aContext.setParser( m_aGlobalDefaults.m_pParser );
if( ! m_aGlobalDefaults.m_pParser )
@@ -211,7 +211,7 @@ void PrinterInfoManager::initialize()
for( print_dir_it = aDirList.begin(); print_dir_it != aDirList.end(); ++print_dir_it )
{
INetURLObject aFile( *print_dir_it, INetProtocol::File, INetURLObject::ENCODE_ALL );
- aFile.Append( OUString( PRINT_FILENAME ) );
+ aFile.Append( PRINT_FILENAME );
Config aConfig( aFile.PathToFileName() );
if( aConfig.HasGroup( GLOBAL_DEFAULTS_GROUP ) )
{
@@ -279,7 +279,7 @@ void PrinterInfoManager::initialize()
{
INetURLObject aDir( *print_dir_it, INetProtocol::File, INetURLObject::ENCODE_ALL );
INetURLObject aFile( aDir );
- aFile.Append( OUString( PRINT_FILENAME ) );
+ aFile.Append( PRINT_FILENAME );
// check directory validity
OUString aUniPath;
diff --git a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
index 0b4ccda..78682cb 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
@@ -72,7 +72,7 @@ void SAL_CALL SalGtkFolderPicker::setDisplayDirectory( const OUString& aDirector
OString aTxt = unicodetouri( aDirectory );
if( aTxt.isEmpty() ){
- aTxt = unicodetouri(OUString("file:///."));
+ aTxt = unicodetouri("file:///.");
}
if( aTxt.endsWith("/") )
diff --git a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
index 87c41b2..a071bda 100644
--- a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
@@ -211,7 +211,7 @@ void SAL_CALL SalGtkPicker::implsetDisplayDirectory( const OUString& aDirectory
OString aTxt = unicodetouri(aDirectory);
if( aTxt.isEmpty() ){
- aTxt = unicodetouri(OUString("file:///."));
+ aTxt = unicodetouri("file:///.");
}
if( aTxt.endsWith("/") )
diff --git a/vcl/unx/gtk/gdi/salprn-gtk.cxx b/vcl/unx/gtk/gdi/salprn-gtk.cxx
index ce4088b..3615f8c 100644
--- a/vcl/unx/gtk/gdi/salprn-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salprn-gtk.cxx
@@ -1083,9 +1083,9 @@ GtkPrintDialog::impl_readFromSettings()
const OUString aPrintDialogStr("PrintDialog");
const OUString aCopyCount(pItem->getValue(aPrintDialogStr,
- OUString("CopyCount")));
+ "CopyCount"));
const OUString aCollate(pItem->getValue(aPrintDialogStr,
- OUString("Collate")));
+ "Collate"));
bool bChanged(false);
@@ -1120,10 +1120,10 @@ const
const OUString aPrintDialogStr("PrintDialog");
pItem->setValue(aPrintDialogStr,
- OUString("CopyCount"),
+ "CopyCount",
OUString::number(m_xWrapper->print_settings_get_n_copies(pSettings)));
pItem->setValue(aPrintDialogStr,
- OUString("Collate"),
+ "Collate",
m_xWrapper->print_settings_get_collate(pSettings)
? OUString("true")
: OUString("false"))
diff --git a/vcl/workben/icontest.cxx b/vcl/workben/icontest.cxx
index 636c94b..75910f5 100644
--- a/vcl/workben/icontest.cxx
+++ b/vcl/workben/icontest.cxx
@@ -188,7 +188,7 @@ void IconTestApp::DoItWithVcl( const OUString& sImageFile)
{
VclPtrInstance<MyWorkWindow> pWindow( nullptr, WB_APP | WB_STDWORK | WB_SIZEABLE | WB_CLOSEABLE | WB_CLIPCHILDREN );
- pWindow->SetText(OUString("VCL Image Test"));
+ pWindow->SetText("VCL Image Test");
pWindow->LoadGraphic( sImageFile );
pWindow->mpFixedBitmap = VclPtr<FixedBitmap>::Create( pWindow );
diff --git a/vcl/workben/mtfdemo.cxx b/vcl/workben/mtfdemo.cxx
index 3488a1e..ed66ed8 100644
--- a/vcl/workben/mtfdemo.cxx
+++ b/vcl/workben/mtfdemo.cxx
@@ -89,7 +89,7 @@ public:
try
{
mpWin = VclPtr<DemoMtfWin>::Create(maFileName);
- mpWin->SetText(OUString("Display metafile"));
+ mpWin->SetText("Display metafile");
mpWin->Show();
diff --git a/vcl/workben/outdevgrind.cxx b/vcl/workben/outdevgrind.cxx
index 6326a77..58777ac 100644
--- a/vcl/workben/outdevgrind.cxx
+++ b/vcl/workben/outdevgrind.cxx
@@ -67,7 +67,7 @@ class TestWindow : public Dialog
public:
TestWindow() : Dialog( nullptr )
{
- SetText( OUString("OutDev grinding") );
+ SetText( "OutDev grinding" );
SetSizePixel( Size( 1024, 1024 ) );
EnablePaint( true );
Show();
diff --git a/vcl/workben/svdem.cxx b/vcl/workben/svdem.cxx
index 3003f29..d52c745 100644
--- a/vcl/workben/svdem.cxx
+++ b/vcl/workben/svdem.cxx
@@ -87,7 +87,7 @@ public:
void Main()
{
ScopedVclPtrInstance< MyWin > aMainWin( nullptr, WB_APP | WB_STDWORK );
- aMainWin->SetText(OUString("VCL - Workbench"));
+ aMainWin->SetText("VCL - Workbench");
aMainWin->Show();
Application::Execute();
diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx
index 7a1de72..4188221 100644
--- a/vcl/workben/svpclient.cxx
+++ b/vcl/workben/svpclient.cxx
@@ -121,7 +121,7 @@ public:
void Main()
{
ScopedVclPtrInstance< MyWin > aMainWin( nullptr, WB_STDWORK );
- aMainWin->SetText( OUString( "SvpClient" ) );
+ aMainWin->SetText( "SvpClient" );
aMainWin->Show();
Application::Execute();
@@ -135,7 +135,7 @@ MyWin::MyWin( vcl::Window* pParent, WinBits nWinStyle ) :
m_aQuitButton(VclPtr<PushButton>::Create(this, 0))
{
m_aListButton->SetPosSizePixel( Point( 10, 10 ), Size( 120, 25 ) );
- m_aListButton->SetText( OUString( "List Elements" ) );
+ m_aListButton->SetText( "List Elements" );
m_aListButton->SetClickHdl( LINK( this, MyWin, ListHdl ) );
m_aListButton->Show();
@@ -148,7 +148,7 @@ MyWin::MyWin( vcl::Window* pParent, WinBits nWinStyle ) :
m_aImage->Show();
m_aQuitButton->SetPosSizePixel( Point( 10, 300 ), Size( 120,25 ) );
- m_aQuitButton->SetText( OUString( "Quit SVP server" ) );
+ m_aQuitButton->SetText( "Quit SVP server" );
m_aQuitButton->SetClickHdl( LINK( this, MyWin, QuitHdl ) );
m_aQuitButton->Show();
}
diff --git a/vcl/workben/svptest.cxx b/vcl/workben/svptest.cxx
index 1555764..d0e070a 100644
--- a/vcl/workben/svptest.cxx
+++ b/vcl/workben/svptest.cxx
@@ -97,7 +97,7 @@ public:
void Main()
{
ScopedVclPtrInstance< MyWin > aMainWin( nullptr, WB_APP | WB_STDWORK );
- aMainWin->SetText( OUString( "VCL - Workbench" ) );
+ aMainWin->SetText( "VCL - Workbench" );
aMainWin->Show();
Application::Execute();
commit 4d6b9053a437dc128d186f8d100ef4a351136f54
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 6 09:38:30 2015 +0100
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I90942032dda387d2f3fdeabe6c6afd2d14526728
diff --git a/uui/source/iahndl-filter.cxx b/uui/source/iahndl-filter.cxx
index 8cadd7b..7110fdd 100644
--- a/uui/source/iahndl-filter.cxx
+++ b/uui/source/iahndl-filter.cxx
@@ -137,9 +137,9 @@ handleNoSuchFilterRequest_(
uui::FilterNamePair aPair;
aPair.sInternal = lProps.getUnpackedValueOrDefault(
- OUString("Name"), OUString());
+ "Name", OUString());
aPair.sUI = lProps.getUnpackedValueOrDefault(
- OUString("UIName"), OUString());
+ "UIName", OUString());
if ( aPair.sInternal.isEmpty() || aPair.sUI.isEmpty() )
{
continue;
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index b607502..7e8ded7 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -363,7 +363,7 @@ bool UUIInteractionHelper::handleTypedHandlerImplementations( Reference< XIntera
// the base registration node for "typed" interaction handlers
const ::utl::OConfigurationTreeRoot aConfigRoot( ::utl::OConfigurationTreeRoot::createWithComponentContext(
m_xContext,
- OUString( "/org.openoffice.Interaction/InteractionHandlers" ),
+ "/org.openoffice.Interaction/InteractionHandlers",
-1,
::utl::OConfigurationTreeRoot::CM_READONLY
) );
commit ebaa338df5372141ed5afdec6c70cd6d34fa05f6
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 6 09:38:26 2015 +0100
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I909557f7ca803de8dc8604e95cc66430abb13f53
diff --git a/unotest/source/cpp/officeconnection.cxx b/unotest/source/cpp/officeconnection.cxx
index e86a883..a67e7fc3 100644
--- a/unotest/source/cpp/officeconnection.cxx
+++ b/unotest/source/cpp/officeconnection.cxx
@@ -53,7 +53,7 @@ void OfficeConnection::setUp() {
OUString("soffice"),
&argSoffice));
if (argSoffice.match("path:")) {
- desc = "pipe,name=" + uniquePipeName(OUString("oootest"));
+ desc = "pipe,name=" + uniquePipeName("oootest");
OUString noquickArg("--quickstart=no");
OUString norestoreArg("--norestore");
OUString nologoArg("--nologo");
@@ -74,7 +74,7 @@ void OfficeConnection::setUp() {
jreArg.pData, classpathArg.pData };
rtl_uString ** envs = 0;
OUString argEnv;
- if (detail::getArgument(OUString("env"), &argEnv))
+ if (detail::getArgument("env", &argEnv))
{
envs = &argEnv.pData;
}
commit 0f87f64fd0300ed9e219e5cfc12bb40433ee86e4
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 6 09:38:22 2015 +0100
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I07e4b98ea03f9d5ddcf9c3f0bc0cba676a9155e8
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx
index 356a21d..c1c91f8 100644
--- a/unotools/source/config/configmgr.cxx
+++ b/unotools/source/config/configmgr.cxx
@@ -91,50 +91,50 @@ struct theConfigManager:
OUString utl::ConfigManager::getAboutBoxProductVersion() {
return getConfigurationString(
- OUString("/org.openoffice.Setup"),
- OUString("Product/ooSetupVersionAboutBox"));
+ "/org.openoffice.Setup",
+ "Product/ooSetupVersionAboutBox");
}
OUString utl::ConfigManager::getAboutBoxProductVersionSuffix() {
return getConfigurationString(
- OUString("/org.openoffice.Setup"),
- OUString("Product/ooSetupVersionAboutBoxSuffix"));
+ "/org.openoffice.Setup",
+ "Product/ooSetupVersionAboutBoxSuffix");
}
OUString utl::ConfigManager::getDefaultCurrency() {
return getConfigurationString(
- OUString("/org.openoffice.Setup"),
- OUString("L10N/ooSetupCurrency"));
+ "/org.openoffice.Setup",
+ "L10N/ooSetupCurrency");
}
OUString utl::ConfigManager::getLocale() {
return getConfigurationString(
- OUString("/org.openoffice.Setup"),
- OUString("L10N/ooLocale"));
+ "/org.openoffice.Setup",
+ "L10N/ooLocale");
}
OUString utl::ConfigManager::getProductExtension() {
return getConfigurationString(
- OUString("/org.openoffice.Setup"),
- OUString("Product/ooSetupExtension"));
+ "/org.openoffice.Setup",
+ "Product/ooSetupExtension");
}
OUString utl::ConfigManager::getProductName() {
return getConfigurationString(
- OUString("/org.openoffice.Setup"),
- OUString("Product/ooName"));
+ "/org.openoffice.Setup",
+ "Product/ooName");
}
OUString utl::ConfigManager::getProductVersion() {
return getConfigurationString(
- OUString("/org.openoffice.Setup"),
- OUString("Product/ooSetupVersion"));
+ "/org.openoffice.Setup",
+ "Product/ooSetupVersion");
}
OUString utl::ConfigManager::getVendor() {
return getConfigurationString(
- OUString("/org.openoffice.Setup"),
- OUString("Product/ooVendor"));
+ "/org.openoffice.Setup",
+ "Product/ooVendor");
}
void utl::ConfigManager::storeConfigItems() {
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx
index 2b28b2e..9f834f3 100644
--- a/unotools/source/config/lingucfg.cxx
+++ b/unotools/source/config/lingucfg.cxx
@@ -1018,7 +1018,7 @@ std::vector< SvtLinguConfigDictionaryEntry > SvtLinguConfig::GetActiveDictionari
try
{
uno::Sequence< OUString > aElementNames;
- GetElementNamesFor( OUString(aG_Dictionaries), aElementNames );
+ GetElementNamesFor( aG_Dictionaries, aElementNames );
sal_Int32 nLen = aElementNames.getLength();
const OUString *pElementNames = aElementNames.getConstArray();
diff --git a/unotools/source/i18n/transliterationwrapper.cxx b/unotools/source/i18n/transliterationwrapper.cxx
index 533655c..a83f173 100644
--- a/unotools/source/i18n/transliterationwrapper.cxx
+++ b/unotools/source/i18n/transliterationwrapper.cxx
@@ -114,17 +114,17 @@ void TransliterationWrapper::loadModuleIfNeeded( sal_uInt16 nLang )
if( static_cast< sal_Int32 >(nType) == TransliterationModulesExtra::SENTENCE_CASE )
{
if( bLoad )
- loadModuleByImplName(OUString("SENTENCE_CASE"), nLang);
+ loadModuleByImplName("SENTENCE_CASE", nLang);
}
else if( static_cast< sal_Int32 >(nType) == TransliterationModulesExtra::TITLE_CASE )
{
if( bLoad )
- loadModuleByImplName(OUString("TITLE_CASE"), nLang);
+ loadModuleByImplName("TITLE_CASE", nLang);
}
else if( static_cast< sal_Int32 >(nType) == TransliterationModulesExtra::TOGGLE_CASE )
{
if( bLoad )
- loadModuleByImplName(OUString("TOGGLE_CASE"), nLang);
+ loadModuleByImplName("TOGGLE_CASE", nLang);
}
else
{
diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx
index ac3f4cf..61d2ece 100644
--- a/unotools/source/ucbhelper/ucbhelper.cxx
+++ b/unotools/source/ucbhelper/ucbhelper.cxx
@@ -113,7 +113,7 @@ std::vector<OUString> getContents(OUString const & url) {
OUString getCasePreservingUrl(const INetURLObject& url) {
return
content(url).executeCommand(
- OUString("getCasePreservingURL"),
+ "getCasePreservingURL",
css::uno::Any()).
get<OUString>();
}
@@ -208,7 +208,7 @@ bool utl::UCBContentHelper::GetTitle(
bool utl::UCBContentHelper::Kill(OUString const & url) {
try {
content(url).executeCommand(
- OUString("delete"),
+ "delete",
css::uno::makeAny(true));
return true;
} catch (css::uno::RuntimeException const &) {
@@ -323,11 +323,11 @@ bool utl::UCBContentHelper::IsYounger(
return
convert(
content(younger).getPropertyValue(
- OUString("DateModified")).
+ "DateModified").
get<css::util::DateTime>())
> convert(
content(older).getPropertyValue(
- OUString("DateModified")).
+ "DateModified").
get<css::util::DateTime>());
} catch (css::uno::RuntimeException const &) {
throw;
diff --git a/unotools/source/ucbhelper/ucbstreamhelper.cxx b/unotools/source/ucbhelper/ucbstreamhelper.cxx
index fc3d31c..c2e2149 100644
--- a/unotools/source/ucbhelper/ucbstreamhelper.cxx
+++ b/unotools/source/ucbhelper/ucbstreamhelper.cxx
@@ -60,7 +60,7 @@ static SvStream* lcl_CreateStream( const OUString& rFileName, StreamMode eOpenMo
::ucbhelper::Content aCnt(
rFileName, Reference < XCommandEnvironment >(),
comphelper::getProcessComponentContext() );
- aCnt.executeCommand( OUString("delete"), makeAny( true ) );
+ aCnt.executeCommand( "delete", makeAny( true ) );
}
catch ( const CommandAbortedException& )
@@ -93,7 +93,7 @@ static SvStream* lcl_CreateStream( const OUString& rFileName, StreamMode eOpenMo
aInsertArg.ReplaceExisting = sal_False;
Any aCmdArg;
aCmdArg <<= aInsertArg;
- aContent.executeCommand( OUString("insert"), aCmdArg );
+ aContent.executeCommand( "insert", aCmdArg );
}
// it is NOT an error when the stream already exists and no truncation was desired
commit d0e6388a217890016ea32619629c45709e8060f7
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 6 09:38:16 2015 +0100
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I970a03643f3c460110bc7caf1dc33c6dde1d78d5
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx
index 54363ef..31e1b2f 100644
--- a/ucbhelper/source/client/content.cxx
+++ b/ucbhelper/source/client/content.cxx
@@ -886,7 +886,7 @@ Sequence< ContentInfo > Content::queryCreatableContentsInfo()
// First, try it using "CreatableContentsInfo" property -> the "new" way.
Sequence< ContentInfo > aInfo;
if ( getPropertyValue(
- OUString("CreatableContentsInfo") )
+ "CreatableContentsInfo" )
>>= aInfo )
return aInfo;
@@ -967,7 +967,7 @@ bool Content::insertNewContent( const OUString& rContentType,
Content aNewContent(
xNew, m_xImpl->getEnvironment(), m_xImpl->getComponentContext() );
aNewContent.setPropertyValues( rPropertyNames, rPropertyValues );
- aNewContent.executeCommand( OUString("insert"),
+ aNewContent.executeCommand( "insert",
makeAny(
InsertCommandArgument(
rData.is() ? rData : new EmptyInputStream,
commit ebb3beb8044e1092403aee201ac339ed1c57f55d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Nov 6 09:38:13 2015 +0100
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: Ifb9832022c92cc9996000d0515e81c53c36bfae8
diff --git a/ucb/source/core/FileAccess.cxx b/ucb/source/core/FileAccess.cxx
index 3dffc8d..1b6c9bb 100644
--- a/ucb/source/core/FileAccess.cxx
+++ b/ucb/source/core/FileAccess.cxx
@@ -309,7 +309,7 @@ void OFileAccess::kill( const OUString& FileURL )
ucbhelper::Content aCnt( aDeleteObj.GetMainURL( INetURLObject::NO_DECODE ), mxEnvironment, comphelper::getProcessComponentContext() );
try
{
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list