[Libreoffice-commits] core.git: 3 commits - accessibility/source animations/source basctl/source basic/source bridges/test canvas/workben chart2/source comphelper/source configmgr/qa connectivity/source cppuhelper/test cui/source dbaccess/source desktop/source dtrans/source editeng/source embeddedobj/source embedserv/source extensions/source extensions/test filter/source forms/source formula/source fpicker/source framework/source i18npool/qa idlc/source io/test linguistic/source mysqlc/source odk/examples oox/source package/source registry/source reportdesign/source salhelper/test sal/test sax/source sax/test scripting/source sc/source sc/workben sdext/source sd/source sd/workben sfx2/source shell/source slideshow/source sot/source stoc/source stoc/test svl/source svtools/source svx/source svx/workben sw/source testtools/source toolkit/source tubes/qa ucb/source unotest/source unotools/source uui/source vbahelper/source vcl/android vcl/aqua vcl/source vcl/unx vcl/workben writerfilter/sour ce writerperfect/source xmlhelp/source xmloff/source xmlsecurity/source
Noel Grandin
noel at peralex.com
Tue Nov 19 00:30:20 PST 2013
accessibility/source/standard/vclxaccessiblecombobox.cxx | 2
accessibility/source/standard/vclxaccessiblestatusbar.cxx | 2
animations/source/animcore/targetpropertiescreator.cxx | 2
basctl/source/basicide/baside2b.cxx | 10 -
basic/source/comp/io.cxx | 4
bridges/test/java_uno/acquire/testacquire.cxx | 4
bridges/test/java_uno/equals/testequals.cxx | 4
bridges/test/testcomp.cxx | 2
canvas/workben/canvasdemo.cxx | 4
chart2/source/tools/InternalDataProvider.cxx | 2
comphelper/source/xml/ofopxmlhelper.cxx | 4
configmgr/qa/unit/test.cxx | 48 ++----
connectivity/source/commontools/parameters.cxx | 6
connectivity/source/commontools/statementcomposer.cxx | 2
connectivity/source/drivers/ado/ADatabaseMetaData.cxx | 2
connectivity/source/drivers/hsqldb/HConnection.cxx | 2
connectivity/source/drivers/jdbc/DatabaseMetaData.cxx | 2
connectivity/source/drivers/mork/MDriver.cxx | 2
connectivity/source/drivers/mozab/MConnection.cxx | 10 -
connectivity/source/drivers/mozab/MDatabaseMetaData.cxx | 2
connectivity/source/drivers/mozab/MDriver.cxx | 2
connectivity/source/drivers/mozab/MServices.cxx | 4
connectivity/source/drivers/mozab/MStatement.cxx | 2
connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx | 4
connectivity/source/drivers/mysql/YDriver.cxx | 10 -
cppuhelper/test/bootstrap/bootstrap.test.cxx | 2
cui/source/dialogs/colorpicker.cxx | 2
cui/source/dialogs/cuigaldlg.cxx | 4
cui/source/dialogs/hlmarkwn.cxx | 2
dbaccess/source/ext/macromigration/macromigrationwizard.cxx | 2
dbaccess/source/ext/macromigration/migrationengine.cxx | 2
dbaccess/source/sdbtools/connection/connectiontools.cxx | 2
dbaccess/source/ui/app/subcomponentmanager.cxx | 2
dbaccess/source/ui/browser/brwctrlr.cxx | 2
dbaccess/source/ui/dlg/queryorder.cxx | 4
dbaccess/source/ui/misc/WCopyTable.cxx | 2
dbaccess/source/ui/misc/linkeddocuments.cxx | 6
dbaccess/source/ui/querydesign/TableFieldDescription.cxx | 2
dbaccess/source/ui/querydesign/limitboxcontroller.cxx | 4
desktop/source/app/app.cxx | 2
desktop/source/app/appinit.cxx | 2
desktop/source/migration/services/wordbookmigration.cxx | 2
dtrans/source/win32/clipb/wcbentry.cxx | 4
dtrans/source/win32/dnd/dndentry.cxx | 4
dtrans/source/win32/dnd/source.cxx | 4
dtrans/source/win32/dnd/target.cxx | 4
dtrans/source/win32/ftransl/ftranslentry.cxx | 2
editeng/source/misc/svxacorr.cxx | 4
editeng/source/uno/unonrule.cxx | 2
embeddedobj/source/commonembedding/persistence.cxx | 38 ++---
embeddedobj/source/msole/graphconvert.cxx | 6
embeddedobj/source/msole/olecomponent.cxx | 8 -
embeddedobj/source/msole/oleembed.cxx | 20 +-
embeddedobj/source/msole/olepersist.cxx | 13 -
embeddedobj/source/msole/olevisual.cxx | 2
embeddedobj/source/msole/ownview.cxx | 18 +-
embeddedobj/source/msole/xdialogcreator.cxx | 2
embedserv/source/embed/docholder.cxx | 2
embedserv/source/embed/ed_idataobj.cxx | 10 -
embedserv/source/embed/ed_ipersiststr.cxx | 14 +-
embedserv/source/embed/guid.cxx | 10 -
embedserv/source/embed/intercept.cxx | 21 ---
embedserv/source/embed/register.cxx | 2
extensions/source/logging/consolehandler.cxx | 2
extensions/source/logging/filehandler.cxx | 2
extensions/source/logging/logger.cxx | 2
extensions/source/logging/plaintextformatter.cxx | 2
extensions/source/propctrlr/browserline.cxx | 2
extensions/source/propctrlr/buttonnavigationhandler.cxx | 2
extensions/source/propctrlr/cellbindinghandler.cxx | 2
extensions/source/propctrlr/editpropertyhandler.cxx | 2
extensions/source/propctrlr/eformspropertyhandler.cxx | 4
extensions/source/propctrlr/formcomponenthandler.cxx | 2
extensions/source/propctrlr/formgeometryhandler.cxx | 2
extensions/source/propctrlr/pcrunodialogs.cxx | 4
extensions/source/propctrlr/propertyhandler.cxx | 24 +--
extensions/source/propctrlr/sqlcommanddesign.cxx | 2
extensions/source/propctrlr/submissionhandler.cxx | 4
extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx | 8 -
extensions/source/scanner/scanner.cxx | 2
extensions/source/scanner/scanwin.cxx | 8 -
extensions/test/ole/unloading/unloadTest.cxx | 12 -
filter/source/config/cache/filterfactory.cxx | 16 +-
filter/source/config/cache/typedetection.cxx | 2
filter/source/graphic/GraphicExportDialog.cxx | 12 -
filter/source/msfilter/escherex.cxx | 4
filter/source/msfilter/eschesdo.cxx | 2
filter/source/msfilter/msdffimp.cxx | 6
filter/source/msfilter/msoleexp.cxx | 6
filter/source/odfflatxml/OdfFlatXml.cxx | 4
filter/source/xmlfilterdetect/filterdetect.cxx | 4
filter/source/xsltdialog/xmlfilterdialogcomponent.cxx | 2
filter/source/xsltdialog/xmlfilterjar.cxx | 4
filter/source/xsltdialog/xmlfiltersettingsdialog.cxx | 6
filter/source/xsltdialog/xmlfiltertestdialog.cxx | 4
filter/source/xsltfilter/XSLTFilter.cxx | 22 +--
forms/source/component/Columns.cxx | 20 +-
forms/source/component/ImageControl.cxx | 2
forms/source/component/navigationbar.cxx | 2
forms/source/richtext/clipboarddispatcher.cxx | 6
forms/source/richtext/richtextcontrol.cxx | 4
forms/source/runtime/formoperations.cxx | 2
forms/source/solar/component/navbarcontrol.cxx | 4
forms/source/xforms/datatypes.cxx | 4
formula/source/core/api/FormulaOpCodeMapperObj.cxx | 2
fpicker/source/aqua/FPentry.mm | 6
fpicker/source/aqua/SalAquaFilePicker.mm | 10 -
fpicker/source/aqua/SalAquaFolderPicker.mm | 10 -
fpicker/source/office/OfficeFilePicker.cxx | 4
fpicker/source/office/OfficeFolderPicker.cxx | 2
fpicker/source/office/fpsmartcontent.cxx | 2
fpicker/source/office/iodlg.cxx | 6
fpicker/source/office/iodlgimp.cxx | 2
fpicker/source/win32/filepicker/FPentry.cxx | 4
fpicker/source/win32/filepicker/FilePicker.cxx | 2
fpicker/source/win32/filepicker/VistaFilePicker.cxx | 2
fpicker/source/win32/filepicker/workbench/Test_fps.cxx | 4
fpicker/source/win32/folderpicker/FolderPicker.cxx | 2
fpicker/source/win32/folderpicker/workbench/Test_fops.cxx | 4
framework/source/classes/menumanager.cxx | 24 +--
framework/source/fwe/classes/addonsoptions.cxx | 70 +++++-----
framework/source/fwe/helper/actiontriggerhelper.cxx | 3
framework/source/layoutmanager/layoutmanager.cxx | 4
framework/source/layoutmanager/toolbarlayoutmanager.cxx | 26 +--
framework/source/services/autorecovery.cxx | 2
framework/source/services/taskcreatorsrv.cxx | 4
framework/source/uiconfiguration/globalsettings.cxx | 4
framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx | 6
framework/source/uiconfiguration/uicategorydescription.cxx | 4
framework/source/uiconfiguration/uiconfigurationmanager.cxx | 4
framework/source/uiconfiguration/windowstateconfiguration.cxx | 6
framework/source/uielement/addonstoolbarmanager.cxx | 16 +-
framework/source/uielement/buttontoolbarcontroller.cxx | 2
framework/source/uielement/comboboxtoolbarcontroller.cxx | 6
framework/source/uielement/complextoolbarcontroller.cxx | 6
framework/source/uielement/dropdownboxtoolbarcontroller.cxx | 6
framework/source/uielement/edittoolbarcontroller.cxx | 4
framework/source/uielement/fontmenucontroller.cxx | 4
framework/source/uielement/fontsizemenucontroller.cxx | 4
framework/source/uielement/genericstatusbarcontroller.cxx | 2
framework/source/uielement/generictoolbarcontroller.cxx | 4
framework/source/uielement/headermenucontroller.cxx | 4
framework/source/uielement/imagebuttontoolbarcontroller.cxx | 2
framework/source/uielement/langselectionmenucontroller.cxx | 8 -
framework/source/uielement/menubarmanager.cxx | 19 +-
framework/source/uielement/newmenucontroller.cxx | 2
framework/source/uielement/popuptoolbarcontroller.cxx | 6
framework/source/uielement/recentfilesmenucontroller.cxx | 2
framework/source/uielement/spinfieldtoolbarcontroller.cxx | 4
framework/source/uielement/statusbarmanager.cxx | 14 +-
framework/source/uielement/togglebuttontoolbarcontroller.cxx | 8 -
framework/source/uielement/toolbarmanager.cxx | 34 ++--
framework/source/uielement/toolbarsmenucontroller.cxx | 2
framework/source/uielement/uicommanddescription.cxx | 6
framework/source/uifactory/addonstoolboxfactory.cxx | 6
framework/source/uifactory/factoryconfiguration.cxx | 2
framework/source/uifactory/menubarfactory.cxx | 8 -
framework/source/uifactory/uicontrollerfactory.cxx | 8 -
framework/source/uifactory/uielementfactorymanager.cxx | 2
i18npool/qa/cppunit/test_breakiterator.cxx | 4
idlc/source/idlccompile.cxx | 2
io/test/stm/pipetest.cxx | 4
io/test/testconnection.cxx | 5
linguistic/source/dlistimp.cxx | 2
mysqlc/source/mysqlc_resultset.cxx | 4
odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx | 2
odk/examples/cpp/custompanel/ctp_factory.cxx | 2
odk/examples/cpp/custompanel/ctp_panel.cxx | 2
oox/source/drawingml/hyperlinkcontext.cxx | 4
oox/source/drawingml/shape.cxx | 22 +--
package/source/xstor/xstorage.cxx | 2
registry/source/keyimpl.cxx | 18 +-
reportdesign/source/filter/xml/xmlfilter.cxx | 4
reportdesign/source/ui/inspection/GeometryHandler.cxx | 2
reportdesign/source/ui/report/ReportController.cxx | 4
sal/test/testbootstrap.cxx | 6
salhelper/test/Symbols/loader.cxx | 4
salhelper/test/dynamicloader/loader.cxx | 4
sax/source/expatwrap/saxwriter.cxx | 22 +--
sax/test/sax/testsax.cxx | 10 -
sax/test/testcomponent.cxx | 4
sc/source/core/data/table3.cxx | 4
sc/source/core/tool/appoptio.cxx | 2
sc/source/core/tool/charthelper.cxx | 2
sc/source/core/tool/docoptio.cxx | 2
sc/source/core/tool/viewopti.cxx | 8 -
sc/source/filter/excel/xiescher.cxx | 2
sc/source/filter/html/htmlpars.cxx | 4
sc/source/filter/xml/xmlcoli.cxx | 2
sc/source/ui/app/inputhdl.cxx | 2
sc/source/ui/cctrl/tbzoomsliderctrl.cxx | 4
sc/source/ui/docshell/docfunc.cxx | 6
sc/source/ui/docshell/docsh8.cxx | 6
sc/source/ui/sidebar/AlignmentPropertyPanel.cxx | 6
sc/source/ui/sidebar/CellBorderStylePopup.cxx | 2
sc/source/ui/sidebar/CellLineStylePopup.cxx | 2
sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx | 6
sc/source/ui/unoobj/celllistsource.cxx | 4
sc/source/ui/unoobj/cellvaluebinding.cxx | 8 -
sc/source/ui/unoobj/chart2uno.cxx | 4
sc/source/ui/unoobj/datauno.cxx | 2
sc/source/ui/unoobj/scdetect.cxx | 2
sc/source/ui/unoobj/shapeuno.cxx | 4
sc/source/ui/unoobj/unodoc.cxx | 2
sc/source/ui/vba/vbaname.cxx | 2
sc/source/ui/vba/vbapagesetup.cxx | 2
sc/source/ui/vba/vbarange.cxx | 2
sc/source/ui/vba/vbaworkbook.cxx | 2
sc/source/ui/view/viewfun4.cxx | 2
sc/workben/celltrans/parse.py | 4
scripting/source/basprov/basprov.cxx | 8 -
scripting/source/protocolhandler/scripthandler.cxx | 2
scripting/source/provider/MasterScriptProvider.cxx | 12 -
scripting/source/provider/URIHelper.cxx | 21 +--
scripting/source/vbaevents/eventhelper.cxx | 2
sd/source/filter/xml/sdxmlwrp.cxx | 5
sd/source/ui/docshell/docshel4.cxx | 2
sd/source/ui/slidesorter/controller/SlsSlotManager.cxx | 2
sd/source/ui/table/tablefunction.cxx | 2
sd/source/ui/view/ViewShellImplementation.cxx | 2
sd/workben/custompanel/ctp_panel.cxx | 2
sdext/source/minimizer/impoptimizer.cxx | 6
sdext/source/minimizer/optimizerdialog.cxx | 4
sdext/source/pdfimport/pdfiadaptor.cxx | 2
sdext/source/pdfimport/wrapper/wrapper.cxx | 2
sfx2/source/appl/appuno.cxx | 2
sfx2/source/appl/imagemgr.cxx | 2
sfx2/source/appl/sfxhelp.cxx | 8 -
sfx2/source/appl/shutdowniconaqua.mm | 30 ++--
sfx2/source/dialog/dinfdlg.cxx | 2
sfx2/source/dialog/dockwin.cxx | 4
sfx2/source/dialog/filedlghelper.cxx | 8 -
sfx2/source/dialog/mailmodel.cxx | 20 +-
sfx2/source/doc/doctemplateslocal.cxx | 2
sfx2/source/doc/objmisc.cxx | 6
sfx2/source/doc/objstor.cxx | 12 -
sfx2/source/toolbox/tbxitem.cxx | 6
sfx2/source/view/frmload.cxx | 4
sfx2/source/view/viewsh.cxx | 22 +--
shell/source/backends/localebe/localebackend.cxx | 2
shell/source/backends/wininetbe/wininetbackend.cxx | 2
shell/source/win32/simplemail/smplmailclient.cxx | 4
slideshow/source/engine/slide/slideimpl.cxx | 2
sot/source/sdstor/stg.cxx | 4
stoc/source/javaloader/javaloader.cxx | 8 -
stoc/test/javavm/testjavavm.cxx | 3
stoc/test/testconv.cxx | 3
stoc/test/testregistry.cxx | 12 -
svl/source/numbers/zforscan.cxx | 2
svl/source/passwordcontainer/syscreds.cxx | 6
svtools/source/brwbox/brwbox3.cxx | 28 ++--
svtools/source/contnr/contentenumeration.cxx | 24 +--
svtools/source/contnr/svtabbx.cxx | 2
svtools/source/control/inettbc.cxx | 4
svtools/source/dialogs/ServerDetailsControls.cxx | 22 +--
svtools/source/dialogs/colrdlg.cxx | 2
svtools/source/dialogs/insdlg.cxx | 2
svtools/source/graphic/descriptor.cxx | 4
svtools/source/graphic/graphic.cxx | 2
svtools/source/graphic/provider.cxx | 2
svtools/source/graphic/renderer.cxx | 2
svtools/source/hatchwindow/hatchwindowfactory.cxx | 4
svtools/source/misc/imageresourceaccess.cxx | 6
svtools/source/misc/sampletext.cxx | 2
svtools/source/misc/templatefoldercache.cxx | 8 -
svtools/source/table/tablecontrol.cxx | 20 +-
svtools/source/uno/addrtempuno.cxx | 2
svtools/source/uno/toolboxcontroller.cxx | 2
svtools/source/uno/treecontrolpeer.cxx | 2
svtools/source/uno/unoevent.cxx | 4
svtools/source/uno/wizard/unowizard.cxx | 2
svx/source/accessibility/AccessibleFrameSelector.cxx | 6
svx/source/form/databaselocationinput.cxx | 2
svx/source/form/fmcontrollayout.cxx | 16 +-
svx/source/form/fmscriptingenv.cxx | 4
svx/source/form/fmtextcontrolshell.cxx | 8 -
svx/source/form/tbxform.cxx | 5
svx/source/form/xfm_addcondition.cxx | 2
svx/source/gallery2/galbrws2.cxx | 26 +--
svx/source/items/galleryitem.cxx | 10 -
svx/source/mnuctrls/clipboardctl.cxx | 2
svx/source/sidebar/area/AreaPropertyPanel.cxx | 8 -
svx/source/sidebar/area/AreaTransparencyGradientPopup.cxx | 2
svx/source/sidebar/debug/NotYetImplementedPanel.cxx | 2
svx/source/sidebar/graphic/GraphicPropertyPanel.cxx | 10 -
svx/source/sidebar/line/LinePropertyPanel.cxx | 12 -
svx/source/sidebar/line/LineWidthPopup.cxx | 4
svx/source/sidebar/paragraph/ParaBulletsPopup.cxx | 2
svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx | 4
svx/source/sidebar/paragraph/ParaLineSpacingPopup.cxx | 4
svx/source/sidebar/paragraph/ParaNumberingPopup.cxx | 2
svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 10 -
svx/source/sidebar/text/TextCharacterSpacingPopup.cxx | 4
svx/source/sidebar/text/TextUnderlinePopup.cxx | 2
svx/source/sidebar/tools/ColorPopup.cxx | 2
svx/source/stbctrls/insctrl.cxx | 2
svx/source/stbctrls/pszctrl.cxx | 2
svx/source/stbctrls/zoomsliderctrl.cxx | 4
svx/source/svdraw/svdograf.cxx | 6
svx/source/svdraw/svdoole2.cxx | 2
svx/source/table/cell.cxx | 4
svx/source/table/tablecolumn.cxx | 12 -
svx/source/table/tablerow.cxx | 12 -
svx/source/tbxctrls/extrusioncontrols.cxx | 12 -
svx/source/tbxctrls/fillctrl.cxx | 8 -
svx/source/tbxctrls/fontworkgallery.cxx | 4
svx/source/tbxctrls/formatpaintbrushctrl.cxx | 2
svx/source/tbxctrls/grafctrl.cxx | 2
svx/source/tbxctrls/itemwin.cxx | 6
svx/source/tbxctrls/layctrl.cxx | 8 -
svx/source/tbxctrls/linectrl.cxx | 4
svx/source/tbxctrls/tbunocontroller.cxx | 6
svx/source/unodraw/UnoGraphicExporter.cxx | 6
svx/source/unodraw/UnoNamespaceMap.cxx | 2
svx/source/unodraw/unomod.cxx | 2
svx/source/unogallery/unogalitem.cxx | 2
svx/source/unogallery/unogaltheme.cxx | 2
svx/source/unogallery/unogalthemeprovider.cxx | 2
svx/source/xml/xmlgrhlp.cxx | 12 -
svx/source/xml/xmlxtimp.cxx | 12 -
svx/source/xoutdev/xattr.cxx | 12 -
svx/source/xoutdev/xattrbmp.cxx | 9 -
svx/source/xoutdev/xtable.cxx | 2
svx/workben/msview/xmlconfig.cxx | 2
sw/source/core/layout/dumpfilter.cxx | 2
sw/source/core/unocore/unoframe.cxx | 2
sw/source/core/unocore/unostyle.cxx | 2
sw/source/filter/html/htmlcss1.cxx | 6
sw/source/filter/xml/xmlexp.cxx | 14 +-
sw/source/ui/ribbar/workctrl.cxx | 10 -
sw/source/ui/sidebar/PageMarginControl.cxx | 10 -
sw/source/ui/uiview/view.cxx | 24 +--
sw/source/ui/uno/unodoc.cxx | 6
sw/source/ui/utlui/viewlayoutctrl.cxx | 2
sw/source/ui/vba/vbacheckbox.cxx | 2
testtools/source/performance/ubobject.cxx | 10 -
testtools/source/performance/ubtest.cxx | 26 +--
toolkit/source/controls/dialogcontrol.cxx | 8 -
toolkit/source/controls/tabpagemodel.cxx | 8 -
tubes/qa/test_manager.cxx | 4
ucb/source/core/FileAccess.cxx | 7 -
ucb/source/ucp/cmis/cmis_content.cxx | 6
ucb/source/ucp/ext/ucpext_content.cxx | 8 -
ucb/source/ucp/ext/ucpext_datasupplier.cxx | 2
ucb/source/ucp/ext/ucpext_provider.cxx | 4
ucb/source/ucp/file/filstr.cxx | 2
ucb/source/ucp/hierarchy/hierarchydatasource.cxx | 16 +-
ucb/source/ucp/hierarchy/hierarchyprovider.cxx | 2
ucb/source/ucp/package/pkguri.cxx | 14 +-
ucb/source/ucp/tdoc/tdoc_docmgr.cxx | 2
ucb/source/ucp/webdav/DAVProperties.cxx | 2
ucb/source/ucp/webdav/webdavcontent.cxx | 26 +--
ucb/source/ucp/webdav/webdavcontentcaps.cxx | 4
ucb/source/ucp/webdav/webdavprovider.cxx | 14 --
unotest/source/cpp/macros_test.cxx | 2
unotools/source/config/fontcfg.cxx | 4
uui/source/iahndl.cxx | 2
vbahelper/source/vbahelper/vbadocumentsbase.cxx | 2
vcl/android/androidinst.cxx | 2
vcl/aqua/source/app/salsys.cxx | 12 -
vcl/aqua/source/gdi/aquaprintaccessoryview.mm | 12 -
vcl/source/app/unohelp.cxx | 4
vcl/source/filter/FilterConfigCache.cxx | 2
vcl/source/filter/FilterConfigItem.cxx | 6
vcl/source/gdi/graph.cxx | 8 -
vcl/source/gdi/oldprintadaptor.cxx | 2
vcl/source/gdi/print.cxx | 2
vcl/source/gdi/print3.cxx | 42 +++---
vcl/unx/generic/app/saldisp.cxx | 2
vcl/unx/generic/printer/ppdparser.cxx | 4
vcl/unx/generic/window/salframe.cxx | 2
vcl/unx/gtk/a11y/atkaction.cxx | 2
vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | 4
vcl/unx/kde/UnxFilePicker.cxx | 6
vcl/workben/svpclient.cxx | 4
vcl/workben/vcldemo.cxx | 4
writerfilter/source/filter/ImportFilter.cxx | 2
writerfilter/source/filter/WriterFilterDetection.cxx | 2
writerperfect/source/draw/CDRImportFilter.cxx | 4
writerperfect/source/draw/CMXImportFilter.cxx | 4
writerperfect/source/draw/FreehandImportFilter.cxx | 4
writerperfect/source/draw/MSPUBImportFilter.cxx | 4
writerperfect/source/draw/VisioImportFilter.cxx | 4
writerperfect/source/draw/WPGImportFilter.cxx | 4
writerperfect/source/writer/EBookImportFilter.cxx | 4
writerperfect/source/writer/MSWorksImportFilter.cxx | 4
writerperfect/source/writer/MWAWImportFilter.cxx | 4
writerperfect/source/writer/WordPerfectImportFilter.cxx | 6
xmlhelp/source/cxxhelp/provider/content.cxx | 7 -
xmlhelp/source/cxxhelp/provider/resultsetbase.cxx | 4
xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx | 4
xmlhelp/source/cxxhelp/provider/resultsetforroot.cxx | 2
xmlhelp/source/treeview/tvfactory.cxx | 6
xmloff/source/chart/SchXMLSeries2Context.cxx | 4
xmloff/source/chart/SchXMLTools.cxx | 8 -
xmloff/source/draw/eventimp.cxx | 26 +--
xmloff/source/draw/shapeexport.cxx | 29 ++--
xmloff/source/style/xmlnumi.cxx | 6
xmloff/source/text/XMLIndexTabStopEntryContext.cxx | 2
xmloff/source/text/XMLTextListAutoStylePool.cxx | 2
xmloff/source/text/txtparae.cxx | 22 +--
xmloff/source/transform/TransformerBase.cxx | 4
xmloff/source/xforms/XFormsInstanceContext.cxx | 6
xmloff/source/xforms/xformsexport.cxx | 4
xmlsecurity/source/component/documentdigitalsignatures.cxx | 2
xmlsecurity/source/dialogs/certificateviewer.cxx | 7 -
xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx | 2
xmlsecurity/source/xmlsec/nss/nssinitializer.cxx | 2
408 files changed, 1220 insertions(+), 1297 deletions(-)
New commits:
commit f4479f5478a2821faf0974a7b83453b177cf65d3
Author: Noel Grandin <noel at peralex.com>
Date: Tue Nov 19 10:28:52 2013 +0200
simplify if condition
Change-Id: I11d49a1ca721c4bc9c9e35d2735bd66e5a9c04dd
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 05de585..d34e64b 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -2753,7 +2753,7 @@ void ScInputHandler::EnterHandler( sal_uInt8 nBlockMode )
{
// keine typographische Anfuehrungszeichen in Formeln
- if (!aString.isEmpty() && aString[0] == '=')
+ if (aString.startsWith("="))
{
SvxAutoCorrect* pAuto = SvxAutoCorrCfg::Get().GetAutoCorrect();
if ( pAuto )
commit 610b2b94b33b0fc2d79cd515f9e293ca1c2610e8
Author: Noel Grandin <noel at peralex.com>
Date: Fri Nov 15 11:05:19 2013 +0200
remove unnecessary use of OUString constructor when assigning
change code like
aStr = OUString("xxxx");
to
aStr = "xxxx";
Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
diff --git a/accessibility/source/standard/vclxaccessiblecombobox.cxx b/accessibility/source/standard/vclxaccessiblecombobox.cxx
index 5468b2e..8c8fcf3 100644
--- a/accessibility/source/standard/vclxaccessiblecombobox.cxx
+++ b/accessibility/source/standard/vclxaccessiblecombobox.cxx
@@ -80,7 +80,7 @@ Sequence< OUString > VCLXAccessibleComboBox::getSupportedServiceNames (void)
Sequence< OUString > aNames = VCLXAccessibleBox::getSupportedServiceNames();
sal_Int32 nLength = aNames.getLength();
aNames.realloc( nLength + 1 );
- aNames[nLength] = OUString( "com.sun.star.accessibility.AccessibleComboBox" );
+ aNames[nLength] = "com.sun.star.accessibility.AccessibleComboBox";
return aNames;
}
diff --git a/accessibility/source/standard/vclxaccessiblestatusbar.cxx b/accessibility/source/standard/vclxaccessiblestatusbar.cxx
index a5c3da9..e120fc0 100644
--- a/accessibility/source/standard/vclxaccessiblestatusbar.cxx
+++ b/accessibility/source/standard/vclxaccessiblestatusbar.cxx
@@ -292,7 +292,7 @@ OUString VCLXAccessibleStatusBar::getImplementationName() throw (RuntimeExceptio
Sequence< OUString > VCLXAccessibleStatusBar::getSupportedServiceNames() throw (RuntimeException)
{
Sequence< OUString > aNames(1);
- aNames[0] = OUString( "com.sun.star.awt.AccessibleStatusBar" );
+ aNames[0] = "com.sun.star.awt.AccessibleStatusBar";
return aNames;
}
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 87556d8..76b717f 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -252,8 +252,8 @@ EditorWindow::EditorWindow (Window* pParent, ModulWindow* pModulWindow) :
notifier_ = n;
}
Sequence< OUString > s(2);
- s[0] = OUString( "FontHeight" );
- s[1] = OUString( "FontName" );
+ s[0] = "FontHeight";
+ s[1] = "FontName";
n->addPropertiesChangeListener(s, listener_.get());
}
@@ -779,9 +779,9 @@ void EditorWindow::HandleProcedureCompletion()
OUString sText("\nEnd ");
aSel = GetEditView()->GetSelection();
if( sProcType.equalsIgnoreAsciiCase("function") )
- sText += OUString( "Function\n" );
+ sText += "Function\n";
if( sProcType.equalsIgnoreAsciiCase("sub") )
- sText += OUString( "Sub\n" );
+ sText += "Sub\n";
if( nLine+1 == pEditEngine->GetParagraphCount() )
{
@@ -2539,7 +2539,7 @@ void WatchTreeListBox::UpdateWatches( bool bBasicStopped )
}
else
{
- aWatchStr = OUString( "Null" );
+ aWatchStr = "Null";
if( pItem->mpObject != NULL )
{
bCollapse = true;
diff --git a/basic/source/comp/io.cxx b/basic/source/comp/io.cxx
index 55877b0..90e3dbb 100644
--- a/basic/source/comp/io.cxx
+++ b/basic/source/comp/io.cxx
@@ -115,7 +115,7 @@ void SbiParser::Line()
aGen.Statement();
KeywordSymbolInfo aInfo;
- aInfo.m_aKeywordSymbol = OUString( "line" );
+ aInfo.m_aKeywordSymbol = "line";
aInfo.m_eSbxDataType = GetType();
aInfo.m_eTok = SYMBOL;
@@ -278,7 +278,7 @@ void SbiParser::Name()
aGen.Statement();
KeywordSymbolInfo aInfo;
- aInfo.m_aKeywordSymbol = OUString( "name" );
+ aInfo.m_aKeywordSymbol = "name";
aInfo.m_eSbxDataType = GetType();
aInfo.m_eTok = SYMBOL;
diff --git a/bridges/test/java_uno/acquire/testacquire.cxx b/bridges/test/java_uno/acquire/testacquire.cxx
index 7a8de19..0aacd14 100644
--- a/bridges/test/java_uno/acquire/testacquire.cxx
+++ b/bridges/test/java_uno/acquire/testacquire.cxx
@@ -477,7 +477,7 @@ OUString Service::getImplementationName_static() {
css::uno::Sequence< OUString > Service::getSupportedServiceNames_static() {
css::uno::Sequence< OUString > names(1);
- names[0] = OUString( "com.sun.star.test.bridges.testacquire" );
+ names[0] = "com.sun.star.test.bridges.testacquire";
return names;
}
@@ -513,7 +513,7 @@ bool writeInfo(void * registryKey, OUString const & implementationName,
css::uno::Sequence< OUString > const & serviceNames) {
OUString keyName( "/" );
keyName += implementationName;
- keyName += OUString( "/UNO/SERVICES" );
+ keyName += "/UNO/SERVICES";
css::uno::Reference< css::registry::XRegistryKey > key;
try {
key = static_cast< css::registry::XRegistryKey * >(registryKey)->
diff --git a/bridges/test/java_uno/equals/testequals.cxx b/bridges/test/java_uno/equals/testequals.cxx
index 9124b75..393202c 100644
--- a/bridges/test/java_uno/equals/testequals.cxx
+++ b/bridges/test/java_uno/equals/testequals.cxx
@@ -122,7 +122,7 @@ Service::get(OUString const & rName) throw (css::uno::RuntimeException)
css::uno::Sequence< OUString > Service::getSupportedServiceNames_static()
{
css::uno::Sequence< OUString > aNames(1);
- aNames[0] = OUString( "com.sun.star.test.bridges.testequals" );
+ aNames[0] = "com.sun.star.test.bridges.testequals";
return aNames;
}
@@ -175,7 +175,7 @@ bool writeInfo(void * pRegistryKey, sal_Char const * pImplementationName,
{
OUString aKeyName( "/" );
aKeyName += OUString::createFromAscii(pImplementationName);
- aKeyName += OUString( "/UNO/SERVICES" );
+ aKeyName += "/UNO/SERVICES";
css::uno::Reference< css::registry::XRegistryKey > xKey;
try
{
diff --git a/bridges/test/testcomp.cxx b/bridges/test/testcomp.cxx
index d9d19cf..7851547 100644
--- a/bridges/test/testcomp.cxx
+++ b/bridges/test/testcomp.cxx
@@ -69,7 +69,7 @@ void parseCommandLine( char *argv[] ,
if( -1 == nIndex )
{
*pConnection = sTemp;
- *pProtocol = OUString( "iiop" );
+ *pProtocol = "iiop";
}
else
{
diff --git a/canvas/workben/canvasdemo.cxx b/canvas/workben/canvasdemo.cxx
index fe55c57..ae4a90d 100644
--- a/canvas/workben/canvasdemo.cxx
+++ b/canvas/workben/canvasdemo.cxx
@@ -138,8 +138,8 @@ class DemoRenderer
lang::Locale aLocale;
rendering::FontInfo aFontInfo;
- aFontInfo.FamilyName = OUString( "Swiss" );
- aFontInfo.StyleName = OUString( "SansSerif" );
+ aFontInfo.FamilyName = "Swiss";
+ aFontInfo.StyleName = "SansSerif";
geometry::Matrix2D aFontMatrix( 1, 0,
0, 1 );
rendering::FontRequest aFontRequest( aFontInfo, 12.0, 0.0, aLocale );
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx
index 597e2be..30d0d52 100644
--- a/chart2/source/tools/InternalDataProvider.cxx
+++ b/chart2/source/tools/InternalDataProvider.cxx
@@ -1092,7 +1092,7 @@ OUString SAL_CALL InternalDataProvider::convertRangeToXML( const OUString& aRang
uno::RuntimeException)
{
XMLRangeHelper::CellRange aRange;
- aRange.aTableName = OUString( "local-table" );
+ aRange.aTableName = "local-table";
// attention: this data provider has the limitation that it stores
// internally if data comes from columns or rows. It is intended for
diff --git a/comphelper/source/xml/ofopxmlhelper.cxx b/comphelper/source/xml/ofopxmlhelper.cxx
index babde9a..a595f25 100644
--- a/comphelper/source/xml/ofopxmlhelper.cxx
+++ b/comphelper/source/xml/ofopxmlhelper.cxx
@@ -41,7 +41,7 @@ namespace comphelper {
uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OFOPXMLHelper::ReadRelationsInfoSequence( const uno::Reference< io::XInputStream >& xInStream, const OUString aStreamName, const uno::Reference< uno::XComponentContext > xContext )
throw( uno::Exception )
{
- OUString aStringID = OUString( "_rels/" );
+ OUString aStringID = "_rels/";
aStringID += aStreamName;
return ReadSequence_Impl( xInStream, aStringID, RELATIONINFO_FORMAT, xContext );
}
@@ -50,7 +50,7 @@ uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OFOPXMLHelper::Read
uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OFOPXMLHelper::ReadContentTypeSequence( const uno::Reference< io::XInputStream >& xInStream, const uno::Reference< uno::XComponentContext > xContext )
throw( uno::Exception )
{
- OUString aStringID = OUString( "[Content_Types].xml" );
+ OUString aStringID = "[Content_Types].xml";
return ReadSequence_Impl( xInStream, aStringID, CONTENTTYPE_FORMAT, xContext );
}
diff --git a/connectivity/source/commontools/parameters.cxx b/connectivity/source/commontools/parameters.cxx
index 678bdae..aad82fe 100644
--- a/connectivity/source/commontools/parameters.cxx
+++ b/connectivity/source/commontools/parameters.cxx
@@ -228,14 +228,14 @@ namespace dbtools
// format is:
// <detail_column> = :<new_param_name>
sFilter = quoteName( m_sIdentifierQuoteString, _rDetailLink );
- sFilter += OUString( " = :" );
+ sFilter += " = :";
// generate a parameter name which is not already used
- _rNewParamName = OUString( "link_from_" );
+ _rNewParamName = "link_from_";
_rNewParamName += convertName2SQLName( _rMasterColumn, m_sSpecialCharacters );
while ( m_aParameterInformation.find( _rNewParamName ) != m_aParameterInformation.end() )
{
- _rNewParamName += OUString( "_" );
+ _rNewParamName += "_";
}
return sFilter += _rNewParamName;
diff --git a/connectivity/source/commontools/statementcomposer.cxx b/connectivity/source/commontools/statementcomposer.cxx
index 51b492c..791a06b 100644
--- a/connectivity/source/commontools/statementcomposer.cxx
+++ b/connectivity/source/commontools/statementcomposer.cxx
@@ -126,7 +126,7 @@ namespace dbtools
if ( _rData.sCommand.isEmpty() )
break;
- sStatement = OUString( "SELECT * FROM " );
+ sStatement = "SELECT * FROM ";
OUString sCatalog, sSchema, sTable;
qualifiedNameComponents( _rData.xConnection->getMetaData(), _rData.sCommand, sCatalog, sSchema, sTable, eInDataManipulation );
diff --git a/connectivity/source/drivers/hsqldb/HConnection.cxx b/connectivity/source/drivers/hsqldb/HConnection.cxx
index 40e9a82..f227e81 100644
--- a/connectivity/source/drivers/hsqldb/HConnection.cxx
+++ b/connectivity/source/drivers/hsqldb/HConnection.cxx
@@ -358,7 +358,7 @@ namespace connectivity { namespace hsqldb
// ask the provider to obtain a graphic
Sequence< PropertyValue > aMediaProperties( 1 );
- aMediaProperties[0].Name = OUString( "URL" );
+ aMediaProperties[0].Name = "URL";
aMediaProperties[0].Value <<= sImageURL;
xGraphic = xProvider->queryGraphic( aMediaProperties );
OSL_ENSURE( xGraphic.is(), "OHsqlConnection::impl_getTextTableIcon_nothrow: the provider did not give us a graphic object!" );
diff --git a/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx b/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx
index ce6d2fd..1b24993 100644
--- a/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx
+++ b/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx
@@ -560,7 +560,7 @@ OUString java_sql_DatabaseMetaData::impl_callStringMethod( const char* _pMethodN
{
OUString sLoggedResult( sReturn );
if ( sLoggedResult.isEmpty() )
- sLoggedResult = OUString( "<empty string>" );
+ sLoggedResult = "<empty string>";
m_aLogger.log( LogLevel::FINEST, STR_LOG_META_DATA_RESULT, _pMethodName, sLoggedResult );
}
diff --git a/connectivity/source/drivers/mork/MDriver.cxx b/connectivity/source/drivers/mork/MDriver.cxx
index 851e18e..33a22aa 100644
--- a/connectivity/source/drivers/mork/MDriver.cxx
+++ b/connectivity/source/drivers/mork/MDriver.cxx
@@ -48,7 +48,7 @@ OUString MorkDriver::getImplementationName_Static( ) throw(css::uno::RuntimeExc
css::uno::Sequence< OUString > MorkDriver::getSupportedServiceNames_Static( ) throw (css::uno::RuntimeException)
{
css::uno::Sequence< OUString > aSNS(1);
- aSNS[0] = OUString( "com.sun.star.sdbc.Driver");
+ aSNS[0] = "com.sun.star.sdbc.Driver";
return aSNS;
}
diff --git a/connectivity/source/drivers/mozab/MConnection.cxx b/connectivity/source/drivers/mozab/MConnection.cxx
index 685c13e..8440d50 100644
--- a/connectivity/source/drivers/mozab/MConnection.cxx
+++ b/connectivity/source/drivers/mozab/MConnection.cxx
@@ -192,8 +192,8 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
// * for windows system address book
// "sdbc:address:outlookexp:" -> aboutlookdirectory://oe/
//
- m_sBindDN = OUString( "");
- m_sPassword = OUString( "");
+ m_sBindDN = "";
+ m_sPassword = "";
m_bUseSSL = sal_False;
if ( aAddrbookScheme.equalsAscii( getSdbcScheme( SDBC_MOZILLA ) ) ) {
@@ -280,19 +280,19 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
throwSQLException( STR_NO_HOSTNAME, *this );
if ( nPortNumber > 0 ) {
- m_sMozillaURI += OUString( ":" );
+ m_sMozillaURI += ":";
m_sMozillaURI += OUString::number( nPortNumber );
}
if ( !sBaseDN.isEmpty() ) {
- m_sMozillaURI += OUString( "/" );
+ m_sMozillaURI += "/";
m_sMozillaURI += sBaseDN;
}
else
throwSQLException( STR_NO_BASEDN, *this );
// Addition of a fake query to enable the Mozilla LDAP directory to work correctly.
- m_sMozillaURI += OUString( "?(or(DisplayName,=,DontDoThisAtHome)))");
+ m_sMozillaURI += "?(or(DisplayName,=,DontDoThisAtHome)))";
}
else if ( aAddrbookScheme.equalsAscii( getSdbcScheme( SDBC_OUTLOOK_MAPI ) ) ) {
diff --git a/connectivity/source/drivers/mozab/MDriver.cxx b/connectivity/source/drivers/mozab/MDriver.cxx
index 8d78938..0f945dc 100644
--- a/connectivity/source/drivers/mozab/MDriver.cxx
+++ b/connectivity/source/drivers/mozab/MDriver.cxx
@@ -93,7 +93,7 @@ Sequence< OUString > MozabDriver::getSupportedServiceNames_Static( ) throw (Run
// which service is supported
// for more information @see com.sun.star.sdbc.Driver
Sequence< OUString > aSNS( 1 );
- aSNS[0] = OUString( "com.sun.star.sdbc.Driver");
+ aSNS[0] = "com.sun.star.sdbc.Driver";
return aSNS;
}
diff --git a/connectivity/source/drivers/mozab/MServices.cxx b/connectivity/source/drivers/mozab/MServices.cxx
index 48e867b..3469a62 100644
--- a/connectivity/source/drivers/mozab/MServices.cxx
+++ b/connectivity/source/drivers/mozab/MServices.cxx
@@ -94,7 +94,7 @@ typedef void* (SAL_CALL * OMozillaBootstrap_CreateInstanceFunction)(const Refere
{
// get the symbol for the method creating the factory
- const OUString sFactoryCreationFunc = OUString( "OMozillaBootstrap_CreateInstance");
+ const OUString sFactoryCreationFunc = "OMozillaBootstrap_CreateInstance";
// reinterpret_cast<OMozabConnection_CreateInstanceFunction> removed GNU C
OMozillaBootstrap_CreateInstanceFunction s_pCreationFunc = (OMozillaBootstrap_CreateInstanceFunction)osl_getFunctionSymbol(s_hModule, sFactoryCreationFunc.pData);
@@ -130,7 +130,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL mozab_component_getFactory(
else if ( aImplName == "com.sun.star.comp.mozilla.MozillaBootstrap" )
{
Sequence< OUString > aSNS( 1 );
- aSNS[0] = OUString( "com.sun.star.mozilla.MozillaBootstrap");
+ aSNS[0] = "com.sun.star.mozilla.MozillaBootstrap";
aReq.CREATE_PROVIDER(
aImplName,
aSNS,
diff --git a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx
index b68424f..b9c4629 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx
@@ -90,7 +90,7 @@ Sequence< OUString > MozillaBootstrap::getSupportedServiceNames_Static( ) throw
// which service is supported
// for more information @see com.sun.star.mozilla.MozillaBootstrap
Sequence< OUString > aSNS( 1 );
- aSNS[0] = OUString( "com.sun.star.mozilla.MozillaBootstrap");
+ aSNS[0] = "com.sun.star.mozilla.MozillaBootstrap";
return aSNS;
}
@@ -240,7 +240,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL mozbootstrap_component_getFactory
if ( aImplName == "com.sun.star.comp.mozilla.MozillaBootstrap" )
{
Sequence< OUString > aSNS( 1 );
- aSNS[0] = OUString( "com.sun.star.mozilla.MozillaBootstrap");
+ aSNS[0] = "com.sun.star.mozilla.MozillaBootstrap";
xFactory = ::cppu::createSingleFactory(
reinterpret_cast< XMultiServiceFactory* > ( pServiceManager),
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index c42dca5..34849a0 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -1523,7 +1523,7 @@ Reference< XInterface > SAL_CALL ColorPicker_createInstance( Reference< XCompone
Sequence< OUString > SAL_CALL ColorPicker_getSupportedServiceNames() throw( RuntimeException )
{
Sequence< OUString > seq(1);
- seq[0] = OUString( "com.sun.star.ui.dialogs.ColorPicker" );
+ seq[0] = "com.sun.star.ui.dialogs.ColorPicker";
return seq;
}
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index 86e4058..ddfb173 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -133,8 +133,8 @@ void SearchThread::ImplSearch( const INetURLObject& rStartURL,
Content aCnt( rStartURL.GetMainURL( INetURLObject::NO_DECODE ), xEnv, comphelper::getProcessComponentContext() );
Sequence< OUString > aProps( 2 );
- aProps.getArray()[ 0 ] = OUString( "IsFolder" );
- aProps.getArray()[ 1 ] = OUString( "IsDocument" );
+ aProps.getArray()[ 0 ] = "IsFolder";
+ aProps.getArray()[ 1 ] = "IsDocument";
::com::sun::star::uno::Reference< XResultSet > xResultSet(
aCnt.createCursor( aProps, INCLUDE_FOLDERS_AND_DOCUMENTS ) );
diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx
index 7bd2c76..12c76bc 100644
--- a/cui/source/dialogs/hlmarkwn.cxx
+++ b/cui/source/dialogs/hlmarkwn.cxx
@@ -323,7 +323,7 @@ sal_Bool SvxHlinkDlgMarkWnd::RefreshFromDoc(OUString aURL)
try
{
uno::Sequence< beans::PropertyValue > aArg(1);
- aArg.getArray()[0].Name = OUString( "Hidden" );
+ aArg.getArray()[0].Name = "Hidden";
aArg.getArray()[0].Value <<= (sal_Bool) sal_True;
xComp = xLoader->loadComponentFromURL( aURL, OUString( "_blank" ), 0, aArg );
}
diff --git a/dbaccess/source/ext/macromigration/macromigrationwizard.cxx b/dbaccess/source/ext/macromigration/macromigrationwizard.cxx
index 4c22122..f5a7324 100644
--- a/dbaccess/source/ext/macromigration/macromigrationwizard.cxx
+++ b/dbaccess/source/ext/macromigration/macromigrationwizard.cxx
@@ -153,7 +153,7 @@ namespace dbmm
Sequence< OUString > SAL_CALL MacroMigrationDialogService::getSupportedServiceNames_static() throw(RuntimeException)
{
Sequence< OUString > aServices(1);
- aServices[0] = OUString( "com.sun.star.sdb.application.MacroMigrationWizard" );
+ aServices[0] = "com.sun.star.sdb.application.MacroMigrationWizard";
return aServices;
}
diff --git a/dbaccess/source/ext/macromigration/migrationengine.cxx b/dbaccess/source/ext/macromigration/migrationengine.cxx
index 34040d6..9951257 100644
--- a/dbaccess/source/ext/macromigration/migrationengine.cxx
+++ b/dbaccess/source/ext/macromigration/migrationengine.cxx
@@ -286,7 +286,7 @@ namespace dbmm
Reference< XCommandProcessor > xCommandProcessor( _rDocument.xCommandProcessor, UNO_SET_THROW );
Command aCommand;
- aCommand.Name = OUString( "openDesign" );
+ aCommand.Name = "openDesign";
aCommand.Argument <<= aLoadArgs.getPropertyValues();
Reference< XComponent > xDocComponent(
xCommandProcessor->execute(
diff --git a/dbaccess/source/sdbtools/connection/connectiontools.cxx b/dbaccess/source/sdbtools/connection/connectiontools.cxx
index cd212ea..5a218c3 100644
--- a/dbaccess/source/sdbtools/connection/connectiontools.cxx
+++ b/dbaccess/source/sdbtools/connection/connectiontools.cxx
@@ -119,7 +119,7 @@ namespace sdbtools
Sequence< OUString > SAL_CALL ConnectionTools::getSupportedServiceNames_static()
{
Sequence< OUString > aSupported( 1 );
- aSupported[0] = OUString( "com.sun.star.sdb.tools.ConnectionTools" );
+ aSupported[0] = "com.sun.star.sdb.tools.ConnectionTools";
return aSupported;
}
diff --git a/dbaccess/source/ui/app/subcomponentmanager.cxx b/dbaccess/source/ui/app/subcomponentmanager.cxx
index 1dcbe7c..f46db02 100644
--- a/dbaccess/source/ui/app/subcomponentmanager.cxx
+++ b/dbaccess/source/ui/app/subcomponentmanager.cxx
@@ -275,7 +275,7 @@ namespace dbaui
sal_Int32 nCommandIdentifier = _rxCommandProcessor->createCommandIdentifier();
Command aCommand;
- aCommand.Name = OUString( "close" );
+ aCommand.Name = "close";
_rxCommandProcessor->execute( aCommand, nCommandIdentifier, NULL );
bSuccess = true;
}
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx
index dd362aa..3e5a3c7 100644
--- a/dbaccess/source/ui/browser/brwctrlr.cxx
+++ b/dbaccess/source/ui/browser/brwctrlr.cxx
@@ -433,7 +433,7 @@ OUString SAL_CALL SbaXDataBrowserController::FormControllerImpl::getMode( ) thr
Sequence< OUString > SAL_CALL SbaXDataBrowserController::FormControllerImpl::getSupportedModes( ) throw (RuntimeException)
{
Sequence< OUString > aModes(1);
- aModes[1] = OUString( "DataMode" );
+ aModes[1] = "DataMode";
return aModes;
}
diff --git a/dbaccess/source/ui/dlg/queryorder.cxx b/dbaccess/source/ui/dlg/queryorder.cxx
index 12aa23c..0536bab 100644
--- a/dbaccess/source/ui/dlg/queryorder.cxx
+++ b/dbaccess/source/ui/dlg/queryorder.cxx
@@ -155,8 +155,8 @@ void DlgOrderCrit::impl_initializeOrderList_nothrow()
{
try
{
- const OUString sNameProperty = OUString( "Name" );
- const OUString sAscendingProperty = OUString( "IsAscending" );
+ const OUString sNameProperty = "Name";
+ const OUString sAscendingProperty = "IsAscending";
Reference< XIndexAccess > xOrderColumns( m_xQueryComposer->getOrderColumns(), UNO_QUERY_THROW );
sal_Int32 nColumns = xOrderColumns->getCount();
diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx
index 4b4a5bb..d728f25 100644
--- a/dbaccess/source/ui/misc/WCopyTable.cxx
+++ b/dbaccess/source/ui/misc/WCopyTable.cxx
@@ -892,7 +892,7 @@ IMPL_LINK_NOARG(OCopyTableWizard, ImplOKHdl)
m_bCreatePrimaryKeyColumn = sal_True;
m_aKeyName = pPage->GetKeyName();
if ( m_aKeyName.isEmpty() )
- m_aKeyName = OUString( "ID" );
+ m_aKeyName = "ID";
m_aKeyName = createUniqueName( m_aKeyName );
sal_Int32 nBreakPos2 = 0;
CheckColumns(nBreakPos2);
diff --git a/dbaccess/source/ui/misc/linkeddocuments.cxx b/dbaccess/source/ui/misc/linkeddocuments.cxx
index efcd1f5..56220db 100644
--- a/dbaccess/source/ui/misc/linkeddocuments.cxx
+++ b/dbaccess/source/ui/misc/linkeddocuments.cxx
@@ -138,7 +138,7 @@ namespace dbaui
switch ( _eOpenMode )
{
case E_OPEN_NORMAL:
- sOpenMode = OUString( "open" );
+ sOpenMode = "open";
break;
case E_OPEN_FOR_MAIL:
@@ -146,7 +146,7 @@ namespace dbaui
// fall through
case E_OPEN_DESIGN:
- sOpenMode = OUString( "openDesign" );
+ sOpenMode = "openDesign";
break;
default:
@@ -301,7 +301,7 @@ namespace dbaui
aCommandArgs.put( "OpenMode", aOpenModeArg );
Command aCommand;
- aCommand.Name = OUString( "openDesign" );
+ aCommand.Name = "openDesign";
aCommand.Argument <<= aCommandArgs.getPropertyValues();
WaitObject aWaitCursor( m_pDialogParent );
xNewDocument.set( xContent->execute( aCommand, xContent->createCommandIdentifier(), NULL ), UNO_QUERY );
diff --git a/dbaccess/source/ui/querydesign/TableFieldDescription.cxx b/dbaccess/source/ui/querydesign/TableFieldDescription.cxx
index e70b23b..92cd40c 100644
--- a/dbaccess/source/ui/querydesign/TableFieldDescription.cxx
+++ b/dbaccess/source/ui/querydesign/TableFieldDescription.cxx
@@ -208,7 +208,7 @@ void OTableFieldDesc::Save( ::comphelper::NamedValueCollection& o_rSettings, con
++crit, ++c
)
{
- aCriteria[c].Name = OUString( "Criterion_" ) + OUString::number( c );
+ aCriteria[c].Name = "Criterion_" + OUString::number( c );
aCriteria[c].Value <<= *crit;
}
diff --git a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx
index 63724e5..a21f771 100644
--- a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx
+++ b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx
@@ -59,7 +59,7 @@ long LimitBoxImpl::Notify( NotifyEvent& rNEvt )
{
nHandled = LimitBox::Notify( rNEvt );
uno::Sequence< beans::PropertyValue > aArgs( 1 );
- aArgs[0].Name = OUString( "DBLimit.Value" );
+ aArgs[0].Name = "DBLimit.Value";
aArgs[0].Value = uno::makeAny( GetValue() );
m_pControl->dispatchCommand( aArgs );
break;
@@ -225,7 +225,7 @@ void LimitBoxController::dispatchCommand(
uno::Reference< frame::XDispatch > xDispatch;
uno::Reference< util::XURLTransformer > xURLTransformer = getURLTransformer();
- aURL.Complete = OUString( ".uno:DBLimit" );
+ aURL.Complete = ".uno:DBLimit";
xURLTransformer->parseStrict( aURL );
xDispatch = xDispatchProvider->queryDispatch( aURL, OUString(), 0 );
if ( xDispatch.is() )
diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx
index 065bb3d..1d6c9f5 100644
--- a/desktop/source/app/appinit.cxx
+++ b/desktop/source/app/appinit.cxx
@@ -274,7 +274,7 @@ void Desktop::CreateTemporaryDirectory()
if ( aResId.GetResMgr()->IsAvailable( aResId ))
aMsg = OUString( aResId );
else
- aMsg = OUString( "The path manager is not available.\n" );
+ aMsg = "The path manager is not available.\n";
e.Message = aMsg + e.Message;
throw;
}
diff --git a/desktop/source/migration/services/wordbookmigration.cxx b/desktop/source/migration/services/wordbookmigration.cxx
index c291ac7..b2131fd 100644
--- a/desktop/source/migration/services/wordbookmigration.cxx
+++ b/desktop/source/migration/services/wordbookmigration.cxx
@@ -67,7 +67,7 @@ namespace migration
if ( !pNames )
{
static Sequence< OUString > aNames(1);
- aNames.getArray()[0] = OUString( "com.sun.star.migration.Wordbooks" );
+ aNames.getArray()[0] = "com.sun.star.migration.Wordbooks";
pNames = &aNames;
}
}
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index e9ed157..43522d7 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -616,10 +616,10 @@ sal_Bool SvxAutoCorrect::FnAddNonBrkSpace(
if ( rCC.getLanguageTag().getLanguage() == "fr" )
{
bool bFrCA = (rCC.getLanguageTag().getCountry() == "CA");
- OUString allChars = OUString( ":;?!%" );
+ OUString allChars = ":;?!%";
OUString chars( allChars );
if ( bFrCA )
- chars = OUString( ":" );
+ chars = ":";
sal_Unicode cChar = rTxt[ nEndPos ];
bool bHasSpace = chars.indexOf( cChar ) != -1;
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx
index 4e161a8..b3e9208 100644
--- a/embeddedobj/source/commonembedding/persistence.cxx
+++ b/embeddedobj/source/commonembedding/persistence.cxx
@@ -106,7 +106,7 @@ uno::Sequence< beans::PropertyValue > addAsTemplate( const uno::Sequence< beans:
if ( !bAsTemplateSet )
{
aResult.realloc( nLength + 1 );
- aResult[nLength].Name = OUString( "AsTemplate" );
+ aResult[nLength].Name = "AsTemplate";
aResult[nLength].Value <<= sal_True;
}
@@ -221,7 +221,7 @@ static void SetDocToEmbedded( const uno::Reference< frame::XModel > xDocument, c
if ( xDocument.is() )
{
uno::Sequence< beans::PropertyValue > aSeq( 1 );
- aSeq[0].Name = OUString( "SetEmbedded" );
+ aSeq[0].Name = "SetEmbedded";
aSeq[0].Value <<= sal_True;
xDocument->attachResource( OUString(), aSeq );
@@ -377,14 +377,14 @@ uno::Reference< util::XCloseable > OCommonEmbeddedObject::LoadLink_Impl()
sal_Int32 nLen = 2;
uno::Sequence< beans::PropertyValue > aArgs( nLen );
- aArgs[0].Name = OUString( "URL" );
+ aArgs[0].Name = "URL";
aArgs[0].Value <<= m_aLinkURL;
- aArgs[1].Name = OUString( "FilterName" );
+ aArgs[1].Name = "FilterName";
aArgs[1].Value <<= m_aLinkFilterName;
if ( m_bLinkHasPassword )
{
aArgs.realloc( ++nLen );
- aArgs[nLen-1].Name = OUString( "Password" );
+ aArgs[nLen-1].Name = "Password";
aArgs[nLen-1].Value <<= m_aLinkPassword;
}
@@ -590,13 +590,13 @@ uno::Reference< io::XInputStream > OCommonEmbeddedObject::StoreDocumentToTempStr
throw io::IOException(); // TODO:
uno::Sequence< beans::PropertyValue > aArgs( 4 );
- aArgs[0].Name = OUString( "FilterName" );
+ aArgs[0].Name = "FilterName";
aArgs[0].Value <<= aFilterName;
- aArgs[1].Name = OUString( "OutputStream" );
+ aArgs[1].Name = "OutputStream";
aArgs[1].Value <<= xTempOut;
- aArgs[2].Name = OUString( "DocumentBaseURL" );
+ aArgs[2].Name = "DocumentBaseURL";
aArgs[2].Value <<= aBaseURL;
- aArgs[3].Name = OUString( "HierarchicalDocumentName" );
+ aArgs[3].Name = "HierarchicalDocumentName";
aArgs[3].Value <<= aHierarchName;
xStorable->storeToURL( OUString( "private:stream" ), aArgs );
@@ -751,11 +751,11 @@ void OCommonEmbeddedObject::StoreDocToStorage_Impl( const uno::Reference< embed:
throw io::IOException(); // TODO:
uno::Sequence< beans::PropertyValue > aArgs( 3 );
- aArgs[0].Name = OUString( "FilterName" );
+ aArgs[0].Name = "FilterName";
aArgs[0].Value <<= aFilterName;
- aArgs[2].Name = OUString( "DocumentBaseURL" );
+ aArgs[2].Name = "DocumentBaseURL";
aArgs[2].Value <<= aBaseURL;
- aArgs[1].Name = OUString( "HierarchicalDocumentName" );
+ aArgs[1].Name = "HierarchicalDocumentName";
aArgs[1].Value <<= aHierarchName;
xDoc->storeToStorage( xStorage, aArgs );
@@ -866,21 +866,21 @@ uno::Reference< util::XCloseable > OCommonEmbeddedObject::CreateTempDocFromLink_
SAL_WARN_IF( aTempFileURL.isEmpty(), "embeddedobj.common", "Couldn't retrieve temporary file URL!" );
- aTempMediaDescr[0].Name = OUString( "URL" );
+ aTempMediaDescr[0].Name = "URL";
aTempMediaDescr[0].Value <<= aTempFileURL;
- aTempMediaDescr[1].Name = OUString( "InputStream" );
+ aTempMediaDescr[1].Name = "InputStream";
aTempMediaDescr[1].Value <<= xTempStream;
- aTempMediaDescr[2].Name = OUString( "FilterName" );
+ aTempMediaDescr[2].Name = "FilterName";
aTempMediaDescr[2].Value <<= GetFilterName( nStorageFormat );
- aTempMediaDescr[3].Name = OUString( "AsTemplate" );
+ aTempMediaDescr[3].Name = "AsTemplate";
aTempMediaDescr[3].Value <<= sal_True;
}
else
{
aTempMediaDescr.realloc( 2 );
- aTempMediaDescr[0].Name = OUString( "URL" );
+ aTempMediaDescr[0].Name = "URL";
aTempMediaDescr[0].Value <<= m_aLinkURL;
- aTempMediaDescr[1].Name = OUString( "FilterName" );
+ aTempMediaDescr[1].Name = "FilterName";
aTempMediaDescr[1].Value <<= m_aLinkFilterName;
}
@@ -1692,7 +1692,7 @@ void SAL_CALL OCommonEmbeddedObject::reload(
else
{
uno::Sequence< beans::PropertyValue > aArgs( 1 );
- aArgs[0].Name = OUString( "URL" );
+ aArgs[0].Name = "URL";
aArgs[0].Value <<= m_aLinkURL;
m_aLinkFilterName = aHelper.UpdateMediaDescriptorWithFilterName( aArgs, sal_False );
}
diff --git a/embeddedobj/source/msole/graphconvert.cxx b/embeddedobj/source/msole/graphconvert.cxx
index e054f7a..9883c49 100644
--- a/embeddedobj/source/msole/graphconvert.cxx
+++ b/embeddedobj/source/msole/graphconvert.cxx
@@ -54,7 +54,7 @@ sal_Bool ConvertBufferToFormat( void* pBuf,
{
uno::Reference < graphic::XGraphicProvider > xGraphicProvider( graphic::GraphicProvider::create(comphelper::getProcessComponentContext()));
uno::Sequence< beans::PropertyValue > aMediaProperties( 1 );
- aMediaProperties[0].Name = OUString( "InputStream" );
+ aMediaProperties[0].Name = "InputStream";
aMediaProperties[0].Value <<= xIn;
uno::Reference< graphic::XGraphic > xGraphic( xGraphicProvider->queryGraphic( aMediaProperties ) );
if( xGraphic.is() )
@@ -62,9 +62,9 @@ sal_Bool ConvertBufferToFormat( void* pBuf,
SvMemoryStream aNewStream( 65535, 65535 );
uno::Reference < io::XStream > xOut = new utl::OStreamWrapper( aNewStream );
uno::Sequence< beans::PropertyValue > aOutMediaProperties( 2 );
- aOutMediaProperties[0].Name = OUString( "OutputStream" );
+ aOutMediaProperties[0].Name = "OutputStream";
aOutMediaProperties[0].Value <<= xOut;
- aOutMediaProperties[1].Name = OUString( "MimeType" );
+ aOutMediaProperties[1].Name = "MimeType";
aOutMediaProperties[1].Value <<= aMimeType;
xGraphicProvider->storeGraphic( xGraphic, aOutMediaProperties );
diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx
index d2da484..b0c8abc 100644
--- a/embeddedobj/source/msole/oleembed.cxx
+++ b/embeddedobj/source/msole/oleembed.cxx
@@ -207,9 +207,7 @@ uno::Reference< embed::XStorage > OleEmbeddedObject::CreateTemporarySubstorage(
for ( sal_Int32 nInd = 0; nInd < 32000 && !xResult.is(); nInd++ )
{
- OUString aName = OUString::number( nInd );
- aName += OUString( "TMPSTOR" );
- aName += m_aEntryName;
+ OUString aName = OUString::number( nInd ) + "TMPSTOR" + m_aEntryName;
if ( !m_xParentStorage->hasByName( aName ) )
{
xResult = m_xParentStorage->openStorageElement( aName, embed::ElementModes::READWRITE );
@@ -232,9 +230,7 @@ OUString OleEmbeddedObject::MoveToTemporarySubstream()
OUString aResult;
for ( sal_Int32 nInd = 0; nInd < 32000 && aResult.isEmpty(); nInd++ )
{
- OUString aName = OUString::number( nInd );
- aName += OUString( "TMPSTREAM" );
- aName += m_aEntryName;
+ OUString aName = OUString::number( nInd ) + "TMPSTREAM" + m_aEntryName;
if ( !m_xParentStorage->hasByName( aName ) )
{
m_xParentStorage->renameElement( m_aEntryName, aName );
@@ -300,21 +296,21 @@ sal_Bool OleEmbeddedObject::TryToConvertToOOo()
// let the model behave as embedded one
uno::Reference< frame::XModel > xModel( xDocument, uno::UNO_QUERY_THROW );
uno::Sequence< beans::PropertyValue > aSeq( 1 );
- aSeq[0].Name = OUString( "SetEmbedded" );
+ aSeq[0].Name = "SetEmbedded";
aSeq[0].Value <<= sal_True;
xModel->attachResource( OUString(), aSeq );
// load the model from the stream
uno::Sequence< beans::PropertyValue > aArgs( 5 );
- aArgs[0].Name = OUString( "HierarchicalDocumentName" );
+ aArgs[0].Name = "HierarchicalDocumentName";
aArgs[0].Value <<= m_aEntryName;
- aArgs[1].Name = OUString( "ReadOnly" );
+ aArgs[1].Name = "ReadOnly";
aArgs[1].Value <<= sal_True;
- aArgs[2].Name = OUString( "FilterName" );
+ aArgs[2].Name = "FilterName";
aArgs[2].Value <<= aFilterName;
- aArgs[3].Name = OUString( "URL" );
+ aArgs[3].Name = "URL";
aArgs[3].Value <<= OUString( "private:stream" );
- aArgs[4].Name = OUString( "InputStream" );
+ aArgs[4].Name = "InputStream";
aArgs[4].Value <<= m_xObjectStream->getInputStream();
xSeekable->seek( 0 );
diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx
index e020de2..528d0fc 100644
--- a/embeddedobj/source/msole/olepersist.cxx
+++ b/embeddedobj/source/msole/olepersist.cxx
@@ -500,7 +500,7 @@ void OleEmbeddedObject::InsertVisualCache_Impl( const uno::Reference< io::XStrea
throw io::IOException(); // TODO:
// insert the result file as replacement image
- OUString aCacheName = OUString( "\002OlePres000" );
+ OUString aCacheName = "\002OlePres000";
if ( xNameContainer->hasByName( aCacheName ) )
xNameContainer->replaceByName( aCacheName, uno::makeAny( xTempFile ) );
else
@@ -535,8 +535,7 @@ void OleEmbeddedObject::RemoveVisualCache_Impl( const uno::Reference< io::XStrea
for ( sal_uInt8 nInd = 0; nInd < 10; nInd++ )
{
- OUString aStreamName( "\002OlePres00" );
- aStreamName += OUString::number( nInd );
+ OUString aStreamName = "\002OlePres00" + OUString::number( nInd );
if ( xNameContainer->hasByName( aStreamName ) )
xNameContainer->removeByName( aStreamName );
}
@@ -603,8 +602,7 @@ sal_Bool OleEmbeddedObject::HasVisReplInStream()
{
for ( sal_uInt8 nInd = 0; nInd < 10 && !bExists; nInd++ )
{
- OUString aStreamName( "\002OlePres00" );
- aStreamName += OUString::number( nInd );
+ OUString aStreamName = "\002OlePres00" + OUString::number( nInd );
try
{
bExists = xNameContainer->hasByName( aStreamName );
@@ -653,8 +651,7 @@ uno::Reference< io::XStream > OleEmbeddedObject::TryToRetrieveCachedVisualRepres
{
for ( sal_uInt8 nInd = 0; nInd < 10; nInd++ )
{
- OUString aStreamName( "\002OlePres00" );
- aStreamName += OUString::number( nInd );
+ OUString aStreamName = "\002OlePres00" + OUString::number( nInd );
uno::Reference< io::XStream > xCachedCopyStream;
try
{
@@ -671,7 +668,7 @@ uno::Reference< io::XStream > OleEmbeddedObject::TryToRetrieveCachedVisualRepres
if ( nInd == 0 )
{
// to be compatible with the old versions Ole10Native is checked after OlePress000
- aStreamName = OUString( "\001Ole10Native" );
+ aStreamName = "\001Ole10Native";
try
{
if ( ( xNameContainer->getByName( aStreamName ) >>= xCachedCopyStream ) && xCachedCopyStream.is() )
diff --git a/embeddedobj/source/msole/ownview.cxx b/embeddedobj/source/msole/ownview.cxx
index 5478d05..90814fb 100644
--- a/embeddedobj/source/msole/ownview.cxx
+++ b/embeddedobj/source/msole/ownview.cxx
@@ -120,22 +120,22 @@ sal_Bool OwnView_Impl::CreateModelFromURL( const OUString& aFileURL )
uno::Sequence< beans::PropertyValue > aArgs( m_aFilterName.isEmpty() ? 4 : 5 );
- aArgs[0].Name = OUString( "URL" );
+ aArgs[0].Name = "URL";
aArgs[0].Value <<= aFileURL;
- aArgs[1].Name = OUString( "ReadOnly" );
+ aArgs[1].Name = "ReadOnly";
aArgs[1].Value <<= sal_True;
- aArgs[2].Name = OUString( "InteractionHandler" );
+ aArgs[2].Name = "InteractionHandler";
aArgs[2].Value <<= uno::Reference< task::XInteractionHandler >(
static_cast< ::cppu::OWeakObject* >( new DummyHandler_Impl() ), uno::UNO_QUERY );
- aArgs[3].Name = OUString( "DontEdit" );
+ aArgs[3].Name = "DontEdit";
aArgs[3].Value <<= sal_True;
if ( !m_aFilterName.isEmpty() )
{
- aArgs[4].Name = OUString( "FilterName" );
+ aArgs[4].Name = "FilterName";
aArgs[4].Value <<= m_aFilterName;
}
@@ -215,13 +215,13 @@ OUString OwnView_Impl::GetFilterNameFromExtentionAndInStream(
}
uno::Sequence< beans::PropertyValue > aArgs( aTypeName.isEmpty() ? 2 : 3 );
- aArgs[0].Name = OUString( "URL" );
+ aArgs[0].Name = "URL";
aArgs[0].Value <<= OUString( "private:stream" );
- aArgs[1].Name = OUString( "InputStream" );
+ aArgs[1].Name = "InputStream";
aArgs[1].Value <<= xInputStream;
if ( !aTypeName.isEmpty() )
{
- aArgs[2].Name = OUString( "TypeName" );
+ aArgs[2].Name = "TypeName";
aArgs[2].Value <<= aTypeName;
}
@@ -425,7 +425,7 @@ void OwnView_Impl::CreateNative()
aArgs ),
uno::UNO_QUERY_THROW );
- OUString aSubStreamName = OUString( "\1Ole10Native" );
+ OUString aSubStreamName = "\1Ole10Native";
uno::Reference< embed::XClassifiedObject > xStor( xNameAccess, uno::UNO_QUERY_THROW );
uno::Sequence< sal_Int8 > aStorClassID = xStor->getClassID();
diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx
index 7114c85..885ba91 100644
--- a/embedserv/source/embed/docholder.cxx
+++ b/embedserv/source/embed/docholder.cxx
@@ -718,7 +718,7 @@ void DocumentHolder::SetDocument( const uno::Reference< frame::XModel >& xDoc, s
{
// set the document mode to embedded
uno::Sequence< beans::PropertyValue > aSeq(1);
- aSeq[0].Name = OUString( "SetEmbedded" );
+ aSeq[0].Name = "SetEmbedded";
aSeq[0].Value <<= sal_True;
m_xDocument->attachResource(OUString(),aSeq);
}
diff --git a/embedserv/source/embed/ed_ipersiststr.cxx b/embedserv/source/embed/ed_ipersiststr.cxx
index 6c941e0..bbaa567 100644
--- a/embedserv/source/embed/ed_ipersiststr.cxx
+++ b/embedserv/source/embed/ed_ipersiststr.cxx
@@ -204,19 +204,19 @@ uno::Sequence< beans::PropertyValue > EmbedDocument_Impl::fillArgsForLoading_Imp
uno::Sequence< beans::PropertyValue > aArgs( 3 );
sal_Int32 nInd = 0; // must not be bigger than the preset size
- aArgs[nInd].Name = OUString( "FilterName" );
+ aArgs[nInd].Name = "FilterName";
aArgs[nInd++].Value <<= getFilterNameFromGUID_Impl( &m_guid );
if ( xStream.is() )
{
- aArgs[nInd].Name = OUString( "InputStream" );
+ aArgs[nInd].Name = "InputStream";
aArgs[nInd++].Value <<= xStream;
- aArgs[nInd].Name = OUString( "URL" );
+ aArgs[nInd].Name = "URL";
aArgs[nInd++].Value <<= OUString( "private:stream" );
}
else
{
- aArgs[nInd].Name = OUString( "URL" );
+ aArgs[nInd].Name = "URL";
OUString sDocUrl;
if ( pFilePath )
@@ -235,7 +235,7 @@ uno::Sequence< beans::PropertyValue > EmbedDocument_Impl::fillArgsForLoading_Imp
aArgs.realloc( nInd );
- // aArgs[].Name = OUString( "ReadOnly" );
+ // aArgs[].Name = "ReadOnly";
// aArgs[].Value <<= sal_False; //( ( nStreamMode & ( STGM_READWRITE | STGM_WRITE ) ) ? sal_True : sal_False );
return aArgs;
@@ -245,12 +245,12 @@ uno::Sequence< beans::PropertyValue > EmbedDocument_Impl::fillArgsForStoring_Imp
{
uno::Sequence< beans::PropertyValue > aArgs( xStream.is() ? 2 : 1 );
- aArgs[0].Name = OUString( "FilterName" );
+ aArgs[0].Name = "FilterName";
aArgs[0].Value <<= getFilterNameFromGUID_Impl( &m_guid );
if ( xStream.is() )
{
- aArgs[1].Name = OUString( "OutputStream" );
+ aArgs[1].Name = "OutputStream";
aArgs[1].Value <<= xStream;
}
diff --git a/embedserv/source/embed/register.cxx b/embedserv/source/embed/register.cxx
index 4f9b53f..85b9c4b 100644
--- a/embedserv/source/embed/register.cxx
+++ b/embedserv/source/embed/register.cxx
@@ -52,7 +52,7 @@ OUString SAL_CALL EmbedServer_getImplementationName() throw()
uno::Sequence< OUString > SAL_CALL EmbedServer_getSupportedServiceNames() throw()
{
uno::Sequence< OUString > aServiceNames( 1 );
- aServiceNames[0] = OUString( "com.sun.star.document.OleEmbeddedServerRegistration" );
+ aServiceNames[0] = "com.sun.star.document.OleEmbeddedServerRegistration";
return aServiceNames;
}
diff --git a/extensions/source/logging/consolehandler.cxx b/extensions/source/logging/consolehandler.cxx
index 95a9a51..637a3a2 100644
--- a/extensions/source/logging/consolehandler.cxx
+++ b/extensions/source/logging/consolehandler.cxx
@@ -296,7 +296,7 @@ namespace logging
Sequence< OUString > SAL_CALL ConsoleHandler::getSupportedServiceNames_static()
{
Sequence< OUString > aServiceNames(1);
- aServiceNames[0] = OUString( "com.sun.star.logging.ConsoleHandler" );
+ aServiceNames[0] = "com.sun.star.logging.ConsoleHandler";
return aServiceNames;
}
diff --git a/extensions/source/logging/filehandler.cxx b/extensions/source/logging/filehandler.cxx
index 15f4e35..e600315 100644
--- a/extensions/source/logging/filehandler.cxx
+++ b/extensions/source/logging/filehandler.cxx
@@ -398,7 +398,7 @@ namespace logging
Sequence< OUString > SAL_CALL FileHandler::getSupportedServiceNames_static()
{
Sequence< OUString > aServiceNames(1);
- aServiceNames[0] = OUString( "com.sun.star.logging.FileHandler" );
+ aServiceNames[0] = "com.sun.star.logging.FileHandler";
return aServiceNames;
}
diff --git a/extensions/source/logging/logger.cxx b/extensions/source/logging/logger.cxx
index bf678f3..7145f72 100644
--- a/extensions/source/logging/logger.cxx
+++ b/extensions/source/logging/logger.cxx
@@ -293,7 +293,7 @@ namespace logging
Sequence< OUString > SAL_CALL EventLogger::getSupportedServiceNames() throw(RuntimeException)
{
Sequence< OUString > aServiceNames(1);
- aServiceNames[0] = OUString( "com.sun.star.logging.Logger" );
+ aServiceNames[0] = "com.sun.star.logging.Logger";
return aServiceNames;
}
diff --git a/extensions/source/logging/plaintextformatter.cxx b/extensions/source/logging/plaintextformatter.cxx
index bf9bff1..2f4e0a6 100644
--- a/extensions/source/logging/plaintextformatter.cxx
+++ b/extensions/source/logging/plaintextformatter.cxx
@@ -178,7 +178,7 @@ namespace logging
Sequence< OUString > SAL_CALL PlainTextFormatter::getSupportedServiceNames_static()
{
Sequence< OUString > aServiceNames(1);
- aServiceNames[0] = OUString( "com.sun.star.logging.PlainTextFormatter" );
+ aServiceNames[0] = "com.sun.star.logging.PlainTextFormatter";
return aServiceNames;
}
diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx
index 3e9d031..f75694b 100644
--- a/extensions/source/propctrlr/browserline.cxx
+++ b/extensions/source/propctrlr/browserline.cxx
@@ -408,7 +408,7 @@ namespace pcr
Reference< XGraphicProvider > xGraphicProvider( GraphicProvider::create(xContext) );
Sequence< PropertyValue > aMediaProperties(1);
- aMediaProperties[0].Name = OUString( "URL" );
+ aMediaProperties[0].Name = "URL";
aMediaProperties[0].Value <<= _rImageURL;
Reference< XGraphic > xGraphic( xGraphicProvider->queryGraphic( aMediaProperties ), UNO_QUERY_THROW );
diff --git a/extensions/source/propctrlr/buttonnavigationhandler.cxx b/extensions/source/propctrlr/buttonnavigationhandler.cxx
index b0bfc62..4f7446b 100644
--- a/extensions/source/propctrlr/buttonnavigationhandler.cxx
+++ b/extensions/source/propctrlr/buttonnavigationhandler.cxx
@@ -72,7 +72,7 @@ namespace pcr
Sequence< OUString > SAL_CALL ButtonNavigationHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
Sequence< OUString > aSupported( 1 );
- aSupported[0] = OUString( "com.sun.star.form.inspection.ButtonNavigationHandler" );
+ aSupported[0] = "com.sun.star.form.inspection.ButtonNavigationHandler";
return aSupported;
}
diff --git a/extensions/source/propctrlr/cellbindinghandler.cxx b/extensions/source/propctrlr/cellbindinghandler.cxx
index 3106efc..5aa52a4 100644
--- a/extensions/source/propctrlr/cellbindinghandler.cxx
+++ b/extensions/source/propctrlr/cellbindinghandler.cxx
@@ -70,7 +70,7 @@ namespace pcr
Sequence< OUString > SAL_CALL CellBindingPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
Sequence< OUString > aSupported( 1 );
- aSupported[0] = OUString( "com.sun.star.form.inspection.CellBindingPropertyHandler" );
+ aSupported[0] = "com.sun.star.form.inspection.CellBindingPropertyHandler";
return aSupported;
}
diff --git a/extensions/source/propctrlr/editpropertyhandler.cxx b/extensions/source/propctrlr/editpropertyhandler.cxx
index bca96ac..7e00aac 100644
--- a/extensions/source/propctrlr/editpropertyhandler.cxx
+++ b/extensions/source/propctrlr/editpropertyhandler.cxx
@@ -73,7 +73,7 @@ namespace pcr
Sequence< OUString > SAL_CALL EditPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
Sequence< OUString > aSupported( 1 );
- aSupported[0] = OUString( "com.sun.star.form.inspection.EditPropertyHandler" );
+ aSupported[0] = "com.sun.star.form.inspection.EditPropertyHandler";
return aSupported;
}
diff --git a/extensions/source/propctrlr/eformspropertyhandler.cxx b/extensions/source/propctrlr/eformspropertyhandler.cxx
index 28332e2..8d1417f 100644
--- a/extensions/source/propctrlr/eformspropertyhandler.cxx
+++ b/extensions/source/propctrlr/eformspropertyhandler.cxx
@@ -81,7 +81,7 @@ namespace pcr
Sequence< OUString > SAL_CALL EFormsPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
Sequence< OUString > aSupported( 1 );
- aSupported[0] = OUString( "com.sun.star.form.inspection.XMLFormsPropertyHandler" );
+ aSupported[0] = "com.sun.star.form.inspection.XMLFormsPropertyHandler";
return aSupported;
}
@@ -468,7 +468,7 @@ namespace pcr
}
aDescriptor.DisplayName = m_pInfoService->getPropertyTranslation( nPropId );
- aDescriptor.Category = OUString( "Data" );
+ aDescriptor.Category = "Data";
aDescriptor.HelpURL = HelpIdUrl::getHelpURL( m_pInfoService->getPropertyHelpId( nPropId ) );
return aDescriptor;
}
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index 56e6336..58253b1 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -169,7 +169,7 @@ namespace pcr
Sequence< OUString > SAL_CALL FormComponentPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
Sequence< OUString > aSupported( 1 );
- aSupported[0] = OUString( "com.sun.star.form.inspection.FormComponentPropertyHandler" );
+ aSupported[0] = "com.sun.star.form.inspection.FormComponentPropertyHandler";
return aSupported;
}
diff --git a/extensions/source/propctrlr/formgeometryhandler.cxx b/extensions/source/propctrlr/formgeometryhandler.cxx
index 2d46ae6..3995229 100644
--- a/extensions/source/propctrlr/formgeometryhandler.cxx
+++ b/extensions/source/propctrlr/formgeometryhandler.cxx
@@ -323,7 +323,7 @@ namespace pcr
Sequence< OUString > SAL_CALL FormGeometryHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
Sequence< OUString > aSupported( 1 );
- aSupported[0] = OUString( "com.sun.star.form.inspection.FormGeometryHandler" );
+ aSupported[0] = "com.sun.star.form.inspection.FormGeometryHandler";
return aSupported;
}
diff --git a/extensions/source/propctrlr/pcrunodialogs.cxx b/extensions/source/propctrlr/pcrunodialogs.cxx
index 117b6ac..49eb6fa 100644
--- a/extensions/source/propctrlr/pcrunodialogs.cxx
+++ b/extensions/source/propctrlr/pcrunodialogs.cxx
@@ -99,8 +99,8 @@ namespace pcr
::comphelper::StringSequence OTabOrderDialog::getSupportedServiceNames_static() throw(RuntimeException)
{
::comphelper::StringSequence aSupported(2);
- aSupported.getArray()[0] = OUString( "com.sun.star.form.ui.TabOrderDialog" );
- aSupported.getArray()[1] = OUString( "com.sun.star.form.TabOrderDialog" );
+ aSupported.getArray()[0] = "com.sun.star.form.ui.TabOrderDialog";
+ aSupported.getArray()[1] = "com.sun.star.form.TabOrderDialog";
return aSupported;
}
diff --git a/extensions/source/propctrlr/propertyhandler.cxx b/extensions/source/propctrlr/propertyhandler.cxx
index 78359d4..c25028e 100644
--- a/extensions/source/propctrlr/propertyhandler.cxx
+++ b/extensions/source/propctrlr/propertyhandler.cxx
@@ -219,9 +219,9 @@ namespace pcr
aDescriptor.DisplayName = m_pInfoService->getPropertyTranslation( nPropId );
if ( ( m_pInfoService->getPropertyUIFlags( nPropId ) & PROP_FLAG_DATA_PROPERTY ) != 0 )
- aDescriptor.Category = OUString( "Data" );
+ aDescriptor.Category = "Data";
else
- aDescriptor.Category = OUString( "General" );
+ aDescriptor.Category = "General";
return aDescriptor;
}
@@ -379,28 +379,28 @@ namespace pcr
OUString sConfigurationProperty;
if ( xDocumentSI->supportsService( SERVICE_WEB_DOCUMENT ) )
{ // writer
- sConfigurationLocation = OUString( "/org.openoffice.Office.WriterWeb/Layout/Other" );
- sConfigurationProperty = OUString( "MeasureUnit" );
+ sConfigurationLocation = "/org.openoffice.Office.WriterWeb/Layout/Other";
+ sConfigurationProperty = "MeasureUnit";
}
else if ( xDocumentSI->supportsService( SERVICE_TEXT_DOCUMENT ) )
{ // writer
- sConfigurationLocation = OUString( "/org.openoffice.Office.Writer/Layout/Other" );
- sConfigurationProperty = OUString( "MeasureUnit" );
+ sConfigurationLocation = "/org.openoffice.Office.Writer/Layout/Other";
+ sConfigurationProperty = "MeasureUnit";
}
else if ( xDocumentSI->supportsService( SERVICE_SPREADSHEET_DOCUMENT ) )
{ // calc
- sConfigurationLocation = OUString( "/org.openoffice.Office.Calc/Layout/Other/MeasureUnit" );
- sConfigurationProperty = OUString( "Metric" );
+ sConfigurationLocation = "/org.openoffice.Office.Calc/Layout/Other/MeasureUnit";
+ sConfigurationProperty = "Metric";
}
else if ( xDocumentSI->supportsService( SERVICE_DRAWING_DOCUMENT ) )
{
- sConfigurationLocation = OUString( "/org.openoffice.Office.Draw/Layout/Other/MeasureUnit" );
- sConfigurationProperty = OUString( "Metric" );
+ sConfigurationLocation = "/org.openoffice.Office.Draw/Layout/Other/MeasureUnit";
+ sConfigurationProperty = "Metric";
}
else if ( xDocumentSI->supportsService( SERVICE_PRESENTATION_DOCUMENT ) )
{
- sConfigurationLocation = OUString( "/org.openoffice.Office.Impress/Layout/Other/MeasureUnit" );
- sConfigurationProperty = OUString( "Metric" );
+ sConfigurationLocation = "/org.openoffice.Office.Impress/Layout/Other/MeasureUnit";
+ sConfigurationProperty = "Metric";
}
// read the measurement unit from the configuration
diff --git a/extensions/source/propctrlr/sqlcommanddesign.cxx b/extensions/source/propctrlr/sqlcommanddesign.cxx
index 67522dd..4672ac6 100644
--- a/extensions/source/propctrlr/sqlcommanddesign.cxx
+++ b/extensions/source/propctrlr/sqlcommanddesign.cxx
@@ -243,7 +243,7 @@ namespace pcr
aArgs[3].Name = PROPERTY_ESCAPE_PROCESSING;
aArgs[3].Value <<= m_xObjectAdapter->getEscapeProcessing();
- aArgs[4].Name = OUString( "GraphicalDesign" );
+ aArgs[4].Name = "GraphicalDesign";
aArgs[4].Value <<= m_xObjectAdapter->getEscapeProcessing();
Reference< XComponent > xQueryDesign = xLoader->loadComponentFromURL(
diff --git a/extensions/source/propctrlr/submissionhandler.cxx b/extensions/source/propctrlr/submissionhandler.cxx
index 495db59..c2d2003 100644
--- a/extensions/source/propctrlr/submissionhandler.cxx
+++ b/extensions/source/propctrlr/submissionhandler.cxx
@@ -113,7 +113,7 @@ namespace pcr
Sequence< OUString > SAL_CALL SubmissionPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
Sequence< OUString > aSupported( 1 );
- aSupported[0] = OUString( "com.sun.star.form.inspection.SubmissionPropertyHandler" );
+ aSupported[0] = "com.sun.star.form.inspection.SubmissionPropertyHandler";
return aSupported;
}
@@ -312,7 +312,7 @@ namespace pcr
LineDescriptor aDescriptor;
aDescriptor.Control = PropertyHandlerHelper::createListBoxControl( _rxControlFactory, aListEntries, sal_False, sal_True );
aDescriptor.DisplayName = m_pInfoService->getPropertyTranslation( nPropId );
- aDescriptor.Category = OUString( "General" );
+ aDescriptor.Category = "General";
aDescriptor.HelpURL = HelpIdUrl::getHelpURL( m_pInfoService->getPropertyHelpId( nPropId ) );
return aDescriptor;
}
diff --git a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
index 2594e02..54ce977 100644
--- a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
+++ b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
@@ -95,7 +95,7 @@ namespace pcr
Sequence< OUString > SAL_CALL XSDValidationPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
Sequence< OUString > aSupported( 1 );
- aSupported[0] = OUString( "com.sun.star.form.inspection.XSDValidationPropertyHandler" );
+ aSupported[0] = "com.sun.star.form.inspection.XSDValidationPropertyHandler";
return aSupported;
}
@@ -323,8 +323,8 @@ namespace pcr
aDescriptor.PrimaryButtonId = OUString::createFromAscii(UID_PROP_ADD_DATA_TYPE);
aDescriptor.SecondaryButtonId = OUString::createFromAscii(UID_PROP_REMOVE_DATA_TYPE);;
aDescriptor.HasPrimaryButton = aDescriptor.HasSecondaryButton = sal_True;
- aDescriptor.PrimaryButtonImageURL = OUString( "private:graphicrepository/extensions/res/buttonplus.png" );
- aDescriptor.SecondaryButtonImageURL = OUString( "private:graphicrepository/extensions/res/buttonminus.png" );
+ aDescriptor.PrimaryButtonImageURL = "private:graphicrepository/extensions/res/buttonplus.png";
+ aDescriptor.SecondaryButtonImageURL = "private:graphicrepository/extensions/res/buttonminus.png";
break;
case PROPERTY_ID_XSD_WHITESPACES:
@@ -419,7 +419,7 @@ namespace pcr
break;
}
- aDescriptor.Category = OUString( "Data" );
+ aDescriptor.Category = "Data";
aDescriptor.DisplayName = m_pInfoService->getPropertyTranslation( nPropId );
aDescriptor.HelpURL = HelpIdUrl::getHelpURL( m_pInfoService->getPropertyHelpId( nPropId ) );
diff --git a/extensions/source/scanner/scanner.cxx b/extensions/source/scanner/scanner.cxx
index ec2f088..671968d 100644
--- a/extensions/source/scanner/scanner.cxx
+++ b/extensions/source/scanner/scanner.cxx
@@ -88,7 +88,7 @@ Sequence< OUString > ScannerManager::getSupportedServiceNames_Static() throw ()
{
Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = OUString( "com.sun.star.scanner.ScannerManager" );
+ aSNS.getArray()[0] = "com.sun.star.scanner.ScannerManager";
return aSNS;
}
diff --git a/extensions/source/scanner/scanwin.cxx b/extensions/source/scanner/scanwin.cxx
index 12f8fcb..319445f 100644
--- a/extensions/source/scanner/scanwin.cxx
+++ b/extensions/source/scanner/scanwin.cxx
@@ -866,7 +866,7 @@ uno::Sequence< ScannerContext > SAL_CALL ScannerManager::getAvailableScanners()
osl::MutexGuard aGuard( maProtector );
uno::Sequence< ScannerContext > aRet( 1 );
- aRet.getArray()[0].ScannerName = OUString( "TWAIN" );
+ aRet.getArray()[0].ScannerName = "TWAIN" ;
aRet.getArray()[0].InternalData = 0;
return aRet;
@@ -878,7 +878,7 @@ sal_Bool SAL_CALL ScannerManager::configureScannerAndScan( ScannerContext& rCont
osl::MutexGuard aGuard( maProtector );
uno::Reference< XScannerManager > xThis( this );
- if( rContext.InternalData != 0 || rContext.ScannerName != OUString( "TWAIN" ) )
+ if( rContext.InternalData != 0 || rContext.ScannerName != "TWAIN" )
throw ScannerException("Scanner does not exist", xThis, ScanError_InvalidContext );
ReleaseData();
@@ -892,7 +892,7 @@ void SAL_CALL ScannerManager::startScan( const ScannerContext& rContext, const u
osl::MutexGuard aGuard( maProtector );
uno::Reference< XScannerManager > xThis( this );
- if( rContext.InternalData != 0 || rContext.ScannerName != OUString( "TWAIN" ) )
+ if( rContext.InternalData != 0 || rContext.ScannerName != "TWAIN" )
throw ScannerException("Scanner does not exist", xThis, ScanError_InvalidContext );
ReleaseData();
@@ -905,7 +905,7 @@ ScanError SAL_CALL ScannerManager::getError( const ScannerContext& rContext )
osl::MutexGuard aGuard( maProtector );
uno::Reference< XScannerManager > xThis( this );
- if( rContext.InternalData != 0 || rContext.ScannerName != OUString( "TWAIN" ) )
+ if( rContext.InternalData != 0 || rContext.ScannerName != "TWAIN" )
throw ScannerException("Scanner does not exist", xThis, ScanError_InvalidContext );
return( ( aTwain.GetState() == TWAIN_STATE_CANCELED ) ? ScanError_ScanCanceled : ScanError_ScanErrorNone );
diff --git a/filter/source/config/cache/filterfactory.cxx b/filter/source/config/cache/filterfactory.cxx
index 07559b1..de9872b 100644
--- a/filter/source/config/cache/filterfactory.cxx
+++ b/filter/source/config/cache/filterfactory.cxx
@@ -259,37 +259,37 @@ OUStringList FilterFactory::impl_queryMatchByDocumentService(const QueryTokenize
if ( sDocumentService == "writer" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
- sDocumentService = OUString( "com.sun.star.text.TextDocument" );
+ sDocumentService = "com.sun.star.text.TextDocument";
}
else if ( sDocumentService == "web" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
- sDocumentService = OUString( "com.sun.star.text.WebDocument" );
+ sDocumentService = "com.sun.star.text.WebDocument";
}
else if ( sDocumentService == "global" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
- sDocumentService = OUString( "com.sun.star.text.GlobalDocument" );
+ sDocumentService = "com.sun.star.text.GlobalDocument";
}
else if ( sDocumentService == "calc" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
- sDocumentService = OUString( "com.sun.star.sheet.SpreadsheetDocument" );
+ sDocumentService = "com.sun.star.sheet.SpreadsheetDocument";
}
else if ( sDocumentService == "draw" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
- sDocumentService = OUString( "com.sun.star.drawing.DrawingDocument" );
+ sDocumentService = "com.sun.star.drawing.DrawingDocument";
}
else if ( sDocumentService == "impress" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
- sDocumentService = OUString( "com.sun.star.presentation.PresentationDocument" );
+ sDocumentService = "com.sun.star.presentation.PresentationDocument";
}
else if ( sDocumentService == "math" )
{
OSL_FAIL("DEPRECATED!\nPlease use right document service for filter query!");
- sDocumentService = OUString( "com.sun.star.formula.FormulaProperties" );
+ sDocumentService = "com.sun.star.formula.FormulaProperties";
}
#endif
@@ -582,7 +582,7 @@ OUString FilterFactory::impl_getImplementationName()
css::uno::Sequence< OUString > FilterFactory::impl_getSupportedServiceNames()
{
css::uno::Sequence< OUString > lServiceNames(1);
- lServiceNames[0] = OUString( "com.sun.star.document.FilterFactory" );
+ lServiceNames[0] = "com.sun.star.document.FilterFactory";
return lServiceNames;
}
diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx
index c6258e6..d0bd8cf 100644
--- a/filter/source/config/cache/typedetection.cxx
+++ b/filter/source/config/cache/typedetection.cxx
@@ -1232,7 +1232,7 @@ OUString TypeDetection::impl_getImplementationName()
css::uno::Sequence< OUString > TypeDetection::impl_getSupportedServiceNames()
{
css::uno::Sequence< OUString > lServiceNames(1);
- lServiceNames[0] = OUString( "com.sun.star.document.TypeDetection" );
+ lServiceNames[0] = "com.sun.star.document.TypeDetection";
return lServiceNames;
}
diff --git a/filter/source/graphic/GraphicExportDialog.cxx b/filter/source/graphic/GraphicExportDialog.cxx
index d263394..7ad8f33 100644
--- a/filter/source/graphic/GraphicExportDialog.cxx
+++ b/filter/source/graphic/GraphicExportDialog.cxx
@@ -70,7 +70,7 @@ Sequence<PropertyValue> GraphicExportDialog::getPropertyValues() throw ( Runtime
maMediaDescriptor.realloc( nCount );
}
- maMediaDescriptor[ i ].Name = OUString( "FilterData" );
+ maMediaDescriptor[ i ].Name = "FilterData";
maMediaDescriptor[ i ].Value <<= maFilterDataSequence;
return maMediaDescriptor;
}
@@ -128,15 +128,15 @@ void GraphicExportDialog::setSourceDocument( const Reference<XComponent>& xDocum
{
if ( xServiceInfo->supportsService("com.sun.star.presentation.PresentationDocument") )
{
- aConfigPath = OUString( "Office.Impress/Layout/Other/MeasureUnit" );
+ aConfigPath = "Office.Impress/Layout/Other/MeasureUnit";
}
else if ( xServiceInfo->supportsService("com.sun.star.drawing.DrawingDocument") )
{
- aConfigPath = OUString( "Office.Draw/Layout/Other/MeasureUnit" );
+ aConfigPath = "Office.Draw/Layout/Other/MeasureUnit";
}
else if ( xServiceInfo->supportsService("com.sun.star.text.TextDocument") )
{
- aConfigPath = OUString( "Office.Writer/Layout/Other/MeasureUnit" );
+ aConfigPath = "Office.Writer/Layout/Other/MeasureUnit";
}
if ( !aConfigPath.isEmpty() )
{
@@ -146,11 +146,11 @@ void GraphicExportDialog::setSourceDocument( const Reference<XComponent>& xDocum
if ( aSysLocale.GetLocaleDataPtr()->getMeasurementSystemEnum() == MEASURE_METRIC )
{
- aPropertyName = OUString( "Metric" );
+ aPropertyName = "Metric";
}
else
{
- aPropertyName = OUString( "NonMetric" );
+ aPropertyName = "NonMetric";
}
meFieldUnit = (FieldUnit) aConfigItem.ReadInt32( aPropertyName, FUNIT_CM );
}
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index 06575d0..7318de1 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -4308,10 +4308,10 @@ sal_uInt32 EscherGraphicProvider::GetBlibID( SvStream& rPicOutStrm, const OStrin
aGIFStream.Seek( STREAM_SEEK_TO_BEGIN );
aGIFStream.Read( pSeq, nGIFSreamLen );
com::sun::star::beans::PropertyValue aChunkProp, aFilterProp;
- aChunkProp.Name = OUString( "msOG" );
+ aChunkProp.Name = "msOG";
aChunkProp.Value <<= aGIFSeq;
aAdditionalChunkSequence[ 0 ] = aChunkProp;
- aFilterProp.Name = OUString( "AdditionalChunks" );
+ aFilterProp.Name = "AdditionalChunks";
aFilterProp.Value <<= aAdditionalChunkSequence;
aFilterData[ 0 ] = aFilterProp;
nErrCode = rFilter.ExportGraphic( aGraphic, OUString(), aStream,
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 71b0456..27ca4a9 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -6881,15 +6881,15 @@ com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > SvxMS
aFilterName = GetFilterNameFromClassID_Impl( aStgNm );
uno::Sequence < beans::PropertyValue > aMedium( aFilterName.isEmpty() ? 2 : 3);
- aMedium[0].Name = OUString( "InputStream" );
+ aMedium[0].Name = "InputStream";
uno::Reference < io::XInputStream > xStream = new ::utl::OSeekableInputStreamWrapper( *xMemStream );
aMedium[0].Value <<= xStream;
- aMedium[1].Name = OUString( "URL" );
+ aMedium[1].Name = "URL";
aMedium[1].Value <<= OUString( "private:stream" );
if ( !aFilterName.isEmpty() )
{
- aMedium[2].Name = OUString( "FilterName" );
+ aMedium[2].Name = "FilterName";
aMedium[2].Value <<= aFilterName;
}
diff --git a/filter/source/msfilter/msoleexp.cxx b/filter/source/msfilter/msoleexp.cxx
index 82cb589e..541c009 100644
--- a/filter/source/msfilter/msoleexp.cxx
+++ b/filter/source/msfilter/msoleexp.cxx
@@ -191,10 +191,10 @@ void SvxMSExportOLEObjects::ExportOLEObject( svt::EmbeddedObjectRef& rObj, SvSto
//TODO/LATER: a "StoreTo" method at embedded object would be nice
uno::Sequence < beans::PropertyValue > aSeq(2);
SvStream* pStream = new SvMemoryStream;
- aSeq[0].Name = OUString( "OutputStream" );
+ aSeq[0].Name = "OutputStream";
::uno::Reference < io::XOutputStream > xOut = new ::utl::OOutputStreamWrapper( *pStream );
aSeq[0].Value <<= xOut;
- aSeq[1].Name = OUString( "FilterName" );
+ aSeq[1].Name = "FilterName";
aSeq[1].Value <<= OUString( pExpFilter->GetName() );
uno::Reference < frame::XStorable > xStor( rObj->getComponent(), uno::UNO_QUERY );
try
@@ -291,7 +291,7 @@ void SvxMSExportOLEObjects::ExportOLEObject( svt::EmbeddedObjectRef& rObj, SvSto
//TODO/LATER: is stream instead of outputstream a better choice?!
//TODO/LATER: a "StoreTo" method at embedded object would be nice
uno::Sequence < beans::PropertyValue > aSeq(1);
- aSeq[0].Name = OUString( "OutputStream" );
+ aSeq[0].Name = "OutputStream";
::uno::Reference < io::XOutputStream > xOut = new ::utl::OOutputStreamWrapper( *xEmbStm );
aSeq[0].Value <<= xOut;
uno::Reference < frame::XStorable > xStor( rObj->getComponent(), uno::UNO_QUERY );
diff --git a/filter/source/odfflatxml/OdfFlatXml.cxx b/filter/source/odfflatxml/OdfFlatXml.cxx
index 13de487..a45aaad 100644
--- a/filter/source/odfflatxml/OdfFlatXml.cxx
+++ b/filter/source/odfflatxml/OdfFlatXml.cxx
@@ -190,8 +190,8 @@ OUString OdfFlatXml::impl_getImplementationName()
Sequence< OUString > OdfFlatXml::impl_getSupportedServiceNames()
{
Sequence< OUString > lServiceNames(2);
- lServiceNames[0] = OUString( "com.sun.star.document.ImportFilter" );
- lServiceNames[1] = OUString( "com.sun.star.document.ExportFilter" );
+ lServiceNames[0] = "com.sun.star.document.ImportFilter";
+ lServiceNames[1] = "com.sun.star.document.ExportFilter";
return lServiceNames;
}
diff --git a/filter/source/xmlfilterdetect/filterdetect.cxx b/filter/source/xmlfilterdetect/filterdetect.cxx
index e665f9d..60681d2 100644
--- a/filter/source/xmlfilterdetect/filterdetect.cxx
+++ b/filter/source/xmlfilterdetect/filterdetect.cxx
@@ -106,7 +106,7 @@ bool isXMLStream(const OString& aHeaderStrm)
OUString supportedByType( const OUString clipBoardFormat , const OString resultString, const OUString checkType)
{
OUString sTypeName;
- if ( clipBoardFormat.match(OUString("doctype:")) )
+ if ( clipBoardFormat.match("doctype:") )
{
OString tryStr = OUStringToOString(clipBoardFormat.copy(8),RTL_TEXTENCODING_ASCII_US).getStr();
if (resultString.indexOf(tryStr) >= 0)
@@ -207,7 +207,7 @@ OUString SAL_CALL FilterDetect::detect( com::sun::star::uno::Sequence< com::sun:
if (location == aArguments.getLength())
{
aArguments.realloc(nLength+1);
- aArguments[location].Name = OUString( "TypeName" );
+ aArguments[location].Name = "TypeName";
}
aArguments[location].Value <<=sTypeName;
}
diff --git a/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx b/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx
index 6aa7ace..4fe62c9 100644
--- a/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx
+++ b/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx
@@ -198,7 +198,7 @@ OUString XMLFilterDialogComponent_getImplementationName() throw ( RuntimeExcepti
Sequence< OUString > SAL_CALL XMLFilterDialogComponent_getSupportedServiceNames() throw ( RuntimeException )
{
Sequence< OUString > aSupported(1);
- aSupported[0] = OUString( "com.sun.star.ui.dialogs.XSLTFilterDialog" );
+ aSupported[0] = "com.sun.star.ui.dialogs.XSLTFilterDialog";
return aSupported;
}
diff --git a/filter/source/xsltdialog/xmlfilterjar.cxx b/filter/source/xsltdialog/xmlfilterjar.cxx
index edb18f7..fb916b0 100644
--- a/filter/source/xsltdialog/xmlfilterjar.cxx
+++ b/filter/source/xsltdialog/xmlfilterjar.cxx
@@ -152,7 +152,7 @@ bool XMLFilterJarHelper::savePackage( const OUString& rPackageURL, const XMLFilt
// let ZipPackage be used ( no manifest.xml is required )
beans::NamedValue aArg;
- aArg.Name = OUString( "StorageFormat" );
+ aArg.Name = "StorageFormat";
aArg.Value <<= ZIP_STORAGE_FORMAT_STRING;
aArguments[ 1 ] <<= aArg;
@@ -251,7 +251,7 @@ void XMLFilterJarHelper::openPackage( const OUString& rPackageURL, XMLFilterVect
// let ZipPackage be used ( no manifest.xml is required )
beans::NamedValue aArg;
- aArg.Name = OUString( "StorageFormat" );
+ aArg.Name = "StorageFormat";
aArg.Value <<= ZIP_STORAGE_FORMAT_STRING;
aArguments[ 1 ] <<= aArg;
diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
index dca5823..bfd172d 100644
--- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
@@ -1507,9 +1507,9 @@ OUString XMLFilterListBox::getEntryString( const filter_info_impl* pInfo ) const
{
OUString aEntryStr( pInfo->maFilterName + "\t");
if ( !pInfo->maExportService.isEmpty() )
- aEntryStr += OUString( getApplicationUIName( pInfo->maExportService ) );
+ aEntryStr += getApplicationUIName( pInfo->maExportService );
else
- aEntryStr += OUString( getApplicationUIName( pInfo->maImportService ) );
+ aEntryStr += getApplicationUIName( pInfo->maImportService );
aEntryStr += " - ";
if( pInfo->maFlags & 1 )
@@ -1604,7 +1604,7 @@ Sequence< OUString > filter_info_impl::getFilterUserData() const
{
Sequence< OUString > aUserData(8);
- aUserData[0] = OUString( "com.sun.star.documentconversion.XSLTFilter" );
+ aUserData[0] = "com.sun.star.documentconversion.XSLTFilter";
aUserData[1] = OUString::boolean( mbNeedsXSLT2 );
aUserData[2] = maImportService;
aUserData[3] = maExportService;
diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx
index 140713f..ff9aca3 100644
--- a/filter/source/xsltfilter/XSLTFilter.cxx
+++ b/filter/source/xsltfilter/XSLTFilter.cxx
@@ -319,13 +319,13 @@ namespace XSLT
Sequence<Any> args(3);
NamedValue nv;
- nv.Name = OUString( "StylesheetURL" );
+ nv.Name = "StylesheetURL";
nv.Value <<= expandUrl(udStyleSheet);
args[0] <<= nv;
- nv.Name = OUString( "SourceURL" );
+ nv.Name = "SourceURL";
nv.Value <<= aURL;
args[1] <<= nv;
- nv.Name = OUString( "SourceBaseURL" );
+ nv.Name = "SourceBaseURL";
nv.Value <<= OUString(INetURLObject(aURL).getBase());
args[2] <<= nv;
@@ -461,16 +461,16 @@ namespace XSLT
// create transformer
Sequence<Any> args(4);
NamedValue nv;
- nv.Name = OUString( "StylesheetURL" );
+ nv.Name = "StylesheetURL";
nv.Value <<= expandUrl(udStyleSheet);
args[0] <<= nv;
- nv.Name = OUString( "TargetURL" );
+ nv.Name = "TargetURL";
nv.Value <<= sURL;
args[1] <<= nv;
- nv.Name = OUString( "DoctypePublic" );
+ nv.Name = "DoctypePublic";
nv.Value <<= aDoctypePublic;
args[2] <<= nv;
- nv.Name = OUString( "TargetBaseURL" );
+ nv.Name = "TargetBaseURL";
INetURLObject ineturl(sURL);
ineturl.removeSegment();
m_aExportBaseUrl = ineturl.GetMainURL(INetURLObject::NO_DECODE);
@@ -581,9 +581,7 @@ extern "C"
if (rtl_str_compare(pImplName, FILTER_IMPL_NAME) == 0)
{
Sequence<OUString> serviceNames(1);
- serviceNames.getArray()[0]
- = OUString(
- FILTER_SERVICE_NAME );
+ serviceNames.getArray()[0] = FILTER_SERVICE_NAME;
css::uno::Reference<XSingleServiceFactory>
xFactory(
@@ -603,9 +601,7 @@ extern "C"
else if (rtl_str_compare(pImplName, TRANSFORMER_IMPL_NAME) == 0)
{
Sequence<OUString> serviceNames(1);
- serviceNames.getArray()[0]
- = OUString(
- TRANSFORMER_SERVICE_NAME );
+ serviceNames.getArray()[0] = TRANSFORMER_SERVICE_NAME;
css::uno::Reference<XSingleServiceFactory>
xFactory(
createSingleFactory(
diff --git a/forms/source/component/Columns.cxx b/forms/source/component/Columns.cxx
index 05bc70c..1064ea0 100644
--- a/forms/source/component/Columns.cxx
+++ b/forms/source/component/Columns.cxx
@@ -70,16 +70,16 @@ const StringSequence& getColumnTypes()
if (aColumnTypes.getConstArray()[0].isEmpty())
{
OUString* pNames = aColumnTypes.getArray();
- pNames[TYPE_CHECKBOX] = OUString( "CheckBox" );
- pNames[TYPE_COMBOBOX] = OUString( "ComboBox" );
- pNames[TYPE_CURRENCYFIELD] = OUString( "CurrencyField" );
- pNames[TYPE_DATEFIELD] = OUString( "DateField" );
- pNames[TYPE_FORMATTEDFIELD] = OUString( "FormattedField" );
- pNames[TYPE_LISTBOX] = OUString( "ListBox" );
- pNames[TYPE_NUMERICFIELD] = OUString( "NumericField" );
- pNames[TYPE_PATTERNFIELD] = OUString( "PatternField" );
- pNames[TYPE_TEXTFIELD] = OUString( "TextField" );
- pNames[TYPE_TIMEFIELD] = OUString( "TimeField" );
+ pNames[TYPE_CHECKBOX] = "CheckBox";
+ pNames[TYPE_COMBOBOX] = "ComboBox";
+ pNames[TYPE_CURRENCYFIELD] = "CurrencyField";
+ pNames[TYPE_DATEFIELD] = "DateField";
+ pNames[TYPE_FORMATTEDFIELD] = "FormattedField";
+ pNames[TYPE_LISTBOX] = "ListBox";
+ pNames[TYPE_NUMERICFIELD] = "NumericField";
+ pNames[TYPE_PATTERNFIELD] = "PatternField";
+ pNames[TYPE_TEXTFIELD] = "TextField";
+ pNames[TYPE_TIMEFIELD] = "TimeField";
}
return aColumnTypes;
}
diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx
index 8cfdb49..4e37fc2 100644
--- a/forms/source/component/ImageControl.cxx
+++ b/forms/source/component/ImageControl.cxx
@@ -295,7 +295,7 @@ void OImageControlModel::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, con
OUString sNewImageURL;
if ( m_xGraphicObject.is() )
{
- sNewImageURL = OUString( "vnd.sun.star.GraphicObject:" );
+ sNewImageURL = "vnd.sun.star.GraphicObject:";
sNewImageURL = sNewImageURL + m_xGraphicObject->getUniqueID();
}
m_sImageURL = sNewImageURL;
diff --git a/forms/source/component/navigationbar.cxx b/forms/source/component/navigationbar.cxx
index d7979c7..9baeea7 100644
--- a/forms/source/component/navigationbar.cxx
+++ b/forms/source/component/navigationbar.cxx
@@ -184,7 +184,7 @@ namespace frm
aSupported.realloc( aSupported.getLength() + 2 );
OUString* pArray = aSupported.getArray();
- pArray[ aSupported.getLength() - 2 ] = OUString( "com.sun.star.awt.UnoControlModel" );
+ pArray[ aSupported.getLength() - 2 ] = "com.sun.star.awt.UnoControlModel";
pArray[ aSupported.getLength() - 1 ] = FRM_SUN_COMPONENT_NAVTOOLBAR;
return aSupported;
}
diff --git a/forms/source/richtext/clipboarddispatcher.cxx b/forms/source/richtext/clipboarddispatcher.cxx
index 7f299b8..6188155 100644
--- a/forms/source/richtext/clipboarddispatcher.cxx
+++ b/forms/source/richtext/clipboarddispatcher.cxx
@@ -44,13 +44,13 @@ namespace frm
switch ( _eFunc )
{
case OClipboardDispatcher::eCut:
- aURL.Complete = OUString( ".uno:Cut" );
+ aURL.Complete = ".uno:Cut";
break;
case OClipboardDispatcher::eCopy:
- aURL.Complete = OUString( ".uno:Copy" );
+ aURL.Complete = ".uno:Copy";
break;
case OClipboardDispatcher::ePaste:
- aURL.Complete = OUString( ".uno:Paste" );
+ aURL.Complete = ".uno:Paste";
break;
}
return aURL;
diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx
index 9422532..4686762 100644
--- a/forms/source/richtext/richtextcontrol.cxx
+++ b/forms/source/richtext/richtextcontrol.cxx
@@ -273,8 +273,8 @@ namespace frm
Sequence< OUString > SAL_CALL ORichTextControl::getSupportedServiceNames_Static()
{
Sequence< OUString > aServices( 3 );
- aServices[ 0 ] = OUString( "com.sun.star.awt.UnoControl" );
- aServices[ 1 ] = OUString( "com.sun.star.awt.UnoControlEdit" );
+ aServices[ 0 ] = "com.sun.star.awt.UnoControl";
+ aServices[ 1 ] = "com.sun.star.awt.UnoControlEdit";
aServices[ 2 ] = FRM_SUN_CONTROL_RICHTEXTCONTROL;
return aServices;
}
diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx
index c8109ed..083844e 100644
--- a/forms/source/runtime/formoperations.cxx
+++ b/forms/source/runtime/formoperations.cxx
@@ -152,7 +152,7 @@ namespace frm
Sequence< OUString > FormOperations::getSupportedServiceNames_Static( ) throw(RuntimeException)
{
Sequence< OUString > aNames(1);
- aNames[0] = OUString( "com.sun.star.form.runtime.FormOperations" );
+ aNames[0] = "com.sun.star.form.runtime.FormOperations";
return aNames;
}
diff --git a/forms/source/solar/component/navbarcontrol.cxx b/forms/source/solar/component/navbarcontrol.cxx
index 58c0c44..71eb891 100644
--- a/forms/source/solar/component/navbarcontrol.cxx
+++ b/forms/source/solar/component/navbarcontrol.cxx
@@ -201,8 +201,8 @@ namespace frm
Sequence< OUString > SAL_CALL ONavigationBarControl::getSupportedServiceNames_Static()
{
Sequence< OUString > aServices( 2 );
- aServices[ 0 ] = OUString( "com.sun.star.awt.UnoControl" );
- aServices[ 1 ] = OUString( "com.sun.star.form.control.NavigationToolBar" );
+ aServices[ 0 ] = "com.sun.star.awt.UnoControl";
+ aServices[ 1 ] = "com.sun.star.form.control.NavigationToolBar";
return aServices;
}
diff --git a/forms/source/xforms/datatypes.cxx b/forms/source/xforms/datatypes.cxx
index 0c24ace..5b48118 100644
--- a/forms/source/xforms/datatypes.cxx
+++ b/forms/source/xforms/datatypes.cxx
@@ -286,7 +286,7 @@ namespace xforms
RegexMatcher aMatcher( aIcuPattern, 0, nMatchStatus );
if ( U_FAILURE( nMatchStatus ) )
{
- _rErrorMessage = OUString( "This is no valid pattern." );
+ _rErrorMessage = "This is no valid pattern.";
return false;
}
}
@@ -544,7 +544,7 @@ namespace xforms
sal_Int32 nValue( 0 );
OSL_VERIFY( _rNewValue >>= nValue );
if ( nValue <= 0 )
- _rErrorMessage = OUString( "Length limits must denote positive integer values." );
+ _rErrorMessage = "Length limits must denote positive integer values.";
// TODO/eforms: localize the error message
}
break;
diff --git a/formula/source/core/api/FormulaOpCodeMapperObj.cxx b/formula/source/core/api/FormulaOpCodeMapperObj.cxx
index 4439834..39f522b 100644
--- a/formula/source/core/api/FormulaOpCodeMapperObj.cxx
+++ b/formula/source/core/api/FormulaOpCodeMapperObj.cxx
@@ -98,7 +98,7 @@ uno::Sequence< OUString > SAL_CALL FormulaOpCodeMapperObj::getSupportedServiceNa
uno::Sequence< OUString > SAL_CALL FormulaOpCodeMapperObj::getSupportedServiceNames_Static()
{
uno::Sequence< OUString > aSeq( 1 );
- aSeq[0] = OUString( "com.sun.star.sheet.FormulaOpCodeMapper" );
+ aSeq[0] = "com.sun.star.sheet.FormulaOpCodeMapper";
return aSeq;
}
diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx
index 3ec8b9f..7eba162 100644
--- a/fpicker/source/office/OfficeFilePicker.cxx
+++ b/fpicker/source/office/OfficeFilePicker.cxx
@@ -606,7 +606,7 @@ Sequence< OUString > SAL_CALL SvtFilePicker::getFiles() throw( RuntimeException
Sequence< OUString > aPath( nTotal );
if ( nCount == 1 )
- aPath[0] = OUString(aPathList[0]);
+ aPath[0] = aPathList[0];
else if ( nCount > 1 )
{
INetURLObject aObj(aPathList[0]);
@@ -1132,7 +1132,7 @@ Sequence< OUString > SvtFilePicker::impl_getStaticSupportedServiceNames()
{
Sequence< OUString > seqServiceNames( 1 );
OUString* pArray = seqServiceNames.getArray();
- pArray[0] = OUString( "com.sun.star.ui.dialogs.OfficeFilePicker" );
+ pArray[0] = "com.sun.star.ui.dialogs.OfficeFilePicker";
return seqServiceNames ;
}
diff --git a/fpicker/source/office/OfficeFolderPicker.cxx b/fpicker/source/office/OfficeFolderPicker.cxx
index 8a00b20..37274d8 100644
--- a/fpicker/source/office/OfficeFolderPicker.cxx
+++ b/fpicker/source/office/OfficeFolderPicker.cxx
@@ -175,7 +175,7 @@ Sequence< OUString > SAL_CALL SvtFolderPicker::getSupportedServiceNames() throw(
Sequence< OUString > SvtFolderPicker::impl_getStaticSupportedServiceNames()
{
Sequence< OUString > seqServiceNames(1);
- seqServiceNames[0] = OUString( "com.sun.star.ui.dialogs.OfficeFolderPicker" );
+ seqServiceNames[0] = "com.sun.star.ui.dialogs.OfficeFolderPicker";
return seqServiceNames ;
}
diff --git a/fpicker/source/office/fpsmartcontent.cxx b/fpicker/source/office/fpsmartcontent.cxx
index 27cc7ef..afd374b 100644
--- a/fpicker/source/office/fpsmartcontent.cxx
+++ b/fpicker/source/office/fpsmartcontent.cxx
@@ -326,7 +326,7 @@ namespace svt
ucbhelper::Content aCreated;
Sequence< OUString > aNames( 1 );
OUString* pNames = aNames.getArray();
- pNames[0] = OUString( "Title" );
+ pNames[0] = "Title";
Sequence< Any > aValues( 1 );
Any* pValues = aValues.getArray();
pValues[0] = makeAny( _rTitle );
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index ffa6111..009b61d 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -2025,8 +2025,8 @@ short SvtFileDialog::PrepareExecute()
Reference< XCommandEnvironment >(),
comphelper::getProcessComponentContext() );
Sequence< OUString > aProps(2);
- aProps[0] = OUString( "IsVolume" );
- aProps[1] = OUString( "IsRemoveable" );
+ aProps[0] = "IsVolume";
+ aProps[1] = "IsRemoveable";
Reference< XResultSet > xResultSet
= aCnt.createCursor( aProps, ::ucbhelper::INCLUDE_FOLDERS_ONLY );
@@ -2117,7 +2117,7 @@ short SvtFileDialog::PrepareExecute()
nPos = nFilterCount;
while ( nPos-- )
{
- if ( aAll != OUString( GetFilterName( nPos ) ) )
+ if ( aAll != GetFilterName( nPos ) )
break;
}
}
diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx
index 1817d35..d1a9b00 100644
--- a/fpicker/source/office/iodlgimp.cxx
+++ b/fpicker/source/office/iodlgimp.cxx
@@ -323,7 +323,7 @@ void SvtExpFileDlg_Impl::InsertFilterListEntry( const SvtFileDialogFilter_Impl*
{
OUString sName = _pFilterDesc->GetName();
if ( _pFilterDesc->isGroupSeparator() )
- sName = OUString( "------------------------------------------" );
+ sName = "------------------------------------------";
else
sName = _pFilterDesc->GetName();
diff --git a/framework/source/classes/menumanager.cxx b/framework/source/classes/menumanager.cxx
index 4866515..13f2aec 100644
--- a/framework/source/classes/menumanager.cxx
+++ b/framework/source/classes/menumanager.cxx
@@ -162,9 +162,7 @@ MenuManager::MenuManager(
pPopupMenu->SetPopupMenu( ITEMID_ADDONLIST, pSubMenu );
// Set item command for popup menu to enable it for GetImageFromURL
- const static OUString aSlotString( "slot:" );
- aItemCommand = aSlotString;
- aItemCommand += OUString::number( ITEMID_ADDONLIST );
+ aItemCommand = "slot:" + OUString::number( ITEMID_ADDONLIST );
pPopupMenu->SetItemCommand( ITEMID_ADDONLIST, aItemCommand );
AddMenu(pSubMenu,OUString(),nItemId,sal_True,sal_False);
@@ -559,7 +557,7 @@ void MenuManager::UpdateSpecialFileMenu( Menu* pMenu )
if ( i <= 9 )
{
if ( i == 9 )
- aMenuShortCut = OUString( "1~0: " );
+ aMenuShortCut = "1~0: ";
else
{
menuShortCut[1] = (char)( '1' + i );
@@ -688,11 +686,11 @@ void MenuManager::CreatePicklistArguments( Sequence< PropertyValue >& aArgsList,
Any a;
aArgsList.realloc( NUM_OF_PICKLIST_ARGS );
- aArgsList[0].Name = OUString( "FileName" );
+ aArgsList[0].Name = "FileName";
a <<= pMenuItemHandler->aMenuItemURL;
aArgsList[0].Value = a;
- aArgsList[1].Name = OUString( "Referer" );
+ aArgsList[1].Name = "Referer";
a <<= OUString( "private:user" );
aArgsList[1].Value = a;
@@ -706,7 +704,7 @@ void MenuManager::CreatePicklistArguments( Sequence< PropertyValue >& aArgsList,
if ( nPos < ( aFilter.getLength() - 1 ) )
aFilterOptions = aFilter.copy( nPos+1 );
- aArgsList[2].Name = OUString( "FilterOptions" );
+ aArgsList[2].Name = "FilterOptions";
a <<= aFilterOptions;
aArgsList[2].Value = a;
@@ -714,7 +712,7 @@ void MenuManager::CreatePicklistArguments( Sequence< PropertyValue >& aArgsList,
aArgsList.realloc( ++NUM_OF_PICKLIST_ARGS );
}
- aArgsList[NUM_OF_PICKLIST_ARGS-1].Name = OUString( "FilterName" );
+ aArgsList[NUM_OF_PICKLIST_ARGS-1].Name = "FilterName";
a <<= aFilter;
aArgsList[NUM_OF_PICKLIST_ARGS-1].Value = a;
}
@@ -792,9 +790,7 @@ IMPL_LINK( MenuManager, Activate, Menu *, pMenu )
OUString aItemCommand = pMenu->GetItemCommand( pMenuItemHandler->nItemId );
if ( aItemCommand.isEmpty() )
{
- const static OUString aSlotString( "slot:" );
- aItemCommand = aSlotString;
- aItemCommand += OUString::number( pMenuItemHandler->nItemId );
+ aItemCommand = "slot:" + OUString::number( pMenuItemHandler->nItemId );
pMenu->SetItemCommand( pMenuItemHandler->nItemId, aItemCommand );
}
@@ -893,7 +889,7 @@ IMPL_LINK( MenuManager, Select, Menu *, pMenu )
{
// bookmark menu item selected
aArgs.realloc( 1 );
- aArgs[0].Name = OUString( "Referer" );
+ aArgs[0].Name = "Referer";
aArgs[0].Value <<= OUString( "private:user" );
}
@@ -942,9 +938,7 @@ sal_uInt16 MenuManager::FillItemCommand(OUString& _rItemCommand, Menu* _pMenu,sa
_rItemCommand = _pMenu->GetItemCommand( nItemId );
if ( _rItemCommand.isEmpty() )
{
- const static OUString aSlotString( "slot:" );
- _rItemCommand = aSlotString;
- _rItemCommand += OUString::number( nItemId );
+ _rItemCommand = "slot:" + OUString::number( nItemId );
_pMenu->SetItemCommand( nItemId, _rItemCommand );
}
return nItemId;
diff --git a/framework/source/fwe/classes/addonsoptions.cxx b/framework/source/fwe/classes/addonsoptions.cxx
index bebbd95..c0d5ff0 100644
--- a/framework/source/fwe/classes/addonsoptions.cxx
+++ b/framework/source/fwe/classes/addonsoptions.cxx
@@ -467,7 +467,7 @@ AddonsOptions_Impl::AddonsOptions_Impl()
// Enable notification mechanism of ouer baseclass.
// We need it to get information about changes outside these class on ouer used configuration keys!
Sequence< OUString > aNotifySeq( 1 );
- aNotifySeq[0] = OUString( "AddonUI" );
+ aNotifySeq[0] = "AddonUI";
EnableNotification( aNotifySeq );
}
@@ -1056,7 +1056,7 @@ sal_Bool AddonsOptions_Impl::ReadMergeMenuData( const OUString& aMergeAddonInstr
// extend the node names to have full path strings
for ( sal_uInt32 i = 0; i < (sal_uInt32)aSubMenuNodeNames.getLength(); i++ )
- aSubMenuNodeNames[i] = OUString( aMergeMenuBaseNode + aSubMenuNodeNames[i] );
+ aSubMenuNodeNames[i] = aMergeMenuBaseNode + aSubMenuNodeNames[i];
return ReadSubMenuEntries( aSubMenuNodeNames, rMergeMenu );
}
@@ -1321,7 +1321,7 @@ sal_Bool AddonsOptions_Impl::ReadMenuItem( const OUString& aMenuNodeName, Sequen
Sequence< Sequence< PropertyValue > > aSubMenuSeq;
OUString aSubMenuRootNodeName( aRootSubMenuName + m_aPathDelimiter );
for ( sal_uInt32 n = 0; n < (sal_uInt32)aRootSubMenuNodeNames.getLength(); n++ )
- aRootSubMenuNodeNames[n] = OUString( aSubMenuRootNodeName + aRootSubMenuNodeNames[n] );
+ aRootSubMenuNodeNames[n] = aSubMenuRootNodeName + aRootSubMenuNodeNames[n];
ReadSubMenuEntries( aRootSubMenuNodeNames, aSubMenuSeq );
aMenuItem[ OFFSET_MENUITEM_SUBMENU ].Value <<= aSubMenuSeq;
bResult = sal_True;
@@ -1389,7 +1389,7 @@ sal_Bool AddonsOptions_Impl::ReadPopupMenu( const OUString& aPopupMenuNodeName,
Sequence< Sequence< PropertyValue > > aSubMenuSeq;
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list