diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-30 17:49:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-31 12:55:48 +0200 |
commit | ef59252a7a3e9474569710866ab4ff5c1225cff7 (patch) | |
tree | 2e44048187b5606567e6e89771605437adeaf895 /sc/source/ui | |
parent | b890de156e335eb10ba70530d9b0599d602ccf07 (diff) |
Improved loplugin:stringconstant (now that GCC 7 supports it): sc
Change-Id: I1bfd2bb623aac5ac457a0b719da64ab393ccd0ba
Reviewed-on: https://gerrit.libreoffice.org/76654
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/source/ui')
102 files changed, 130 insertions, 130 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleCell.cxx b/sc/source/ui/Accessibility/AccessibleCell.cxx index 7ea9c99ccfcd..e053ed209751 100644 --- a/sc/source/ui/Accessibility/AccessibleCell.cxx +++ b/sc/source/ui/Accessibility/AccessibleCell.cxx @@ -289,7 +289,7 @@ uno::Reference<XAccessibleRelationSet> SAL_CALL OUString SAL_CALL ScAccessibleCell::getImplementationName() { - return OUString("ScAccessibleCell"); + return "ScAccessibleCell"; } uno::Sequence< OUString> SAL_CALL diff --git a/sc/source/ui/Accessibility/AccessibleCellBase.cxx b/sc/source/ui/Accessibility/AccessibleCellBase.cxx index 2b26d3f00f33..754c48049529 100644 --- a/sc/source/ui/Accessibility/AccessibleCellBase.cxx +++ b/sc/source/ui/Accessibility/AccessibleCellBase.cxx @@ -265,7 +265,7 @@ uno::Any SAL_CALL OUString SAL_CALL ScAccessibleCellBase::getImplementationName() { - return OUString("ScAccessibleCellBase"); + return "ScAccessibleCellBase"; } //===== XTypeProvider =================================================== diff --git a/sc/source/ui/Accessibility/AccessibleContextBase.cxx b/sc/source/ui/Accessibility/AccessibleContextBase.cxx index 40fd9d9609d4..e0f7237c507b 100644 --- a/sc/source/ui/Accessibility/AccessibleContextBase.cxx +++ b/sc/source/ui/Accessibility/AccessibleContextBase.cxx @@ -417,7 +417,7 @@ void SAL_CALL ScAccessibleContextBase::notifyEvent( // XServiceInfo OUString SAL_CALL ScAccessibleContextBase::getImplementationName() { - return OUString("ScAccessibleContextBase"); + return "ScAccessibleContextBase"; } sal_Bool SAL_CALL ScAccessibleContextBase::supportsService(const OUString& sServiceName) diff --git a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx index be989a78e6eb..b751ed478eac 100644 --- a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx +++ b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx @@ -703,7 +703,7 @@ void SAL_CALL ScAccessibleCsvRuler::release() throw () OUString SAL_CALL ScAccessibleCsvRuler::getImplementationName() { - return OUString( RULER_IMPL_NAME ); + return RULER_IMPL_NAME; } // XTypeProvider -------------------------------------------------------------- @@ -1186,7 +1186,7 @@ void SAL_CALL ScAccessibleCsvGrid::release() throw () OUString SAL_CALL ScAccessibleCsvGrid::getImplementationName() { - return OUString( GRID_IMPL_NAME ); + return GRID_IMPL_NAME; } // XTypeProvider -------------------------------------------------------------- @@ -1458,7 +1458,7 @@ IMPLEMENT_FORWARD_XTYPEPROVIDER2( ScAccessibleCsvCell, ScAccessibleCsvControl, A OUString SAL_CALL ScAccessibleCsvCell::getImplementationName() { - return OUString( CELL_IMPL_NAME ); + return CELL_IMPL_NAME; } // helpers -------------------------------------------------------------------- diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx index 5f434733a557..489ee8a69434 100644 --- a/sc/source/ui/Accessibility/AccessibleDocument.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx @@ -1964,7 +1964,7 @@ void SAL_CALL OUString SAL_CALL ScAccessibleDocument::getImplementationName() { - return OUString("ScAccessibleDocument"); + return "ScAccessibleDocument"; } uno::Sequence< OUString> SAL_CALL diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx index 8b660416039d..84022786f83a 100644 --- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx @@ -1388,7 +1388,7 @@ uno::Reference<XAccessibleStateSet> SAL_CALL ScAccessibleDocumentPagePreview::ge OUString SAL_CALL ScAccessibleDocumentPagePreview::getImplementationName() { - return OUString("ScAccessibleDocumentPagePreview"); + return "ScAccessibleDocumentPagePreview"; } uno::Sequence< OUString> SAL_CALL ScAccessibleDocumentPagePreview::getSupportedServiceNames() diff --git a/sc/source/ui/Accessibility/AccessibleEditObject.cxx b/sc/source/ui/Accessibility/AccessibleEditObject.cxx index dc32e50924a0..a846e8f9016d 100644 --- a/sc/source/ui/Accessibility/AccessibleEditObject.cxx +++ b/sc/source/ui/Accessibility/AccessibleEditObject.cxx @@ -327,7 +327,7 @@ void SAL_CALL OUString SAL_CALL ScAccessibleEditObject::getImplementationName() { - return OUString("ScAccessibleEditObject"); + return "ScAccessibleEditObject"; } //===== XTypeProvider ======================================================= diff --git a/sc/source/ui/Accessibility/AccessibleFilterMenu.cxx b/sc/source/ui/Accessibility/AccessibleFilterMenu.cxx index da38e6369993..7dfcae0e7edf 100644 --- a/sc/source/ui/Accessibility/AccessibleFilterMenu.cxx +++ b/sc/source/ui/Accessibility/AccessibleFilterMenu.cxx @@ -130,7 +130,7 @@ Reference<XAccessibleStateSet> ScAccessibleFilterMenu::getAccessibleStateSet() OUString ScAccessibleFilterMenu::getImplementationName() { - return OUString("ScAccessibleFilterMenu"); + return "ScAccessibleFilterMenu"; } // XAccessibleEventBroadcaster diff --git a/sc/source/ui/Accessibility/AccessibleFilterMenuItem.cxx b/sc/source/ui/Accessibility/AccessibleFilterMenuItem.cxx index d9465005251f..cf964847f54d 100644 --- a/sc/source/ui/Accessibility/AccessibleFilterMenuItem.cxx +++ b/sc/source/ui/Accessibility/AccessibleFilterMenuItem.cxx @@ -65,7 +65,7 @@ Reference<XAccessibleStateSet> ScAccessibleFilterMenuItem::getAccessibleStateSet OUString ScAccessibleFilterMenuItem::getImplementationName() { - return OUString("ScAccessibleFilterMenuItem"); + return "ScAccessibleFilterMenuItem"; } // XAccessibleAction @@ -83,7 +83,7 @@ sal_Bool ScAccessibleFilterMenuItem::doAccessibleAction(sal_Int32 /*nIndex*/) OUString ScAccessibleFilterMenuItem::getAccessibleActionDescription(sal_Int32 /*nIndex*/) { - return OUString("click"); + return "click"; } Reference<XAccessibleKeyBinding> ScAccessibleFilterMenuItem::getAccessibleActionKeyBinding( diff --git a/sc/source/ui/Accessibility/AccessibleFilterTopWindow.cxx b/sc/source/ui/Accessibility/AccessibleFilterTopWindow.cxx index 55aa073afd7b..9fdc7825ca92 100644 --- a/sc/source/ui/Accessibility/AccessibleFilterTopWindow.cxx +++ b/sc/source/ui/Accessibility/AccessibleFilterTopWindow.cxx @@ -84,7 +84,7 @@ Reference<XAccessible> ScAccessibleFilterTopWindow::getAccessibleChild( OUString ScAccessibleFilterTopWindow::getImplementationName() { - return OUString("ScAccessibleFilterTopWindow"); + return "ScAccessibleFilterTopWindow"; } void ScAccessibleFilterTopWindow::setAccessibleChild( diff --git a/sc/source/ui/Accessibility/AccessiblePageHeader.cxx b/sc/source/ui/Accessibility/AccessiblePageHeader.cxx index 2255329151e8..54df90578554 100644 --- a/sc/source/ui/Accessibility/AccessiblePageHeader.cxx +++ b/sc/source/ui/Accessibility/AccessiblePageHeader.cxx @@ -276,7 +276,7 @@ uno::Reference< XAccessibleStateSet > SAL_CALL ScAccessiblePageHeader::getAccess OUString SAL_CALL ScAccessiblePageHeader::getImplementationName() { - return OUString("ScAccessiblePageHeader"); + return "ScAccessiblePageHeader"; } uno::Sequence<OUString> SAL_CALL ScAccessiblePageHeader::getSupportedServiceNames() diff --git a/sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx b/sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx index e42df0b2f2b3..dfc3159a89a3 100644 --- a/sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx +++ b/sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx @@ -168,7 +168,7 @@ uno::Reference<XAccessibleStateSet> SAL_CALL OUString SAL_CALL ScAccessiblePageHeaderArea::getImplementationName() { - return OUString("ScAccessiblePageHeaderArea"); + return "ScAccessiblePageHeaderArea"; } uno::Sequence< OUString> SAL_CALL diff --git a/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx b/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx index 939dce5735c5..70e8c970f182 100644 --- a/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx +++ b/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx @@ -172,7 +172,7 @@ uno::Reference<XAccessibleStateSet> SAL_CALL ScAccessiblePreviewCell::getAccessi OUString SAL_CALL ScAccessiblePreviewCell::getImplementationName() { - return OUString("ScAccessiblePreviewCell"); + return "ScAccessiblePreviewCell"; } uno::Sequence<OUString> SAL_CALL ScAccessiblePreviewCell::getSupportedServiceNames() diff --git a/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx b/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx index dc3c79412261..d830a725425a 100644 --- a/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx +++ b/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx @@ -253,7 +253,7 @@ uno::Reference<XAccessibleStateSet> SAL_CALL ScAccessiblePreviewHeaderCell::getA OUString SAL_CALL ScAccessiblePreviewHeaderCell::getImplementationName() { - return OUString("ScAccessiblePreviewHeaderCell"); + return "ScAccessiblePreviewHeaderCell"; } uno::Sequence<OUString> SAL_CALL ScAccessiblePreviewHeaderCell::getSupportedServiceNames() diff --git a/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx b/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx index 3a372546cbaf..bd47bf57e40a 100644 --- a/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx +++ b/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx @@ -527,7 +527,7 @@ uno::Reference< XAccessibleStateSet > SAL_CALL ScAccessiblePreviewTable::getAcce OUString SAL_CALL ScAccessiblePreviewTable::getImplementationName() { - return OUString("ScAccessiblePreviewTable"); + return "ScAccessiblePreviewTable"; } uno::Sequence<OUString> SAL_CALL ScAccessiblePreviewTable::getSupportedServiceNames() @@ -557,7 +557,7 @@ uno::Sequence<sal_Int8> SAL_CALL ScAccessiblePreviewTable::getImplementationId() OUString ScAccessiblePreviewTable::createAccessibleDescription() { - return OUString(STR_ACC_TABLE_DESCR); + return STR_ACC_TABLE_DESCR; } OUString ScAccessiblePreviewTable::createAccessibleName() diff --git a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx index 2381383d4f67..c74e31740a01 100644 --- a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx +++ b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx @@ -1253,7 +1253,7 @@ void ScAccessibleSpreadsheet::AddMarkedRange(const ScRange& rRange) OUString SAL_CALL ScAccessibleSpreadsheet::getImplementationName() { - return OUString("ScAccessibleSpreadsheet"); + return "ScAccessibleSpreadsheet"; } uno::Sequence< OUString> SAL_CALL diff --git a/sc/source/ui/Accessibility/AccessibleTableBase.cxx b/sc/source/ui/Accessibility/AccessibleTableBase.cxx index 2f0ebf129342..f66e1fea8b4d 100644 --- a/sc/source/ui/Accessibility/AccessibleTableBase.cxx +++ b/sc/source/ui/Accessibility/AccessibleTableBase.cxx @@ -342,7 +342,7 @@ uno::Reference< XAccessible > SAL_CALL OUString ScAccessibleTableBase::createAccessibleDescription() { - return OUString(STR_ACC_TABLE_DESCR); + return STR_ACC_TABLE_DESCR; } OUString ScAccessibleTableBase::createAccessibleName() @@ -414,7 +414,7 @@ void SAL_CALL ScAccessibleTableBase::deselectAccessibleChild( sal_Int32 /* nSele OUString SAL_CALL ScAccessibleTableBase::getImplementationName() { - return OUString("ScAccessibleTableBase"); + return "ScAccessibleTableBase"; } //===== XTypeProvider =================================================== diff --git a/sc/source/ui/StatisticsDialogs/CorrelationDialog.cxx b/sc/source/ui/StatisticsDialogs/CorrelationDialog.cxx index 6ac135d33b43..e0bde397dd8e 100644 --- a/sc/source/ui/StatisticsDialogs/CorrelationDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/CorrelationDialog.cxx @@ -33,7 +33,7 @@ const OUString ScCorrelationDialog::getLabel() const OUString ScCorrelationDialog::getTemplate() { - return OUString("=CORREL(%VAR1%; %VAR2%)"); + return "=CORREL(%VAR1%; %VAR2%)"; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/ui/StatisticsDialogs/CovarianceDialog.cxx b/sc/source/ui/StatisticsDialogs/CovarianceDialog.cxx index f447b89d0c93..6debc46e22a4 100644 --- a/sc/source/ui/StatisticsDialogs/CovarianceDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/CovarianceDialog.cxx @@ -38,7 +38,7 @@ const OUString ScCovarianceDialog::getLabel() const OUString ScCovarianceDialog::getTemplate() { - return OUString("=COVAR(%VAR1%; %VAR2%)"); + return "=COVAR(%VAR1%; %VAR2%)"; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/ui/condformat/condformathelper.cxx b/sc/source/ui/condformat/condformathelper.cxx index 2ab5d955db15..dc40f5464803 100644 --- a/sc/source/ui/condformat/condformathelper.cxx +++ b/sc/source/ui/condformat/condformathelper.cxx @@ -43,17 +43,17 @@ OUString getExpression(sal_Int32 nIndex) switch(nIndex) { case 0: - return OUString("="); + return "="; case 1: - return OUString("<"); + return "<"; case 2: - return OUString(">"); + return ">"; case 3: - return OUString("<="); + return "<="; case 4: - return OUString(">="); + return ">="; case 5: - return OUString("!="); + return "!="; case 6: return ScResId(STR_COND_BETWEEN); case 7: diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 4d4872840151..ad8d664dd690 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -2660,37 +2660,37 @@ bool ScDocShell::PrepareClose( bool bUI ) OUString ScDocShell::GetOwnFilterName() { - return OUString(pFilterSc50); + return pFilterSc50; } OUString ScDocShell::GetHtmlFilterName() { - return OUString(pFilterHtml); + return pFilterHtml; } OUString ScDocShell::GetWebQueryFilterName() { - return OUString(pFilterHtmlWebQ); + return pFilterHtmlWebQ; } OUString ScDocShell::GetAsciiFilterName() { - return OUString(pFilterAscii); + return pFilterAscii; } OUString ScDocShell::GetLotusFilterName() { - return OUString(pFilterLotus); + return pFilterLotus; } OUString ScDocShell::GetDBaseFilterName() { - return OUString(pFilterDBase); + return pFilterDBase; } OUString ScDocShell::GetDifFilterName() { - return OUString(pFilterDif); + return pFilterDif; } bool ScDocShell::HasAutomaticTableName( const OUString& rFilter ) diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx index a8ec82b233dc..df5f1a86920c 100644 --- a/sc/source/ui/docshell/externalrefmgr.cxx +++ b/sc/source/ui/docshell/externalrefmgr.cxx @@ -2663,7 +2663,7 @@ void ScExternalRefManager::maybeCreateRealFileName(sal_uInt16 nFileId) OUString ScExternalRefManager::getOwnDocumentName() const { if (utl::ConfigManager::IsFuzzing()) - return OUString("file:///tmp/document"); + return "file:///tmp/document"; SfxObjectShell* pShell = mpDoc->GetDocumentShell(); if (!pShell) diff --git a/sc/source/ui/sidebar/ScPanelFactory.cxx b/sc/source/ui/sidebar/ScPanelFactory.cxx index cda3275e19a9..7257b5b07972 100644 --- a/sc/source/ui/sidebar/ScPanelFactory.cxx +++ b/sc/source/ui/sidebar/ScPanelFactory.cxx @@ -118,7 +118,7 @@ Reference<ui::XUIElement> SAL_CALL ScPanelFactory::createUIElement ( OUString ScPanelFactory::getImplementationName() { - return OUString("org.apache.openoffice.comp.sc.sidebar.ScPanelFactory"); + return "org.apache.openoffice.comp.sc.sidebar.ScPanelFactory"; } sal_Bool ScPanelFactory::supportsService(OUString const & ServiceName) diff --git a/sc/source/ui/uitest/uiobject.cxx b/sc/source/ui/uitest/uiobject.cxx index 8dabece8053e..d606e67cd4bc 100644 --- a/sc/source/ui/uitest/uiobject.cxx +++ b/sc/source/ui/uitest/uiobject.cxx @@ -271,7 +271,7 @@ std::unique_ptr<UIObject> ScGridWinUIObject::create(vcl::Window* pWindow) OUString ScGridWinUIObject::get_name() const { - return OUString("ScGridWinUIObject"); + return "ScGridWinUIObject"; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/ui/unoobj/addruno.cxx b/sc/source/ui/unoobj/addruno.cxx index 8878b33ea25a..012e68f4b884 100644 --- a/sc/source/ui/unoobj/addruno.cxx +++ b/sc/source/ui/unoobj/addruno.cxx @@ -281,7 +281,7 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScAddressConversionObj ) OUString SAL_CALL ScAddressConversionObj::getImplementationName() { - return OUString("ScAddressConversionObj" ); + return "ScAddressConversionObj"; } sal_Bool SAL_CALL ScAddressConversionObj::supportsService( const OUString& rServiceName ) diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx index 1f14265e5a2b..6cddcc87988b 100644 --- a/sc/source/ui/unoobj/appluno.cxx +++ b/sc/source/ui/unoobj/appluno.cxx @@ -190,7 +190,7 @@ uno::Reference<uno::XInterface> ScSpreadsheetSettings_CreateInstance( OUString ScSpreadsheetSettings::getImplementationName_Static() { - return OUString( "stardiv.StarCalc.ScSpreadsheetSettings" ); + return "stardiv.StarCalc.ScSpreadsheetSettings"; } uno::Sequence<OUString> ScSpreadsheetSettings::getSupportedServiceNames_Static() diff --git a/sc/source/ui/unoobj/celllistsource.cxx b/sc/source/ui/unoobj/celllistsource.cxx index 325500be6285..dde68149c511 100644 --- a/sc/source/ui/unoobj/celllistsource.cxx +++ b/sc/source/ui/unoobj/celllistsource.cxx @@ -137,7 +137,7 @@ namespace calc OUString SAL_CALL OCellListSource::getImplementationName( ) { - return OUString( "com.sun.star.comp.sheet.OCellListSource" ); + return "com.sun.star.comp.sheet.OCellListSource"; } sal_Bool SAL_CALL OCellListSource::supportsService( const OUString& _rServiceName ) diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 70192a2b0da6..3301ddc2fcf5 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -4621,7 +4621,7 @@ sal_Bool SAL_CALL ScCellRangesObj::hasElements() // XServiceInfo OUString SAL_CALL ScCellRangesObj::getImplementationName() { - return OUString( "ScCellRangesObj" ); + return "ScCellRangesObj"; } sal_Bool SAL_CALL ScCellRangesObj::supportsService( const OUString& rServiceName ) @@ -5839,7 +5839,7 @@ const SfxItemPropertyMap& ScCellRangeObj::GetItemPropertyMap() OUString SAL_CALL ScCellRangeObj::getImplementationName() { - return OUString( "ScCellRangeObj" ); + return "ScCellRangeObj"; } sal_Bool SAL_CALL ScCellRangeObj::supportsService( const OUString& rServiceName ) @@ -6539,7 +6539,7 @@ const SfxItemPropertyMap& ScCellObj::GetItemPropertyMap() OUString SAL_CALL ScCellObj::getImplementationName() { - return OUString( "ScCellObj" ); + return "ScCellObj"; } sal_Bool SAL_CALL ScCellObj::supportsService( const OUString& rServiceName ) @@ -8367,7 +8367,7 @@ const SfxItemPropertyMap& ScTableSheetObj::GetItemPropertyMap() OUString SAL_CALL ScTableSheetObj::getImplementationName() { - return OUString( "ScTableSheetObj" ); + return "ScTableSheetObj"; } sal_Bool SAL_CALL ScTableSheetObj::supportsService( const OUString& rServiceName ) diff --git a/sc/source/ui/unoobj/cellvaluebinding.cxx b/sc/source/ui/unoobj/cellvaluebinding.cxx index 0ac76f797afa..6a33f492e535 100644 --- a/sc/source/ui/unoobj/cellvaluebinding.cxx +++ b/sc/source/ui/unoobj/cellvaluebinding.cxx @@ -417,7 +417,7 @@ namespace calc OUString SAL_CALL OCellValueBinding::getImplementationName( ) { - return OUString( "com.sun.star.comp.sheet.OCellValueBinding" ); + return "com.sun.star.comp.sheet.OCellValueBinding"; } sal_Bool SAL_CALL OCellValueBinding::supportsService( const OUString& _rServiceName ) diff --git a/sc/source/ui/unoobj/confuno.cxx b/sc/source/ui/unoobj/confuno.cxx index d13cdda3e4df..a168afccdd4f 100644 --- a/sc/source/ui/unoobj/confuno.cxx +++ b/sc/source/ui/unoobj/confuno.cxx @@ -620,7 +620,7 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScDocumentConfiguration ) // XServiceInfo OUString SAL_CALL ScDocumentConfiguration::getImplementationName() { - return OUString( "ScDocumentConfiguration" ); + return "ScDocumentConfiguration"; } sal_Bool SAL_CALL ScDocumentConfiguration::supportsService( const OUString& rServiceName ) diff --git a/sc/source/ui/unoobj/cursuno.cxx b/sc/source/ui/unoobj/cursuno.cxx index 1ee52e13f428..0839e754e69d 100644 --- a/sc/source/ui/unoobj/cursuno.cxx +++ b/sc/source/ui/unoobj/cursuno.cxx @@ -429,7 +429,7 @@ uno::Reference<table::XCellRange> SAL_CALL ScCellCursorObj::getCellRangeByName( OUString SAL_CALL ScCellCursorObj::getImplementationName() { - return OUString( "ScCellCursorObj" ); + return "ScCellCursorObj"; } sal_Bool SAL_CALL ScCellCursorObj::supportsService( const OUString& rServiceName ) diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx index e88e61670442..f7f8d30dbc8c 100644 --- a/sc/source/ui/unoobj/datauno.cxx +++ b/sc/source/ui/unoobj/datauno.cxx @@ -2075,7 +2075,7 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScDatabaseRangeObj ) // XServiceInfo OUString SAL_CALL ScDatabaseRangeObj::getImplementationName() { - return OUString( "ScDatabaseRangeObj" ); + return "ScDatabaseRangeObj"; } sal_Bool SAL_CALL ScDatabaseRangeObj::supportsService( const OUString& rServiceName ) diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index b67e776bc8a2..9c7f24611cf5 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -2845,7 +2845,7 @@ uno::Sequence<OUString> SAL_CALL ScModelObj::getAvailableServiceNames() // XServiceInfo OUString SAL_CALL ScModelObj::getImplementationName() { - return OUString( "ScModelObj" ); + return "ScModelObj"; /* // Matching the .component information: return OUString( "com.sun.star.comp.Calc.SpreadsheetDocument" ); */ diff --git a/sc/source/ui/unoobj/exceldetect.cxx b/sc/source/ui/unoobj/exceldetect.cxx index 176e0997ab23..77270cc2b85a 100644 --- a/sc/source/ui/unoobj/exceldetect.cxx +++ b/sc/source/ui/unoobj/exceldetect.cxx @@ -27,7 +27,7 @@ ScExcelBiffDetect::~ScExcelBiffDetect() {} OUString ScExcelBiffDetect::getImplementationName() { - return OUString("com.sun.star.comp.calc.ExcelBiffFormatDetector"); + return "com.sun.star.comp.calc.ExcelBiffFormatDetector"; } sal_Bool ScExcelBiffDetect::supportsService( const OUString& aName ) diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx index 8ee9d4374ee0..aa6b1b5c32bb 100644 --- a/sc/source/ui/unoobj/fielduno.cxx +++ b/sc/source/ui/unoobj/fielduno.cxx @@ -1286,7 +1286,7 @@ UNO3_GETIMPLEMENTATION_IMPL(ScEditFieldObj); OUString SAL_CALL ScEditFieldObj::getImplementationName() { - return OUString("ScEditFieldObj"); + return "ScEditFieldObj"; } sal_Bool SAL_CALL ScEditFieldObj::supportsService( const OUString& rServiceName ) diff --git a/sc/source/ui/unoobj/funcuno.cxx b/sc/source/ui/unoobj/funcuno.cxx index 280fd1b868d2..2e7a7cd3b86a 100644 --- a/sc/source/ui/unoobj/funcuno.cxx +++ b/sc/source/ui/unoobj/funcuno.cxx @@ -204,7 +204,7 @@ ScFunctionAcceess_get_implementation(css::uno::XComponentContext*, css::uno::Seq // XServiceInfo OUString SAL_CALL ScFunctionAccess::getImplementationName() { - return OUString("stardiv.StarCalc.ScFunctionAccess"); + return "stardiv.StarCalc.ScFunctionAccess"; } sal_Bool SAL_CALL ScFunctionAccess::supportsService( const OUString& rServiceName ) diff --git a/sc/source/ui/unoobj/miscuno.cxx b/sc/source/ui/unoobj/miscuno.cxx index 28765aba1e60..6adcac3b01cc 100644 --- a/sc/source/ui/unoobj/miscuno.cxx +++ b/sc/source/ui/unoobj/miscuno.cxx @@ -217,7 +217,7 @@ uno::Any SAL_CALL ScIndexEnumeration::nextElement() OUString SAL_CALL ScIndexEnumeration::getImplementationName() { - return OUString("ScIndexEnumeration"); + return "ScIndexEnumeration"; } sal_Bool SAL_CALL ScIndexEnumeration::supportsService( const OUString& ServiceName ) diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx index 07a7162e1280..e2fb3da5b154 100644 --- a/sc/source/ui/unoobj/nameuno.cxx +++ b/sc/source/ui/unoobj/nameuno.cxx @@ -408,7 +408,7 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScNamedRangeObj ) OUString SAL_CALL ScNamedRangeObj::getImplementationName() { - return OUString( "ScNamedRangeObj" ); + return "ScNamedRangeObj"; } sal_Bool SAL_CALL ScNamedRangeObj::supportsService( const OUString& rServiceName ) diff --git a/sc/source/ui/unoobj/pageuno.cxx b/sc/source/ui/unoobj/pageuno.cxx index 74f06d8f40b0..3455537ff149 100644 --- a/sc/source/ui/unoobj/pageuno.cxx +++ b/sc/source/ui/unoobj/pageuno.cxx @@ -44,7 +44,7 @@ uno::Reference<drawing::XShape > ScPageObj::CreateShape( SdrObject *pObj ) const OUString SAL_CALL ScPageObj::getImplementationName() { - return OUString("ScPageObj"); + return "ScPageObj"; } sal_Bool SAL_CALL ScPageObj::supportsService( const OUString& rServiceName ) diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx index 2fb761d35ae0..711457f791f1 100644 --- a/sc/source/ui/unoobj/scdetect.cxx +++ b/sc/source/ui/unoobj/scdetect.cxx @@ -330,7 +330,7 @@ OUString SAL_CALL ScFilterDetect::detect( uno::Sequence<beans::PropertyValue>& l OUString SAL_CALL ScFilterDetect::getImplementationName() { - return OUString("com.sun.star.comp.calc.FormatDetector"); + return "com.sun.star.comp.calc.FormatDetector"; } sal_Bool ScFilterDetect::supportsService( const OUString& sServiceName ) diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx index 5f7c4b23ded4..8795d104956c 100644 --- a/sc/source/ui/unoobj/shapeuno.cxx +++ b/sc/source/ui/unoobj/shapeuno.cxx @@ -1427,7 +1427,7 @@ ScShapeObj::getEvents( ) OUString SAL_CALL ScShapeObj::getImplementationName( ) { - return OUString( "com.sun.star.comp.sc.ScShapeObj" ); + return "com.sun.star.comp.sc.ScShapeObj"; } sal_Bool SAL_CALL ScShapeObj::supportsService( const OUString& ServiceName ) diff --git a/sc/source/ui/unoobj/srchuno.cxx b/sc/source/ui/unoobj/srchuno.cxx index 40d60667a0cb..c7fc844338be 100644 --- a/sc/source/ui/unoobj/srchuno.cxx +++ b/sc/source/ui/unoobj/srchuno.cxx @@ -177,7 +177,7 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScCellSearchObj ) OUString SAL_CALL ScCellSearchObj::getImplementationName() { - return OUString( "ScCellSearchObj" ); + return "ScCellSearchObj"; } sal_Bool SAL_CALL ScCellSearchObj::supportsService( const OUString& rServiceName ) diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index ec6a9424cf4c..267834ea371d 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -1904,7 +1904,7 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScStyleObj ) OUString SAL_CALL ScStyleObj::getImplementationName() { - return OUString("ScStyleObj" ); + return "ScStyleObj"; } sal_Bool SAL_CALL ScStyleObj::supportsService( const OUString& rServiceName ) diff --git a/sc/source/ui/unoobj/unodoc.cxx b/sc/source/ui/unoobj/unodoc.cxx index 7f1dd082ebb7..085d8d9595f3 100644 --- a/sc/source/ui/unoobj/unodoc.cxx +++ b/sc/source/ui/unoobj/unodoc.cxx @@ -31,7 +31,7 @@ using namespace ::com::sun::star; OUString ScDocument_getImplementationName() throw() { - return OUString( "com.sun.star.comp.Calc.SpreadsheetDocument" ); + return "com.sun.star.comp.Calc.SpreadsheetDocument"; } uno::Sequence< OUString > ScDocument_getSupportedServiceNames() throw() diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx index 7bc677fdbfb8..29e788241981 100644 --- a/sc/source/ui/unoobj/viewuno.cxx +++ b/sc/source/ui/unoobj/viewuno.cxx @@ -2044,7 +2044,7 @@ void ScTabViewObj::RangeSelChanged( const OUString& rText ) // XServiceInfo OUString SAL_CALL ScTabViewObj::getImplementationName() { - return OUString( "ScTabViewObj" ); + return "ScTabViewObj"; } sal_Bool SAL_CALL ScTabViewObj::supportsService( const OUString& rServiceName ) diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx index d6e0162c0aef..8cb8c7481146 100644 --- a/sc/source/ui/vba/vbaapplication.cxx +++ b/sc/source/ui/vba/vbaapplication.cxx @@ -742,7 +742,7 @@ ScVbaApplication::setCursor( sal_Int32 _cursor ) OUString SAL_CALL ScVbaApplication::getName() { - return OUString("Microsoft Excel" ); + return "Microsoft Excel"; } // #TODO #FIXME get/setDisplayAlerts are just stub impl @@ -974,7 +974,7 @@ ScVbaApplication::getOperatingSystem() return OUString("Macintosh"); #elif defined(UNX) // M. Office is not available on Unix systems, so it is not documented. - return OUString("Unix"); + return "Unix"; #else return OUString("Unknown"); #endif @@ -1419,7 +1419,7 @@ void SAL_CALL ScVbaApplication::Undo() OUString SAL_CALL ScVbaApplication::getIID() { - return OUString("{82154425-0FBF-11d4-8313-005004526AB4}"); + return "{82154425-0FBF-11d4-8313-005004526AB4}"; } // XConnectable @@ -1427,7 +1427,7 @@ ScVbaApplication::getIID() OUString SAL_CALL ScVbaApplication::GetIIDForClassItselfNotCoclass() { - return OUString("{82154426-0FBF-11D4-8313-005004526AB4}"); + return "{82154426-0FBF-11D4-8313-005004526AB4}"; } TypeAndIID SAL_CALL @@ -1463,7 +1463,7 @@ ScVbaApplication::CallSinks( const OUString& Method, uno::Sequence< uno::Any >& OUString ScVbaApplication::getServiceImplName() { - return OUString("ScVbaApplication"); + return "ScVbaApplication"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbaassistant.cxx b/sc/source/ui/vba/vbaassistant.cxx index 11a370e6a5c6..25da8eee15eb 100644 --- a/sc/source/ui/vba/vbaassistant.cxx +++ b/sc/source/ui/vba/vbaassistant.cxx @@ -100,7 +100,7 @@ ScVbaAssistant::Name( ) OUString ScVbaAssistant::getServiceImplName() { - return OUString("ScVbaAssistant"); + return "ScVbaAssistant"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbaaxes.cxx b/sc/source/ui/vba/vbaaxes.cxx index ee93fe2c4700..6a750f7656b6 100644 --- a/sc/source/ui/vba/vbaaxes.cxx +++ b/sc/source/ui/vba/vbaaxes.cxx @@ -195,7 +195,7 @@ ScVbaAxes::createCollectionObject(const css::uno::Any& aSource) OUString ScVbaAxes::getServiceImplName() { - return OUString("ScVbaAxes"); + return "ScVbaAxes"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbaaxis.cxx b/sc/source/ui/vba/vbaaxis.cxx index 01e04725c350..f50b04a57e7e 100644 --- a/sc/source/ui/vba/vbaaxis.cxx +++ b/sc/source/ui/vba/vbaaxis.cxx @@ -640,7 +640,7 @@ void SAL_CALL ScVbaAxis::setLeft( double left ) OUString ScVbaAxis::getServiceImplName() { - return OUString("ScVbaAxis"); + return "ScVbaAxis"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbaaxistitle.cxx b/sc/source/ui/vba/vbaaxistitle.cxx index 9029c2dbac50..5336ef7a763f 100644 --- a/sc/source/ui/vba/vbaaxistitle.cxx +++ b/sc/source/ui/vba/vbaaxistitle.cxx @@ -29,7 +29,7 @@ ScVbaAxisTitle::ScVbaAxisTitle( const uno::Reference< XHelperInterface >& xParen OUString ScVbaAxisTitle::getServiceImplName() { - return OUString("ScVbaAxisTitle"); + return "ScVbaAxisTitle"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbaborders.cxx b/sc/source/ui/vba/vbaborders.cxx index 73d0d8016409..7061bb6733ef 100644 --- a/sc/source/ui/vba/vbaborders.cxx +++ b/sc/source/ui/vba/vbaborders.cxx @@ -144,7 +144,7 @@ private: protected: virtual OUString getServiceImplName() override { - return OUString("ScVbaBorder"); + return "ScVbaBorder"; } virtual css::uno::Sequence<OUString> getServiceNames() override { @@ -566,7 +566,7 @@ void SAL_CALL ScVbaBorders::setWeight( const uno::Any& _weight ) OUString ScVbaBorders::getServiceImplName() { - return OUString("ScVbaBorders"); + return "ScVbaBorders"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbacharacters.cxx b/sc/source/ui/vba/vbacharacters.cxx index d9a705014b47..cb1fdd8fdae1 100644 --- a/sc/source/ui/vba/vbacharacters.cxx +++ b/sc/source/ui/vba/vbacharacters.cxx @@ -118,7 +118,7 @@ ScVbaCharacters::Delete( ) OUString ScVbaCharacters::getServiceImplName() { - return OUString("ScVbaCharacters"); + return "ScVbaCharacters"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbachart.cxx b/sc/source/ui/vba/vbachart.cxx index d6727d73aa7a..9ed6ce0628dc 100644 --- a/sc/source/ui/vba/vbachart.cxx +++ b/sc/source/ui/vba/vbachart.cxx @@ -1046,7 +1046,7 @@ ScVbaChart::getAxisPropertySet(sal_Int32 _nAxisType, sal_Int32 _nAxisGroup) OUString ScVbaChart::getServiceImplName() { - return OUString("ScVbaChart"); + return "ScVbaChart"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbachartobject.cxx b/sc/source/ui/vba/vbachartobject.cxx index d687416b4c4a..424143b27e07 100644 --- a/sc/source/ui/vba/vbachartobject.cxx +++ b/sc/source/ui/vba/vbachartobject.cxx @@ -131,7 +131,7 @@ ScVbaChartObject::getChart() OUString ScVbaChartObject::getServiceImplName() { - return OUString("ScVbaChartObject"); + return "ScVbaChartObject"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbachartobjects.cxx b/sc/source/ui/vba/vbachartobjects.cxx index 5863b36ec65f..8667f8fab55e 100644 --- a/sc/source/ui/vba/vbachartobjects.cxx +++ b/sc/source/ui/vba/vbachartobjects.cxx @@ -188,7 +188,7 @@ ScVbaChartObjects::createCollectionObject( const css::uno::Any& aSource ) OUString ScVbaChartObjects::getServiceImplName() { - return OUString("ScVbaChartObjects"); + return "ScVbaChartObjects"; } css::uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbacharttitle.cxx b/sc/source/ui/vba/vbacharttitle.cxx index cf49708a9ce8..2e881fd61919 100644 --- a/sc/source/ui/vba/vbacharttitle.cxx +++ b/sc/source/ui/vba/vbacharttitle.cxx @@ -29,7 +29,7 @@ ScVbaChartTitle::ScVbaChartTitle( const uno::Reference< XHelperInterface >& xPar OUString ScVbaChartTitle::getServiceImplName() { - return OUString("ScVbaChartTitle"); + return "ScVbaChartTitle"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbacomment.cxx b/sc/source/ui/vba/vbacomment.cxx index 348ecf7b0006..12b7b012ba84 100644 --- a/sc/source/ui/vba/vbacomment.cxx +++ b/sc/source/ui/vba/vbacomment.cxx @@ -218,7 +218,7 @@ ScVbaComment::Text( const uno::Any& aText, const uno::Any& aStart, const uno::An OUString ScVbaComment::getServiceImplName() { - return OUString("ScVbaComment"); + return "ScVbaComment"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbacomments.cxx b/sc/source/ui/vba/vbacomments.cxx index 7dec20724383..a1b2001c522a 100644 --- a/sc/source/ui/vba/vbacomments.cxx +++ b/sc/source/ui/vba/vbacomments.cxx @@ -93,7 +93,7 @@ ScVbaComments::getElementType() OUString ScVbaComments::getServiceImplName() { - return OUString("ScVbaComments"); + return "ScVbaComments"; } css::uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbadialog.cxx b/sc/source/ui/vba/vbadialog.cxx index 316f714ed494..d3e47a289cc1 100644 --- a/sc/source/ui/vba/vbadialog.cxx +++ b/sc/source/ui/vba/vbadialog.cxx @@ -65,7 +65,7 @@ ScVbaDialog::mapIndexToName( sal_Int32 nIndex ) OUString ScVbaDialog::getServiceImplName() { - return OUString("ScVbaDialog"); + return "ScVbaDialog"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbadialogs.cxx b/sc/source/ui/vba/vbadialogs.cxx index 5d2a388338c1..9264728a282b 100644 --- a/sc/source/ui/vba/vbadialogs.cxx +++ b/sc/source/ui/vba/vbadialogs.cxx @@ -35,7 +35,7 @@ ScVbaDialogs::Item( const uno::Any &aItem ) OUString ScVbaDialogs::getServiceImplName() { - return OUString("ScVbaDialogs"); + return "ScVbaDialogs"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbaeventshelper.cxx b/sc/source/ui/vba/vbaeventshelper.cxx index a8a0ea59865e..251843efaea6 100644 --- a/sc/source/ui/vba/vbaeventshelper.cxx +++ b/sc/source/ui/vba/vbaeventshelper.cxx @@ -629,7 +629,7 @@ void SAL_CALL ScVbaEventsHelper::notifyEvent( const css::document::EventObject& OUString ScVbaEventsHelper::getImplementationName() { - return OUString("ScVbaEventsHelper"); + return "ScVbaEventsHelper"; } css::uno::Sequence<OUString> ScVbaEventsHelper::getSupportedServiceNames() diff --git a/sc/source/ui/vba/vbafiledialog.cxx b/sc/source/ui/vba/vbafiledialog.cxx index 2842b87efb57..40a4d6246e29 100644 --- a/sc/source/ui/vba/vbafiledialog.cxx +++ b/sc/source/ui/vba/vbafiledialog.cxx @@ -146,7 +146,7 @@ sal_Int32 ScVbaFileDialog::Show() OUString ScVbaFileDialog::getServiceImplName() { - return OUString("ScVbaFileDialog"); + return "ScVbaFileDialog"; } uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbafiledialogitems.cxx b/sc/source/ui/vba/vbafiledialogitems.cxx index 03fe61d71924..66d6ea976b2a 100644 --- a/sc/source/ui/vba/vbafiledialogitems.cxx +++ b/sc/source/ui/vba/vbafiledialogitems.cxx @@ -100,7 +100,7 @@ sal_Int32 ScVbaFileDialogSelectedItems::getCount() OUString ScVbaFileDialogSelectedItems::getServiceImplName() { - return OUString("ScVbaFileDialogSelectedItems"); + return "ScVbaFileDialogSelectedItems"; } uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbafont.cxx b/sc/source/ui/vba/vbafont.cxx index 5dc152b112f3..2c7b4185b604 100644 --- a/sc/source/ui/vba/vbafont.cxx +++ b/sc/source/ui/vba/vbafont.cxx @@ -313,7 +313,7 @@ ScVbaFont::getOutlineFont() OUString ScVbaFont::getServiceImplName() { - return OUString("ScVbaFont"); + return "ScVbaFont"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbaformatcondition.cxx b/sc/source/ui/vba/vbaformatcondition.cxx index 51390e200369..645d6e5f598f 100644 --- a/sc/source/ui/vba/vbaformatcondition.cxx +++ b/sc/source/ui/vba/vbaformatcondition.cxx @@ -141,7 +141,7 @@ ScVbaFormatCondition::notifyRange() OUString ScVbaFormatCondition::getServiceImplName() { - return OUString("ScVbaFormatCondition"); + return "ScVbaFormatCondition"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbaformatconditions.cxx b/sc/source/ui/vba/vbaformatconditions.cxx index c588c57fbc9e..d53f4c33d04c 100644 --- a/sc/source/ui/vba/vbaformatconditions.cxx +++ b/sc/source/ui/vba/vbaformatconditions.cxx @@ -273,7 +273,7 @@ ScVbaFormatConditions::removeFormatCondition( const OUString& _sStyleName, bool OUString ScVbaFormatConditions::getServiceImplName() { - return OUString("ScVbaFormatConditions"); + return "ScVbaFormatConditions"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbaglobals.cxx b/sc/source/ui/vba/vbaglobals.cxx index 03bf8685f00b..86b1332b6709 100644 --- a/sc/source/ui/vba/vbaglobals.cxx +++ b/sc/source/ui/vba/vbaglobals.cxx @@ -240,7 +240,7 @@ ScVbaGlobals::getAvailableServiceNames( ) OUString ScVbaGlobals::getServiceImplName() { - return OUString("ScVbaGlobals"); + return "ScVbaGlobals"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbainterior.cxx b/sc/source/ui/vba/vbainterior.cxx index d8816a526758..1dee1070077f 100644 --- a/sc/source/ui/vba/vbainterior.cxx +++ b/sc/source/ui/vba/vbainterior.cxx @@ -403,7 +403,7 @@ void SAL_CALL ScVbaInterior::setPatternTintAndShade(const uno::Any& /*rAny*/) OUString ScVbaInterior::getServiceImplName() { - return OUString("ScVbaInterior"); + return "ScVbaInterior"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbamenu.cxx b/sc/source/ui/vba/vbamenu.cxx index dc9c663521fd..8bfa966b89a6 100644 --- a/sc/source/ui/vba/vbamenu.cxx +++ b/sc/source/ui/vba/vbamenu.cxx @@ -51,7 +51,7 @@ ScVbaMenu::MenuItems( const uno::Any& aIndex ) OUString ScVbaMenu::getServiceImplName() { - return OUString("ScVbaMenu"); + return "ScVbaMenu"; } uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbamenubar.cxx b/sc/source/ui/vba/vbamenubar.cxx index 2812ec753c5a..f8f7f5665233 100644 --- a/sc/source/ui/vba/vbamenubar.cxx +++ b/sc/source/ui/vba/vbamenubar.cxx @@ -32,7 +32,7 @@ ScVbaMenuBar::Menus( const uno::Any& aIndex ) OUString ScVbaMenuBar::getServiceImplName() { - return OUString("ScVbaMenuBar"); + return "ScVbaMenuBar"; } uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbamenubars.cxx b/sc/source/ui/vba/vbamenubars.cxx index 50d649717bb2..c521cf562920 100644 --- a/sc/source/ui/vba/vbamenubars.cxx +++ b/sc/source/ui/vba/vbamenubars.cxx @@ -98,7 +98,7 @@ ScVbaMenuBars::Item( const uno::Any& aIndex, const uno::Any& /*aIndex2*/ ) OUString ScVbaMenuBars::getServiceImplName() { - return OUString("ScVbaMenuBars"); + return "ScVbaMenuBars"; } uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbamenuitem.cxx b/sc/source/ui/vba/vbamenuitem.cxx index d38d9311946a..2dba780baee4 100644 --- a/sc/source/ui/vba/vbamenuitem.cxx +++ b/sc/source/ui/vba/vbamenuitem.cxx @@ -48,7 +48,7 @@ ScVbaMenuItem::Delete( ) OUString ScVbaMenuItem::getServiceImplName() { - return OUString("ScVbaMenuItem"); + return "ScVbaMenuItem"; } uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbamenuitems.cxx b/sc/source/ui/vba/vbamenuitems.cxx index 10faba0d3e29..c64fefb9e6a1 100644 --- a/sc/source/ui/vba/vbamenuitems.cxx +++ b/sc/source/ui/vba/vbamenuitems.cxx @@ -118,7 +118,7 @@ uno::Reference< excel::XMenuItem > SAL_CALL ScVbaMenuItems::Add( const OUString& OUString ScVbaMenuItems::getServiceImplName() { - return OUString("ScVbaMenuItems"); + return "ScVbaMenuItems"; } uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbamenus.cxx b/sc/source/ui/vba/vbamenus.cxx index ba8f07d573fd..84c001d9adec 100644 --- a/sc/source/ui/vba/vbamenus.cxx +++ b/sc/source/ui/vba/vbamenus.cxx @@ -104,7 +104,7 @@ uno::Reference< excel::XMenu > SAL_CALL ScVbaMenus::Add( const OUString& Caption OUString ScVbaMenus::getServiceImplName() { - return OUString("ScVbaMenus"); + return "ScVbaMenus"; } uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbaname.cxx b/sc/source/ui/vba/vbaname.cxx index d480197ac2bc..6d2072f97ba5 100644 --- a/sc/source/ui/vba/vbaname.cxx +++ b/sc/source/ui/vba/vbaname.cxx @@ -201,7 +201,7 @@ ScVbaName::Delete() OUString ScVbaName::getServiceImplName() { - return OUString( "ScVbaName" ); + return "ScVbaName"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbanames.cxx b/sc/source/ui/vba/vbanames.cxx index 67f59b07a330..357067363074 100644 --- a/sc/source/ui/vba/vbanames.cxx +++ b/sc/source/ui/vba/vbanames.cxx @@ -238,7 +238,7 @@ ScVbaNames::createCollectionObject( const uno::Any& aSource ) OUString ScVbaNames::getServiceImplName() { - return OUString( "ScVbaNames" ); + return "ScVbaNames"; } css::uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbaoleobject.cxx b/sc/source/ui/vba/vbaoleobject.cxx index 981d7be1ee79..f2cd5de40f8b 100644 --- a/sc/source/ui/vba/vbaoleobject.cxx +++ b/sc/source/ui/vba/vbaoleobject.cxx @@ -134,7 +134,7 @@ void SAL_CALL ScVbaOLEObject::setLinkedCell( const OUString& _linkedcell ) OUString ScVbaOLEObject::getServiceImplName() { - return OUString("ScVbaOLEObject"); + return "ScVbaOLEObject"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbaoleobjects.cxx b/sc/source/ui/vba/vbaoleobjects.cxx index 68400f007e29..f0ddf68c82ac 100644 --- a/sc/source/ui/vba/vbaoleobjects.cxx +++ b/sc/source/ui/vba/vbaoleobjects.cxx @@ -168,7 +168,7 @@ ScVbaOLEObjects::getElementType() OUString ScVbaOLEObjects::getServiceImplName() { - return OUString("ScVbaOLEObjects"); + return "ScVbaOLEObjects"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbaoutline.cxx b/sc/source/ui/vba/vbaoutline.cxx index d9601e1be874..60bc12921b4d 100644 --- a/sc/source/ui/vba/vbaoutline.cxx +++ b/sc/source/ui/vba/vbaoutline.cxx @@ -42,7 +42,7 @@ ScVbaOutline::ShowLevels( const uno::Any& RowLevels, const uno::Any& ColumnLevel OUString ScVbaOutline::getServiceImplName() { - return OUString("ScVbaOutline"); + return "ScVbaOutline"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbapagebreak.cxx b/sc/source/ui/vba/vbapagebreak.cxx index ec3c14ce8ee6..ad7bca1265ae 100644 --- a/sc/source/ui/vba/vbapagebreak.cxx +++ b/sc/source/ui/vba/vbapagebreak.cxx @@ -95,7 +95,7 @@ template class ScVbaPageBreak< excel::XHPageBreak >; OUString ScVbaHPageBreak::getServiceImplName() { - return OUString("ScVbaHPageBreak"); + return "ScVbaHPageBreak"; } uno::Sequence< OUString > @@ -126,7 +126,7 @@ ScVbaVPageBreak::~ScVbaVPageBreak() OUString ScVbaVPageBreak::getServiceImplName() { - return OUString("ScVbaVPageBreak"); + return "ScVbaVPageBreak"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbapagebreaks.cxx b/sc/source/ui/vba/vbapagebreaks.cxx index 6260d4a1ab0e..804b4b31ea98 100644 --- a/sc/source/ui/vba/vbapagebreaks.cxx +++ b/sc/source/ui/vba/vbapagebreaks.cxx @@ -249,7 +249,7 @@ ScVbaHPageBreaks::getElementType() OUString ScVbaHPageBreaks::getServiceImplName() { - return OUString("ScVbaHPageBreaks"); + return "ScVbaHPageBreaks"; } uno::Sequence< OUString > @@ -306,7 +306,7 @@ ScVbaVPageBreaks::getElementType() OUString ScVbaVPageBreaks::getServiceImplName() { - return OUString("ScVbaVPageBreaks"); + return "ScVbaVPageBreaks"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbapagesetup.cxx b/sc/source/ui/vba/vbapagesetup.cxx index 035243f1d78d..f167d29e1cc5 100644 --- a/sc/source/ui/vba/vbapagesetup.cxx +++ b/sc/source/ui/vba/vbapagesetup.cxx @@ -616,7 +616,7 @@ void SAL_CALL ScVbaPageSetup::setPaperSize( sal_Int32 papersize ) OUString ScVbaPageSetup::getServiceImplName() { - return OUString("ScVbaPageSetup"); + return "ScVbaPageSetup"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbapivotcache.cxx b/sc/source/ui/vba/vbapivotcache.cxx index 4ff4e36b60d6..54c6a4ad7a88 100644 --- a/sc/source/ui/vba/vbapivotcache.cxx +++ b/sc/source/ui/vba/vbapivotcache.cxx @@ -34,7 +34,7 @@ ScVbaPivotCache::Refresh() OUString ScVbaPivotCache::getServiceImplName() { - return OUString("ScVbaPivotCache"); + return "ScVbaPivotCache"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbapivottable.cxx b/sc/source/ui/vba/vbapivottable.cxx index 90c6c7a8f4a2..775ac390c0c1 100644 --- a/sc/source/ui/vba/vbapivottable.cxx +++ b/sc/source/ui/vba/vbapivottable.cxx @@ -37,7 +37,7 @@ ScVbaPivotTable::PivotCache() OUString ScVbaPivotTable::getServiceImplName() { - return OUString("ScVbaPivotTable"); + return "ScVbaPivotTable"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbapivottables.cxx b/sc/source/ui/vba/vbapivottables.cxx index b87257203f59..383faf3ee2b9 100644 --- a/sc/source/ui/vba/vbapivottables.cxx +++ b/sc/source/ui/vba/vbapivottables.cxx @@ -69,7 +69,7 @@ ScVbaPivotTables::getElementType() OUString ScVbaPivotTables::getServiceImplName() { - return OUString("ScVbaPivotTables"); + return "ScVbaPivotTables"; } css::uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 96bf107afd2e..3318f0d8e86f 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -3692,7 +3692,7 @@ ScVbaRange::createEnumeration() OUString SAL_CALL ScVbaRange::getDefaultMethodName( ) { - return OUString( "Item" ); + return "Item"; } // returns calc internal col. width ( in points ) @@ -5573,7 +5573,7 @@ ScVbaRange::Subtotal( ::sal_Int32 _nGroupBy, ::sal_Int32 _nFunction, const uno:: OUString ScVbaRange::getServiceImplName() { - return OUString("ScVbaRange"); + return "ScVbaRange"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbarange.hxx b/sc/source/ui/vba/vbarange.hxx index dc2a33e8e07e..67e5220f3c1e 100644 --- a/sc/source/ui/vba/vbarange.hxx +++ b/sc/source/ui/vba/vbarange.hxx @@ -290,7 +290,7 @@ public: // XDefaultMethod OUString SAL_CALL getDefaultMethodName( ) override; // XDefaultProperty - OUString SAL_CALL getDefaultPropertyName( ) override { return OUString("Value"); } + OUString SAL_CALL getDefaultPropertyName( ) override { return "Value"; } // #TODO completely rewrite ScVbaRange, it's become a hackfest // it needs to be closer to ScCellRangeBase in that the underlying diff --git a/sc/source/ui/vba/vbasheetobject.cxx b/sc/source/ui/vba/vbasheetobject.cxx index 119e111f39b1..0f3093763961 100644 --- a/sc/source/ui/vba/vbasheetobject.cxx +++ b/sc/source/ui/vba/vbasheetobject.cxx @@ -516,7 +516,7 @@ VBAHELPER_IMPL_XHELPERINTERFACE( ScVbaButton, "ooo.vba.excel.Button" ) OUString ScVbaButton::implGetBaseName() const { - return OUString( "Button" ); + return "Button"; } void ScVbaButton::implSetDefaultProperties() diff --git a/sc/source/ui/vba/vbasheetobjects.cxx b/sc/source/ui/vba/vbasheetobjects.cxx index eb2797fcb0bb..2d8568526039 100644 --- a/sc/source/ui/vba/vbasheetobjects.cxx +++ b/sc/source/ui/vba/vbasheetobjects.cxx @@ -444,7 +444,7 @@ bool ScVbaControlContainer::implPickShape( const uno::Reference< drawing::XShape OUString ScVbaControlContainer::implGetShapeServiceName() const { - return OUString( "com.sun.star.drawing.ControlShape" ); + return "com.sun.star.drawing.ControlShape"; } bool ScVbaControlContainer::implCheckProperties( const uno::Reference< beans::XPropertySet >& /*rxModelProps*/ ) const diff --git a/sc/source/ui/vba/vbastyle.cxx b/sc/source/ui/vba/vbastyle.cxx index 690b731372e7..ba2d04553231 100644 --- a/sc/source/ui/vba/vbastyle.cxx +++ b/sc/source/ui/vba/vbastyle.cxx @@ -167,7 +167,7 @@ ScVbaStyle::getMergeCells( ) OUString ScVbaStyle::getServiceImplName() { - return OUString("ScVbaStyle"); + return "ScVbaStyle"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbastyles.cxx b/sc/source/ui/vba/vbastyles.cxx index fd56dfc88813..0a1e722247e1 100644 --- a/sc/source/ui/vba/vbastyles.cxx +++ b/sc/source/ui/vba/vbastyles.cxx @@ -183,7 +183,7 @@ ScVbaStyles::Delete(const OUString& _sStyleName) OUString ScVbaStyles::getServiceImplName() { - return OUString("ScVbaStyles"); + return "ScVbaStyles"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbatextframe.cxx b/sc/source/ui/vba/vbatextframe.cxx index d4da85f26521..ef797da31a7d 100644 --- a/sc/source/ui/vba/vbatextframe.cxx +++ b/sc/source/ui/vba/vbatextframe.cxx @@ -43,7 +43,7 @@ ScVbaTextFrame::Characters() OUString ScVbaTextFrame::getServiceImplName() { - return OUString("ScVbaTextFrame"); + return "ScVbaTextFrame"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbatitle.hxx b/sc/source/ui/vba/vbatitle.hxx index c4ce1f360f89..a6b99ac962ec 100644 --- a/sc/source/ui/vba/vbatitle.hxx +++ b/sc/source/ui/vba/vbatitle.hxx @@ -131,7 +131,7 @@ public: // XHelperInterface OUString getServiceImplName() override { - return OUString("TitleImpl"); + return "TitleImpl"; } css::uno::Sequence< OUString > getServiceNames() override { diff --git a/sc/source/ui/vba/vbavalidation.cxx b/sc/source/ui/vba/vbavalidation.cxx index f8af437e218c..651ce16eb2ef 100644 --- a/sc/source/ui/vba/vbavalidation.cxx +++ b/sc/source/ui/vba/vbavalidation.cxx @@ -365,7 +365,7 @@ ScVbaValidation::getType() OUString ScVbaValidation::getServiceImplName() { - return OUString("ScVbaValidation"); + return "ScVbaValidation"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx index 848687dd3bc9..e9b4a04ab6bf 100644 --- a/sc/source/ui/vba/vbawindow.cxx +++ b/sc/source/ui/vba/vbawindow.cxx @@ -872,7 +872,7 @@ void SAL_CALL ScVbaWindow::setTabRatio( double fRatio ) OUString ScVbaWindow::getServiceImplName() { - return OUString("ScVbaWindow"); + return "ScVbaWindow"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbawindows.cxx b/sc/source/ui/vba/vbawindows.cxx index d7094b4eaa51..648109031e46 100644 --- a/sc/source/ui/vba/vbawindows.cxx +++ b/sc/source/ui/vba/vbawindows.cxx @@ -222,7 +222,7 @@ ScVbaWindows::Arrange( ::sal_Int32 /*ArrangeStyle*/, const uno::Any& /*ActiveWor OUString ScVbaWindows::getServiceImplName() { - return OUString("ScVbaWindows"); + return "ScVbaWindows"; } css::uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbaworkbook.cxx b/sc/source/ui/vba/vbaworkbook.cxx index 4e49e403f4b1..c17a7346d155 100644 --- a/sc/source/ui/vba/vbaworkbook.cxx +++ b/sc/source/ui/vba/vbaworkbook.cxx @@ -294,7 +294,7 @@ OUString SAL_CALL ScVbaWorkbook::getAuthor() { uno::Reference<document::XDocumentPropertiesSupplier> xDPS( getModel(), uno::UNO_QUERY ); if (!xDPS.is()) - return OUString("?"); + return "?"; uno::Reference<document::XDocumentProperties> xDocProps = xDPS->getDocumentProperties(); return xDocProps->getAuthor(); } @@ -394,7 +394,7 @@ ScVbaWorkbook::Names( const uno::Any& aIndex ) OUString ScVbaWorkbook::getServiceImplName() { - return OUString("ScVbaWorkbook"); + return "ScVbaWorkbook"; } uno::Sequence< OUString > diff --git a/sc/source/ui/vba/vbaworkbooks.cxx b/sc/source/ui/vba/vbaworkbooks.cxx index 33ed98755499..b5a53c772930 100644 --- a/sc/source/ui/vba/vbaworkbooks.cxx +++ b/sc/source/ui/vba/vbaworkbooks.cxx @@ -267,7 +267,7 @@ ScVbaWorkbooks::Open( const OUString& rFileName, const uno::Any& /*UpdateLinks*/ OUString ScVbaWorkbooks::getServiceImplName() { - return OUString("ScVbaWorkbooks"); + return "ScVbaWorkbooks"; } css::uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbaworksheet.cxx b/sc/source/ui/vba/vbaworksheet.cxx index 1604bca5118b..3ff470e89467 100644 --- a/sc/source/ui/vba/vbaworksheet.cxx +++ b/sc/source/ui/vba/vbaworksheet.cxx @@ -983,7 +983,7 @@ ScVbaWorksheet::getControlShape( const OUString& sName ) OUString ScVbaWorksheet::getServiceImplName() { - return OUString("ScVbaWorksheet"); + return "ScVbaWorksheet"; } void SAL_CALL diff --git a/sc/source/ui/vba/vbaworksheets.cxx b/sc/source/ui/vba/vbaworksheets.cxx index 34aa20fcd0d0..5b81bd521fcf 100644 --- a/sc/source/ui/vba/vbaworksheets.cxx +++ b/sc/source/ui/vba/vbaworksheets.cxx @@ -446,7 +446,7 @@ ScVbaWorksheets::Item(const uno::Any& Index, const uno::Any& Index2) OUString ScVbaWorksheets::getServiceImplName() { - return OUString("ScVbaWorksheets"); + return "ScVbaWorksheets"; } css::uno::Sequence<OUString> diff --git a/sc/source/ui/vba/vbawsfunction.cxx b/sc/source/ui/vba/vbawsfunction.cxx index fa5b2e051449..91507dc369c0 100644 --- a/sc/source/ui/vba/vbawsfunction.cxx +++ b/sc/source/ui/vba/vbawsfunction.cxx @@ -283,7 +283,7 @@ ScVbaWSFunction::getExactName( const OUString& aApproximateName ) OUString ScVbaWSFunction::getServiceImplName() { - return OUString("ScVbaWSFunction"); + return "ScVbaWSFunction"; } uno::Sequence< OUString > diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index cb5c6a3bab7f..059cf07ff5ff 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -5688,7 +5688,7 @@ OString ScGridWindow::getCellCursor(const Fraction& /*rZoomX*/, const Fraction& // one (client-side) for tiled rendering too. if (!mpOOCursors) { - return OString("EMPTY"); + return "EMPTY"; } SCCOL nX = pViewData->GetCurX(); |