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/vba | |
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/vba')
56 files changed, 65 insertions, 65 deletions
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 > |