diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-30 17:49:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-31 12:55:16 +0200 |
commit | 680fb734cd7c0121cc1ba5d45e1d3f0153907fe3 (patch) | |
tree | a25a3bb62bfd257606c835e285a5cc3b13fc4247 | |
parent | ec7a52125cd0674b58f58d0678e23885d67e1484 (diff) |
Improved loplugin:stringconstant (now that GCC 7 supports it): sd
Change-Id: Ie309b2add3f615822a16e69c41c5e2e9f0ac9f7d
Reviewed-on: https://gerrit.libreoffice.org/76650
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
41 files changed, 59 insertions, 59 deletions
diff --git a/sd/source/core/stlfamily.cxx b/sd/source/core/stlfamily.cxx index 5e5e2ac84b37..47ef8a93af51 100644 --- a/sd/source/core/stlfamily.cxx +++ b/sd/source/core/stlfamily.cxx @@ -165,7 +165,7 @@ SdStyleSheet* SdStyleFamily::GetSheetByName( const OUString& rName ) // XServiceInfo OUString SAL_CALL SdStyleFamily::getImplementationName() { - return OUString( "SdStyleFamily" ); + return "SdStyleFamily"; } sal_Bool SAL_CALL SdStyleFamily::supportsService( const OUString& ServiceName ) diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx index b4f566eb4c8b..2665860a2ef2 100644 --- a/sd/source/core/stlpool.cxx +++ b/sd/source/core/stlpool.cxx @@ -1218,7 +1218,7 @@ void SdStyleSheetPool::throwIfDisposed() // XServiceInfo OUString SAL_CALL SdStyleSheetPool::getImplementationName() { - return OUString( "SdStyleSheetPool" ); + return "SdStyleSheetPool"; } sal_Bool SAL_CALL SdStyleSheetPool::supportsService( const OUString& ServiceName ) diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx index 33ea114eb4f7..c6aabb05b555 100644 --- a/sd/source/core/stlsheet.cxx +++ b/sd/source/core/stlsheet.cxx @@ -662,12 +662,12 @@ OUString SdStyleSheet::GetFamilyString( SfxStyleFamily eFamily ) switch( eFamily ) { case SfxStyleFamily::Frame: - return OUString( "cell" ); + return "cell"; default: OSL_FAIL( "SdStyleSheet::GetFamilyString(), illegal family!" ); [[fallthrough]]; case SfxStyleFamily::Para: - return OUString( "graphics" ); + return "graphics"; } } @@ -833,7 +833,7 @@ void SdStyleSheet::notifyModifyListener() // XServiceInfo OUString SAL_CALL SdStyleSheet::getImplementationName() { - return OUString( "SdStyleSheet" ); + return "SdStyleSheet"; } sal_Bool SAL_CALL SdStyleSheet::supportsService( const OUString& ServiceName ) diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx index fb0b5cb8a6bf..e738ec7eaaf1 100644 --- a/sd/source/filter/eppt/pptx-epptooxml.cxx +++ b/sd/source/filter/eppt/pptx-epptooxml.cxx @@ -2001,7 +2001,7 @@ bool PowerPointExport::ImplCreateMainNotes() OUString PowerPointExport::getImplementationName() { - return OUString("com.sun.star.comp.Impress.oox.PowerPointExport"); + return "com.sun.star.comp.Impress.oox.PowerPointExport"; } void PowerPointExport::WriteDiagram(const FSHelperPtr& pFS, PowerPointShapeExport& rDML, const css::uno::Reference<css::drawing::XShape>& rXShape, int nDiagramId) diff --git a/sd/source/filter/html/HtmlOptionsDialog.cxx b/sd/source/filter/html/HtmlOptionsDialog.cxx index e0053e566503..ec523e2c86aa 100644 --- a/sd/source/filter/html/HtmlOptionsDialog.cxx +++ b/sd/source/filter/html/HtmlOptionsDialog.cxx @@ -103,7 +103,7 @@ void SAL_CALL SdHtmlOptionsDialog::initialize( const Sequence< Any > & ) // XServiceInfo OUString SAL_CALL SdHtmlOptionsDialog::getImplementationName() { - return OUString( "com.sun.star.comp.draw.SdHtmlOptionsDialog" ); + return "com.sun.star.comp.draw.SdHtmlOptionsDialog"; } sal_Bool SAL_CALL SdHtmlOptionsDialog::supportsService( const OUString& rServiceName ) diff --git a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx index 124cd984826e..1d2d1016b594 100644 --- a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx +++ b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx @@ -405,7 +405,7 @@ void SAL_CALL OUString SAL_CALL AccessibleDocumentViewBase::getImplementationName() { - return OUString("AccessibleDocumentViewBase"); + return "AccessibleDocumentViewBase"; } css::uno::Sequence< OUString> SAL_CALL @@ -581,7 +581,7 @@ void SAL_CALL AccessibleDocumentViewBase::disposing() OUString AccessibleDocumentViewBase::CreateAccessibleName() { - return OUString ("AccessibleDocumentViewBase"); + return "AccessibleDocumentViewBase"; } void AccessibleDocumentViewBase::Activated() diff --git a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx index f40561ff3eb3..b84ba0c59127 100644 --- a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx +++ b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx @@ -369,7 +369,7 @@ void SAL_CALL OUString SAL_CALL AccessibleDrawDocumentView::getImplementationName() { - return OUString("AccessibleDrawDocumentView"); + return "AccessibleDrawDocumentView"; } css::uno::Sequence< OUString> SAL_CALL diff --git a/sd/source/ui/accessibility/AccessibleOutlineView.cxx b/sd/source/ui/accessibility/AccessibleOutlineView.cxx index 1039ec950b4d..1da0c44bc14e 100644 --- a/sd/source/ui/accessibility/AccessibleOutlineView.cxx +++ b/sd/source/ui/accessibility/AccessibleOutlineView.cxx @@ -161,7 +161,7 @@ void SAL_CALL AccessibleOutlineView::removeAccessibleEventListener( const uno::R OUString SAL_CALL AccessibleOutlineView::getImplementationName() { - return OUString("AccessibleOutlineView"); + return "AccessibleOutlineView"; } //===== XEventListener ====================================================== diff --git a/sd/source/ui/accessibility/AccessiblePageShape.cxx b/sd/source/ui/accessibility/AccessiblePageShape.cxx index 05e07f4da18e..34e5e505559c 100644 --- a/sd/source/ui/accessibility/AccessiblePageShape.cxx +++ b/sd/source/ui/accessibility/AccessiblePageShape.cxx @@ -207,7 +207,7 @@ OUString SAL_CALL AccessiblePageShape::getImplementationName() { ThrowIfDisposed (); - return OUString("AccessiblePageShape"); + return "AccessiblePageShape"; } css::uno::Sequence< OUString> SAL_CALL @@ -247,7 +247,7 @@ void AccessiblePageShape::dispose() OUString AccessiblePageShape::CreateAccessibleBaseName() { - return OUString ("PageShape"); + return "PageShape"; } OUString diff --git a/sd/source/ui/accessibility/AccessiblePresentationGraphicShape.cxx b/sd/source/ui/accessibility/AccessiblePresentationGraphicShape.cxx index 6d1a9bc2392f..73c8038bc713 100644 --- a/sd/source/ui/accessibility/AccessiblePresentationGraphicShape.cxx +++ b/sd/source/ui/accessibility/AccessiblePresentationGraphicShape.cxx @@ -49,7 +49,7 @@ AccessiblePresentationGraphicShape::~AccessiblePresentationGraphicShape() OUString SAL_CALL AccessiblePresentationGraphicShape::getImplementationName() { - return OUString("AccessiblePresentationGraphicShape"); + return "AccessiblePresentationGraphicShape"; } /// Set this object's name if is different to the current name. diff --git a/sd/source/ui/accessibility/AccessiblePresentationOLEShape.cxx b/sd/source/ui/accessibility/AccessiblePresentationOLEShape.cxx index e06017c2ef5c..f956cdcca38d 100644 --- a/sd/source/ui/accessibility/AccessiblePresentationOLEShape.cxx +++ b/sd/source/ui/accessibility/AccessiblePresentationOLEShape.cxx @@ -49,7 +49,7 @@ AccessiblePresentationOLEShape::~AccessiblePresentationOLEShape() OUString SAL_CALL AccessiblePresentationOLEShape::getImplementationName() { - return OUString("AccessiblePresentationOLEShape"); + return "AccessiblePresentationOLEShape"; } /// Set this object's name if it is different to the current name. diff --git a/sd/source/ui/accessibility/AccessiblePresentationShape.cxx b/sd/source/ui/accessibility/AccessiblePresentationShape.cxx index 7b61354af74d..3b095ccea672 100644 --- a/sd/source/ui/accessibility/AccessiblePresentationShape.cxx +++ b/sd/source/ui/accessibility/AccessiblePresentationShape.cxx @@ -51,7 +51,7 @@ AccessiblePresentationShape::~AccessiblePresentationShape() OUString SAL_CALL AccessiblePresentationShape::getImplementationName() { - return OUString("AccessiblePresentationShape"); + return "AccessiblePresentationShape"; } /// Set this object's name if is different to the current name. diff --git a/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx b/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx index 63ab93880137..9411b429c414 100644 --- a/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx +++ b/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx @@ -383,7 +383,7 @@ sal_Int32 SAL_CALL AccessibleSlideSorterObject::getBackground() OUString SAL_CALL AccessibleSlideSorterObject::getImplementationName() { - return OUString("AccessibleSlideSorterObject"); + return "AccessibleSlideSorterObject"; } sal_Bool SAL_CALL AccessibleSlideSorterObject::supportsService (const OUString& sServiceName) diff --git a/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx b/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx index 7a0a4fc43a63..cb024f1f849d 100644 --- a/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx +++ b/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx @@ -589,7 +589,7 @@ void SAL_CALL AccessibleSlideSorterView::deselectAccessibleChild (sal_Int32 nChi OUString SAL_CALL AccessibleSlideSorterView::getImplementationName() { - return OUString("AccessibleSlideSorterView"); + return "AccessibleSlideSorterView"; } sal_Bool SAL_CALL AccessibleSlideSorterView::supportsService (const OUString& sServiceName) diff --git a/sd/source/ui/controller/displaymodecontroller.cxx b/sd/source/ui/controller/displaymodecontroller.cxx index 4bcb517189b4..161ff808773d 100644 --- a/sd/source/ui/controller/displaymodecontroller.cxx +++ b/sd/source/ui/controller/displaymodecontroller.cxx @@ -264,7 +264,7 @@ void DisplayModeController::setToolboxItemImage(const OUString& rImage) OUString SAL_CALL DisplayModeController::getImplementationName() { - return OUString( "com.sun.star.comp.sd.DisplayModeController" ); + return "com.sun.star.comp.sd.DisplayModeController"; } Sequence< OUString > SAL_CALL DisplayModeController::getSupportedServiceNames( ) diff --git a/sd/source/ui/controller/slidelayoutcontroller.cxx b/sd/source/ui/controller/slidelayoutcontroller.cxx index 05e1dc67e5a5..21f1425a68ae 100644 --- a/sd/source/ui/controller/slidelayoutcontroller.cxx +++ b/sd/source/ui/controller/slidelayoutcontroller.cxx @@ -294,7 +294,7 @@ void LayoutToolbarMenu::SelectHdl(void const * pControl) /// @throws css::uno::RuntimeException static OUString SlideLayoutController_getImplementationName() { - return OUString( "com.sun.star.comp.sd.SlideLayoutController" ); + return "com.sun.star.comp.sd.SlideLayoutController"; } /// @throws RuntimeException @@ -307,7 +307,7 @@ static Sequence< OUString > SlideLayoutController_getSupportedServiceNames() /// @throws css::uno::RuntimeException static OUString InsertSlideController_getImplementationName() { - return OUString( "com.sun.star.comp.sd.InsertSlideController" ); + return "com.sun.star.comp.sd.InsertSlideController"; } /// @throws RuntimeException diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx index f3170a445993..8bc734417e63 100644 --- a/sd/source/ui/dlg/navigatr.cxx +++ b/sd/source/ui/dlg/navigatr.cxx @@ -664,11 +664,11 @@ OUString SdNavigatorWin::GetDragTypeSdBmpId(NavigatorDragType eDT) case NAVIGATOR_DRAGTYPE_NONE: return OUString(); case NAVIGATOR_DRAGTYPE_URL: - return OUString(BMP_HYPERLINK); + return BMP_HYPERLINK; case NAVIGATOR_DRAGTYPE_EMBEDDED: - return OUString(BMP_EMBEDDED); + return BMP_EMBEDDED; case NAVIGATOR_DRAGTYPE_LINK: - return OUString(BMP_LINK); + return BMP_LINK; default: OSL_FAIL( "No resource for DragType available!" ); } return OUString(); diff --git a/sd/source/ui/framework/configuration/Configuration.cxx b/sd/source/ui/framework/configuration/Configuration.cxx index 3fc947c5c92a..c4a3be614970 100644 --- a/sd/source/ui/framework/configuration/Configuration.cxx +++ b/sd/source/ui/framework/configuration/Configuration.cxx @@ -221,8 +221,8 @@ void SAL_CALL Configuration::setName (const OUString&) OUString Configuration::getImplementationName() { - return OUString( - "com.sun.star.comp.Draw.framework.configuration.Configuration"); + return + "com.sun.star.comp.Draw.framework.configuration.Configuration"; } sal_Bool Configuration::supportsService(OUString const & ServiceName) diff --git a/sd/source/ui/framework/configuration/ResourceId.cxx b/sd/source/ui/framework/configuration/ResourceId.cxx index 63144754cba4..6ff8bb4f8139 100644 --- a/sd/source/ui/framework/configuration/ResourceId.cxx +++ b/sd/source/ui/framework/configuration/ResourceId.cxx @@ -383,7 +383,7 @@ void SAL_CALL ResourceId::initialize (const Sequence<Any>& aArguments) OUString ResourceId::getImplementationName() { - return OUString("com.sun.star.comp.Draw.framework.ResourceId"); + return "com.sun.star.comp.Draw.framework.ResourceId"; } sal_Bool ResourceId::supportsService(OUString const & ServiceName) diff --git a/sd/source/ui/framework/configuration/UpdateRequest.cxx b/sd/source/ui/framework/configuration/UpdateRequest.cxx index 1a8a0b120094..328fb3862e55 100644 --- a/sd/source/ui/framework/configuration/UpdateRequest.cxx +++ b/sd/source/ui/framework/configuration/UpdateRequest.cxx @@ -43,7 +43,7 @@ void SAL_CALL UpdateRequest::execute (const Reference<XConfiguration>&) OUString SAL_CALL UpdateRequest::getName() { - return OUString("UpdateRequest"); + return "UpdateRequest"; } void SAL_CALL UpdateRequest::setName (const OUString&) diff --git a/sd/source/ui/presenter/SlideRenderer.cxx b/sd/source/ui/presenter/SlideRenderer.cxx index 8a8d318209ed..1dc835404e38 100644 --- a/sd/source/ui/presenter/SlideRenderer.cxx +++ b/sd/source/ui/presenter/SlideRenderer.cxx @@ -62,7 +62,7 @@ void SAL_CALL SlideRenderer::initialize (const Sequence<Any>& rArguments) OUString SlideRenderer::getImplementationName() { - return OUString("com.sun.star.comp.Draw.SlideRenderer"); + return "com.sun.star.comp.Draw.SlideRenderer"; } sal_Bool SlideRenderer::supportsService(OUString const & ServiceName) diff --git a/sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx b/sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx index a7a8880bcbf6..93290c3b3f99 100644 --- a/sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx +++ b/sd/source/ui/sidebar/CurrentMasterPagesSelector.cxx @@ -153,7 +153,7 @@ void CurrentMasterPagesSelector::Fill (ItemList& rItemList) OUString CurrentMasterPagesSelector::GetContextMenuUIFile() const { - return OUString("modules/simpress/ui/currentmastermenu.ui"); + return "modules/simpress/ui/currentmastermenu.ui"; } void CurrentMasterPagesSelector::UpdateSelection() diff --git a/sd/source/ui/sidebar/MasterPagesSelector.cxx b/sd/source/ui/sidebar/MasterPagesSelector.cxx index 78c85363ca21..e4fcbf39d761 100644 --- a/sd/source/ui/sidebar/MasterPagesSelector.cxx +++ b/sd/source/ui/sidebar/MasterPagesSelector.cxx @@ -166,7 +166,7 @@ void MasterPagesSelector::Fill() OUString MasterPagesSelector::GetContextMenuUIFile() const { - return OUString("modules/simpress/ui/mastermenu.ui"); + return "modules/simpress/ui/mastermenu.ui"; } IMPL_LINK_NOARG(MasterPagesSelector, ClickHandler, ValueSet*, void) diff --git a/sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx b/sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx index f20e30dd4825..65e1d58062ec 100644 --- a/sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx +++ b/sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx @@ -51,11 +51,11 @@ namespace { OUString GetPathToImpressConfigurationRoot() { - return OUString("/org.openoffice.Office.Impress/"); + return "/org.openoffice.Office.Impress/"; } OUString GetPathToSetNode() { - return OUString("MultiPaneGUI/ToolPanel/RecentlyUsedMasterPages"); + return "MultiPaneGUI/ToolPanel/RecentlyUsedMasterPages"; } } // end of anonymous namespace diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx index f5c387b66404..1044e420983e 100644 --- a/sd/source/ui/slideshow/slideshow.cxx +++ b/sd/source/ui/slideshow/slideshow.cxx @@ -239,7 +239,7 @@ void SlideShow::CreateController( ViewShell* pViewSh, ::sd::View* pView, vcl::W // XServiceInfo OUString SAL_CALL SlideShow::getImplementationName( ) { - return OUString( "com.sun.star.comp.sd.SlideShow" ); + return "com.sun.star.comp.sd.SlideShow"; } sal_Bool SAL_CALL SlideShow::supportsService( const OUString& ServiceName ) diff --git a/sd/source/ui/uitest/uiobject.cxx b/sd/source/ui/uitest/uiobject.cxx index 4919ffc91c75..1e18071092c9 100644 --- a/sd/source/ui/uitest/uiobject.cxx +++ b/sd/source/ui/uitest/uiobject.cxx @@ -163,7 +163,7 @@ std::set<OUString> ImpressWindowUIObject::get_children() const OUString ImpressWindowUIObject::get_name() const { - return OUString("ImpressWindowUIObject"); + return "ImpressWindowUIObject"; } std::unique_ptr<UIObject> ImpressWindowUIObject::create(vcl::Window* pWindow) diff --git a/sd/source/ui/unoidl/DrawController.cxx b/sd/source/ui/unoidl/DrawController.cxx index 0024a1a568b3..65ee9e8cd2ce 100644 --- a/sd/source/ui/unoidl/DrawController.cxx +++ b/sd/source/ui/unoidl/DrawController.cxx @@ -204,7 +204,7 @@ OUString SAL_CALL DrawController::getImplementationName( ) // Do not throw an exception at the moment. This leads to a crash // under Solaris on reload. See issue i70929 for details. // ThrowIfDisposed(); - return OUString("DrawController") ; + return "DrawController" ; } static const char ssServiceName[] = "com.sun.star.drawing.DrawingDocumentDrawView"; diff --git a/sd/source/ui/unoidl/SdUnoDrawView.cxx b/sd/source/ui/unoidl/SdUnoDrawView.cxx index 2a4f9bff7f11..f5f5ddfc56d8 100644 --- a/sd/source/ui/unoidl/SdUnoDrawView.cxx +++ b/sd/source/ui/unoidl/SdUnoDrawView.cxx @@ -534,7 +534,7 @@ Any SdUnoDrawView::getDrawViewMode() const // XServiceInfo OUString SAL_CALL SdUnoDrawView::getImplementationName( ) { - return OUString( "com.sun.star.comp.sd.SdUnoDrawView") ; + return "com.sun.star.comp.sd.SdUnoDrawView" ; } sal_Bool SAL_CALL SdUnoDrawView::supportsService( const OUString& ServiceName ) diff --git a/sd/source/ui/unoidl/SdUnoOutlineView.cxx b/sd/source/ui/unoidl/SdUnoOutlineView.cxx index c75243b5b66d..0a5da1c00806 100644 --- a/sd/source/ui/unoidl/SdUnoOutlineView.cxx +++ b/sd/source/ui/unoidl/SdUnoOutlineView.cxx @@ -140,7 +140,7 @@ Any SAL_CALL SdUnoOutlineView::getFastPropertyValue ( // XServiceInfo OUString SAL_CALL SdUnoOutlineView::getImplementationName( ) { - return OUString("com.sun.star.comp.sd.SdUnoOutlineView"); + return "com.sun.star.comp.sd.SdUnoOutlineView"; } sal_Bool SAL_CALL SdUnoOutlineView::supportsService( const OUString& ServiceName ) diff --git a/sd/source/ui/unoidl/SdUnoSlideView.cxx b/sd/source/ui/unoidl/SdUnoSlideView.cxx index 8df0ab9f2542..01c6d0d923e7 100644 --- a/sd/source/ui/unoidl/SdUnoSlideView.cxx +++ b/sd/source/ui/unoidl/SdUnoSlideView.cxx @@ -154,7 +154,7 @@ Any SAL_CALL SdUnoSlideView::getFastPropertyValue ( // XServiceInfo OUString SAL_CALL SdUnoSlideView::getImplementationName( ) { - return OUString( "com.sun.star.comp.sd.SdUnoSlideView" ); + return "com.sun.star.comp.sd.SdUnoSlideView"; } sal_Bool SAL_CALL SdUnoSlideView::supportsService( const OUString& ServiceName ) diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx index 53ca87c54ab1..4b86d263c5b4 100644 --- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx +++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx @@ -1384,7 +1384,7 @@ void SAL_CALL DocumentSettings::firePropertiesChangeEvent( const Sequence< OUStr // XServiceInfo OUString SAL_CALL DocumentSettings::getImplementationName( ) { - return OUString( "com.sun.star.comp.Draw.DocumentSettings" ); + return "com.sun.star.comp.Draw.DocumentSettings"; } sal_Bool SAL_CALL DocumentSettings::supportsService( const OUString& ServiceName ) diff --git a/sd/source/ui/unoidl/randomnode.cxx b/sd/source/ui/unoidl/randomnode.cxx index 8281bd812833..d86deecd9b2f 100644 --- a/sd/source/ui/unoidl/randomnode.cxx +++ b/sd/source/ui/unoidl/randomnode.cxx @@ -542,7 +542,7 @@ Reference< XAnimationNode > SAL_CALL RandomAnimationNode::appendChild( const Ref // XServiceInfo OUString RandomAnimationNode::getImplementationName() { - return OUString( "sd::RandomAnimationNode" ) ; + return "sd::RandomAnimationNode" ; } // XServiceInfo diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx index 3a54d2c26071..51aeebf11439 100644 --- a/sd/source/ui/unoidl/sddetect.cxx +++ b/sd/source/ui/unoidl/sddetect.cxx @@ -104,7 +104,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes if ( ( n8 & 0xf0 ) == 0 ) // we are supporting binary cgm format only, so // this is a small test to exclude cgm text - return OUString("impress_CGM_Computer_Graphics_Metafile"); + return "impress_CGM_Computer_Graphics_Metafile"; } } else @@ -137,7 +137,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes // XServiceInfo OUString SAL_CALL SdFilterDetect::getImplementationName() { - return OUString( "com.sun.star.comp.draw.FormatDetector" ); + return "com.sun.star.comp.draw.FormatDetector"; } // XServiceInfo diff --git a/sd/source/ui/unoidl/unocpres.cxx b/sd/source/ui/unoidl/unocpres.cxx index 057b22126872..6d17695de596 100644 --- a/sd/source/ui/unoidl/unocpres.cxx +++ b/sd/source/ui/unoidl/unocpres.cxx @@ -63,7 +63,7 @@ UNO3_GETIMPLEMENTATION_IMPL( SdXCustomPresentation ); // XServiceInfo OUString SAL_CALL SdXCustomPresentation::getImplementationName() { - return OUString( "SdXCustomPresentation" ) ; + return "SdXCustomPresentation" ; } sal_Bool SAL_CALL SdXCustomPresentation::supportsService( const OUString& ServiceName ) @@ -274,7 +274,7 @@ SdXCustomPresentationAccess::~SdXCustomPresentationAccess() throw() // XServiceInfo OUString SAL_CALL SdXCustomPresentationAccess::getImplementationName() { - return OUString( "SdXCustomPresentationAccess" ); + return "SdXCustomPresentationAccess"; } sal_Bool SAL_CALL SdXCustomPresentationAccess::supportsService( const OUString& ServiceName ) diff --git a/sd/source/ui/unoidl/unodoc.cxx b/sd/source/ui/unoidl/unodoc.cxx index e6e09a23d9c5..f47914246fc0 100644 --- a/sd/source/ui/unoidl/unodoc.cxx +++ b/sd/source/ui/unoidl/unodoc.cxx @@ -34,7 +34,7 @@ using namespace ::com::sun::star; OUString SdDrawingDocument_getImplementationName() { - return OUString( "com.sun.star.comp.Draw.DrawingDocument" ); + return "com.sun.star.comp.Draw.DrawingDocument"; } uno::Sequence< OUString > SdDrawingDocument_getSupportedServiceNames() @@ -61,7 +61,7 @@ uno::Reference< uno::XInterface > SdDrawingDocument_createInstance( OUString SdPresentationDocument_getImplementationName() { - return OUString( "com.sun.star.comp.Draw.PresentationDocument" ); + return "com.sun.star.comp.Draw.PresentationDocument"; } uno::Sequence< OUString > SdPresentationDocument_getSupportedServiceNames() diff --git a/sd/source/ui/unoidl/unolayer.cxx b/sd/source/ui/unoidl/unolayer.cxx index 6c4a16f20ce4..c0749aa8cae9 100644 --- a/sd/source/ui/unoidl/unolayer.cxx +++ b/sd/source/ui/unoidl/unolayer.cxx @@ -95,7 +95,7 @@ UNO3_GETIMPLEMENTATION_IMPL( SdLayer ); // XServiceInfo OUString SAL_CALL SdLayer::getImplementationName() { - return OUString("SdUnoLayer"); + return "SdUnoLayer"; } sal_Bool SAL_CALL SdLayer::supportsService( const OUString& ServiceName ) @@ -400,7 +400,7 @@ void SAL_CALL SdLayerManager::removeEventListener( const uno::Reference< lang::X // XServiceInfo OUString SAL_CALL SdLayerManager::getImplementationName() { - return OUString("SdUnoLayerManager"); + return "SdUnoLayerManager"; } sal_Bool SAL_CALL SdLayerManager::supportsService( const OUString& ServiceName ) diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index c0f3bd5b1b76..31b9ebe44b14 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -1164,7 +1164,7 @@ uno::Sequence< OUString > SAL_CALL SdXImpressDocument::getAvailableServiceNames( // lang::XServiceInfo OUString SAL_CALL SdXImpressDocument::getImplementationName() { - return OUString( "SdXImpressDocument" ); + return "SdXImpressDocument"; /* // Matching the .component information: return mbImpressDoc ? OUString("com.sun.star.comp.Draw.PresentationDocument") @@ -2996,7 +2996,7 @@ void SAL_CALL SdDrawPagesAccess::remove( const uno::Reference< drawing::XDrawPag OUString SAL_CALL SdDrawPagesAccess::getImplementationName( ) { - return OUString( "SdDrawPagesAccess" ); + return "SdDrawPagesAccess"; } sal_Bool SAL_CALL SdDrawPagesAccess::supportsService( const OUString& ServiceName ) @@ -3253,7 +3253,7 @@ void SAL_CALL SdMasterPagesAccess::remove( const uno::Reference< drawing::XDrawP OUString SAL_CALL SdMasterPagesAccess::getImplementationName( ) { - return OUString( "SdMasterPagesAccess" ); + return "SdMasterPagesAccess"; } sal_Bool SAL_CALL SdMasterPagesAccess::supportsService( const OUString& ServiceName ) @@ -3431,7 +3431,7 @@ SdPage* SdDocLinkTargets::FindPage( const OUString& rName ) const // XServiceInfo OUString SAL_CALL SdDocLinkTargets::getImplementationName() { - return OUString( "SdDocLinkTargets" ); + return "SdDocLinkTargets"; } sal_Bool SAL_CALL SdDocLinkTargets::supportsService( const OUString& ServiceName ) diff --git a/sd/source/ui/unoidl/unomodule.cxx b/sd/source/ui/unoidl/unomodule.cxx index 315d77d72309..063a5ce20552 100644 --- a/sd/source/ui/unoidl/unomodule.cxx +++ b/sd/source/ui/unoidl/unomodule.cxx @@ -107,7 +107,7 @@ uno::Reference< frame::XDispatch > SAL_CALL SdUnoModule::queryDispatch( const ut // XServiceInfo OUString SAL_CALL SdUnoModule::getImplementationName( ) { - return OUString( "com.sun.star.comp.Draw.DrawingModule" ); + return "com.sun.star.comp.Draw.DrawingModule"; } sal_Bool SAL_CALL SdUnoModule::supportsService( const OUString& sServiceName ) diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx index 2fd1f0fa9144..abfca37a6af2 100644 --- a/sd/source/ui/unoidl/unoobj.cxx +++ b/sd/source/ui/unoidl/unoobj.cxx @@ -1622,7 +1622,7 @@ sal_Bool SAL_CALL SdUnoEventsAccess::hasElements( ) // XServiceInfo OUString SAL_CALL SdUnoEventsAccess::getImplementationName( ) { - return OUString( "SdUnoEventsAccess" ); + return "SdUnoEventsAccess"; } sal_Bool SAL_CALL SdUnoEventsAccess::supportsService( const OUString& ServiceName ) diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index eaaef7cc7497..6c253908581e 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -1996,7 +1996,7 @@ SdrObject* SdPageLinkTargets::FindObject( const OUString& rName ) const throw() // XServiceInfo OUString SAL_CALL SdPageLinkTargets::getImplementationName() { - return OUString( "SdPageLinkTargets" ); + return "SdPageLinkTargets"; } sal_Bool SAL_CALL SdPageLinkTargets::supportsService( const OUString& ServiceName ) @@ -2194,7 +2194,7 @@ OUString SdDrawPage::getUiNameFromPageApiName( const OUString& rApiName ) // XServiceInfo OUString SAL_CALL SdDrawPage::getImplementationName() { - return OUString( "SdDrawPage" ); + return "SdDrawPage"; } Sequence< OUString > SAL_CALL SdDrawPage::getSupportedServiceNames() @@ -2714,7 +2714,7 @@ Sequence< sal_Int8 > SAL_CALL SdMasterPage::getImplementationId() // XServiceInfo OUString SAL_CALL SdMasterPage::getImplementationName() { - return OUString( "SdMasterPage" ); + return "SdMasterPage"; } Sequence< OUString > SAL_CALL SdMasterPage::getSupportedServiceNames() diff --git a/sd/source/ui/unoidl/unopback.cxx b/sd/source/ui/unoidl/unopback.cxx index 1f379ed104e8..5b5b7b429fea 100644 --- a/sd/source/ui/unoidl/unopback.cxx +++ b/sd/source/ui/unoidl/unopback.cxx @@ -169,7 +169,7 @@ void SdUnoPageBackground::fillItemSet( SdDrawDocument* pDoc, SfxItemSet& rSet ) // XServiceInfo OUString SAL_CALL SdUnoPageBackground::getImplementationName() { - return OUString("SdUnoPageBackground"); + return "SdUnoPageBackground"; } sal_Bool SAL_CALL SdUnoPageBackground::supportsService( const OUString& ServiceName ) |