[Libreoffice-commits] core.git: avmedia/source canvas/source connectivity/source cui/source dtrans/source embeddedobj/source embedserv/source extensions/source fpicker/source sc/source shell/source svl/source svtools/source vcl/source winaccessibility/source xmlsecurity/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Oct 1 11:20:01 UTC 2019


 avmedia/source/win/framegrabber.cxx                                   |    2 -
 avmedia/source/win/manager.cxx                                        |    2 -
 avmedia/source/win/player.cxx                                         |    2 -
 avmedia/source/win/window.cxx                                         |    2 -
 canvas/source/directx/dx_canvas.cxx                                   |    4 +-
 canvas/source/directx/dx_canvasbitmap.cxx                             |    2 -
 canvas/source/directx/dx_canvascustomsprite.cxx                       |    2 -
 canvas/source/directx/dx_canvasfont.cxx                               |    2 -
 canvas/source/directx/dx_spritecanvas.cxx                             |    2 -
 canvas/source/directx/dx_textlayout.cxx                               |    2 -
 connectivity/source/drivers/ado/ADriver.cxx                           |    2 -
 connectivity/source/drivers/ado/AResultSet.cxx                        |    2 -
 cui/source/options/optgdlg.cxx                                        |    2 -
 dtrans/source/generic/clipboardmanager.cxx                            |    2 -
 dtrans/source/generic/generic_clipboard.cxx                           |    2 -
 dtrans/source/win32/clipb/WinClipboard.cxx                            |    2 -
 dtrans/source/win32/dnd/source.cxx                                    |    2 -
 dtrans/source/win32/dnd/target.cxx                                    |    2 -
 dtrans/source/win32/ftransl/ftransl.cxx                               |    2 -
 embeddedobj/source/msole/xdialogcreator.cxx                           |    2 -
 embedserv/source/embed/guid.cxx                                       |   20 +++++-----
 embedserv/source/embed/register.cxx                                   |    2 -
 embedserv/source/embed/servprov.cxx                                   |    2 -
 extensions/source/config/WinUserInfo/WinUserInfoBe.cxx                |    2 -
 extensions/source/ole/servprov.cxx                                    |    4 +-
 fpicker/source/win32/VistaFilePicker.cxx                              |    4 +-
 sc/source/ui/vba/vbaapplication.cxx                                   |    2 -
 shell/source/backends/wininetbe/wininetbackend.cxx                    |    2 -
 shell/source/win32/SysShExec.cxx                                      |    2 -
 shell/source/win32/simplemail/smplmailsuppl.cxx                       |    2 -
 svl/source/svdde/ddesvr.cxx                                           |    2 -
 svtools/source/uno/fpicker.cxx                                        |    2 -
 vcl/source/app/IconThemeSelector.cxx                                  |    2 -
 vcl/source/components/dtranscomp.cxx                                  |    2 -
 winaccessibility/source/UAccCOM/MAccessible.cxx                       |    2 -
 winaccessibility/source/service/msaaservice_impl.cxx                  |    2 -
 xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx |    4 +-
 xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx       |    2 -
 xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx     |    2 -
 xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx  |    2 -
 xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx        |    2 -
 41 files changed, 54 insertions(+), 54 deletions(-)

New commits:
commit 664de5a816bdcb68ada087f99ef5a76139890fdf
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Oct 1 09:57:59 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Oct 1 13:19:04 2019 +0200

    loplugin:stringconstant (clang-cl)
    
    Change-Id: Id1a82cea4444255fdb693e126b7571a406094624
    Reviewed-on: https://gerrit.libreoffice.org/79916
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/avmedia/source/win/framegrabber.cxx b/avmedia/source/win/framegrabber.cxx
index 9b6e755f93e7..4ef3ce92f54a 100644
--- a/avmedia/source/win/framegrabber.cxx
+++ b/avmedia/source/win/framegrabber.cxx
@@ -204,7 +204,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe
 
 OUString SAL_CALL FrameGrabber::getImplementationName(  )
 {
-    return OUString( AVMEDIA_WIN_FRAMEGRABBER_IMPLEMENTATIONNAME );
+    return AVMEDIA_WIN_FRAMEGRABBER_IMPLEMENTATIONNAME;
 }
 
 
diff --git a/avmedia/source/win/manager.cxx b/avmedia/source/win/manager.cxx
index 4282b2599ff8..1068fc9639e2 100644
--- a/avmedia/source/win/manager.cxx
+++ b/avmedia/source/win/manager.cxx
@@ -56,7 +56,7 @@ uno::Reference< media::XPlayer > SAL_CALL Manager::createPlayer( const OUString&
 
 OUString SAL_CALL Manager::getImplementationName(  )
 {
-    return OUString( AVMEDIA_WIN_MANAGER_IMPLEMENTATIONNAME );
+    return AVMEDIA_WIN_MANAGER_IMPLEMENTATIONNAME;
 }
 
 
diff --git a/avmedia/source/win/player.cxx b/avmedia/source/win/player.cxx
index 7e3dd0a4965c..32ad54b9b7d4 100644
--- a/avmedia/source/win/player.cxx
+++ b/avmedia/source/win/player.cxx
@@ -435,7 +435,7 @@ uno::Reference< media::XFrameGrabber > SAL_CALL Player::createFrameGrabber(  )
 
 OUString SAL_CALL Player::getImplementationName(  )
 {
-    return OUString( AVMEDIA_WIN_PLAYER_IMPLEMENTATIONNAME );
+    return AVMEDIA_WIN_PLAYER_IMPLEMENTATIONNAME;
 }
 
 
diff --git a/avmedia/source/win/window.cxx b/avmedia/source/win/window.cxx
index 44dfb7b239ac..2f7c1209f270 100644
--- a/avmedia/source/win/window.cxx
+++ b/avmedia/source/win/window.cxx
@@ -476,7 +476,7 @@ void Window::fireSetFocusEvent( const css::awt::FocusEvent& rEvt )
 
 OUString SAL_CALL Window::getImplementationName(  )
 {
-    return OUString( AVMEDIA_WIN_WINDOW_IMPLEMENTATIONNAME );
+    return AVMEDIA_WIN_WINDOW_IMPLEMENTATIONNAME;
 }
 
 sal_Bool SAL_CALL Window::supportsService( const OUString& ServiceName )
diff --git a/canvas/source/directx/dx_canvas.cxx b/canvas/source/directx/dx_canvas.cxx
index 41e9d4816bec..e9fde8ae8fa5 100644
--- a/canvas/source/directx/dx_canvas.cxx
+++ b/canvas/source/directx/dx_canvas.cxx
@@ -126,7 +126,7 @@ namespace dxcanvas
 
     OUString SAL_CALL Canvas::getServiceName(  )
     {
-        return OUString( CANVAS_SERVICE_NAME );
+        return CANVAS_SERVICE_NAME;
     }
 
     BitmapCanvas::BitmapCanvas( const uno::Sequence< uno::Any >&                aArguments,
@@ -202,7 +202,7 @@ namespace dxcanvas
 
     OUString SAL_CALL BitmapCanvas::getServiceName(  )
     {
-        return OUString( BITMAPCANVAS_SERVICE_NAME );
+        return BITMAPCANVAS_SERVICE_NAME;
     }
 
     IBitmapSharedPtr BitmapCanvas::getBitmap() const
diff --git a/canvas/source/directx/dx_canvasbitmap.cxx b/canvas/source/directx/dx_canvasbitmap.cxx
index e7a89ae888e4..f3d99a1e3ac4 100644
--- a/canvas/source/directx/dx_canvasbitmap.cxx
+++ b/canvas/source/directx/dx_canvasbitmap.cxx
@@ -240,7 +240,7 @@ namespace dxcanvas
 
     OUString SAL_CALL CanvasBitmap::getImplementationName(  )
     {
-        return OUString( "DXCanvas.CanvasBitmap" );
+        return "DXCanvas.CanvasBitmap";
     }
 
     sal_Bool SAL_CALL CanvasBitmap::supportsService( const OUString& ServiceName )
diff --git a/canvas/source/directx/dx_canvascustomsprite.cxx b/canvas/source/directx/dx_canvascustomsprite.cxx
index 018723d6b692..ad18d765ae2b 100644
--- a/canvas/source/directx/dx_canvascustomsprite.cxx
+++ b/canvas/source/directx/dx_canvascustomsprite.cxx
@@ -81,7 +81,7 @@ namespace dxcanvas
 
     OUString SAL_CALL CanvasCustomSprite::getImplementationName()
     {
-        return OUString( "DXCanvas.CanvasCustomSprite" );
+        return "DXCanvas.CanvasCustomSprite";
     }
 
     sal_Bool SAL_CALL CanvasCustomSprite::supportsService( const OUString& ServiceName )
diff --git a/canvas/source/directx/dx_canvasfont.cxx b/canvas/source/directx/dx_canvasfont.cxx
index e306fe84b1af..e24553c7ca29 100644
--- a/canvas/source/directx/dx_canvasfont.cxx
+++ b/canvas/source/directx/dx_canvasfont.cxx
@@ -114,7 +114,7 @@ namespace dxcanvas
 
     OUString SAL_CALL CanvasFont::getImplementationName()
     {
-        return OUString( "DXCanvas::CanvasFont" );
+        return "DXCanvas::CanvasFont";
     }
 
     sal_Bool SAL_CALL CanvasFont::supportsService( const OUString& ServiceName )
diff --git a/canvas/source/directx/dx_spritecanvas.cxx b/canvas/source/directx/dx_spritecanvas.cxx
index c8416f694a2e..65bf68ed792f 100644
--- a/canvas/source/directx/dx_spritecanvas.cxx
+++ b/canvas/source/directx/dx_spritecanvas.cxx
@@ -151,7 +151,7 @@ namespace dxcanvas
 
     OUString SAL_CALL SpriteCanvas::getServiceName(  )
     {
-        return OUString( SPRITECANVAS_SERVICE_NAME );
+        return SPRITECANVAS_SERVICE_NAME;
     }
 
     const IDXRenderModuleSharedPtr& SpriteCanvas::getRenderModule() const
diff --git a/canvas/source/directx/dx_textlayout.cxx b/canvas/source/directx/dx_textlayout.cxx
index ff62ee5e0b80..5e69f70df624 100644
--- a/canvas/source/directx/dx_textlayout.cxx
+++ b/canvas/source/directx/dx_textlayout.cxx
@@ -215,7 +215,7 @@ namespace dxcanvas
 
     OUString SAL_CALL TextLayout::getImplementationName()
     {
-        return OUString( "DXCanvas::TextLayout" );
+        return "DXCanvas::TextLayout";
     }
 
     sal_Bool SAL_CALL TextLayout::supportsService( const OUString& ServiceName )
diff --git a/connectivity/source/drivers/ado/ADriver.cxx b/connectivity/source/drivers/ado/ADriver.cxx
index c19df1794285..95ce03ab79cc 100644
--- a/connectivity/source/drivers/ado/ADriver.cxx
+++ b/connectivity/source/drivers/ado/ADriver.cxx
@@ -80,7 +80,7 @@ void ODriver::disposing()
 
 OUString ODriver::getImplementationName_Static(  )
 {
-    return OUString("com.sun.star.comp.sdbc.ado.ODriver");
+    return "com.sun.star.comp.sdbc.ado.ODriver";
 }
 
 Sequence< OUString > ODriver::getSupportedServiceNames_Static(  )
diff --git a/connectivity/source/drivers/ado/AResultSet.cxx b/connectivity/source/drivers/ado/AResultSet.cxx
index 78e754f9e7ef..dae0f91efb61 100644
--- a/connectivity/source/drivers/ado/AResultSet.cxx
+++ b/connectivity/source/drivers/ado/AResultSet.cxx
@@ -56,7 +56,7 @@ using namespace com::sun::star::sdbc;
 //  IMPLEMENT_SERVICE_INFO(OResultSet,"com.sun.star.sdbcx.AResultSet","com.sun.star.sdbc.ResultSet");
 OUString SAL_CALL OResultSet::getImplementationName(  )
 {
-    return OUString("com.sun.star.sdbcx.ado.ResultSet");
+    return "com.sun.star.sdbcx.ado.ResultSet";
 }
 
 css::uno::Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames(  )
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 1e1153f0c92b..3c92e50a6ac2 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -185,7 +185,7 @@ namespace
 OUString impl_SystemFileOpenServiceName()
 {
     #if defined(_WIN32)
-    return OUString("com.sun.star.ui.dialogs.SystemFilePicker");
+    return "com.sun.star.ui.dialogs.SystemFilePicker";
     #elif defined MACOSX
     return "com.sun.star.ui.dialogs.AquaFilePicker";
     #else
diff --git a/dtrans/source/generic/clipboardmanager.cxx b/dtrans/source/generic/clipboardmanager.cxx
index 0106cccd372a..0c5dd396fec9 100644
--- a/dtrans/source/generic/clipboardmanager.cxx
+++ b/dtrans/source/generic/clipboardmanager.cxx
@@ -48,7 +48,7 @@ ClipboardManager::~ClipboardManager()
 
 OUString SAL_CALL ClipboardManager::getImplementationName(  )
 {
-    return OUString(CLIPBOARDMANAGER_IMPLEMENTATION_NAME);
+    return CLIPBOARDMANAGER_IMPLEMENTATION_NAME;
 }
 
 sal_Bool SAL_CALL ClipboardManager::supportsService( const OUString& ServiceName )
diff --git a/dtrans/source/generic/generic_clipboard.cxx b/dtrans/source/generic/generic_clipboard.cxx
index d499591f343a..4fa49b3d5ebe 100644
--- a/dtrans/source/generic/generic_clipboard.cxx
+++ b/dtrans/source/generic/generic_clipboard.cxx
@@ -56,7 +56,7 @@ void SAL_CALL GenericClipboard::initialize( const Sequence< Any >& aArguments )
 
 OUString SAL_CALL GenericClipboard::getImplementationName(  )
 {
-    return OUString(GENERIC_CLIPBOARD_IMPLEMENTATION_NAME);
+    return GENERIC_CLIPBOARD_IMPLEMENTATION_NAME;
 }
 
 sal_Bool SAL_CALL GenericClipboard::supportsService( const OUString& ServiceName )
diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx
index 3963fa48b289..919065a9f2fc 100644
--- a/dtrans/source/win32/clipb/WinClipboard.cxx
+++ b/dtrans/source/win32/clipb/WinClipboard.cxx
@@ -223,7 +223,7 @@ void SAL_CALL CWinClipboard::disposing()
 
 OUString SAL_CALL CWinClipboard::getImplementationName(  )
 {
-    return OUString( WINCLIPBOARD_IMPL_NAME );
+    return WINCLIPBOARD_IMPL_NAME;
 }
 
 sal_Bool SAL_CALL CWinClipboard::supportsService( const OUString& ServiceName )
diff --git a/dtrans/source/win32/dnd/source.cxx b/dtrans/source/win32/dnd/source.cxx
index f02bd9b784e8..c797684d233c 100644
--- a/dtrans/source/win32/dnd/source.cxx
+++ b/dtrans/source/win32/dnd/source.cxx
@@ -278,7 +278,7 @@ dwEffect
 // XServiceInfo
 OUString SAL_CALL DragSource::getImplementationName(  )
 {
-    return OUString(DNDSOURCE_IMPL_NAME);
+    return DNDSOURCE_IMPL_NAME;
 }
 // XServiceInfo
 sal_Bool SAL_CALL DragSource::supportsService( const OUString& ServiceName )
diff --git a/dtrans/source/win32/dnd/target.cxx b/dtrans/source/win32/dnd/target.cxx
index c517079897d9..4ab0b0a22428 100644
--- a/dtrans/source/win32/dnd/target.cxx
+++ b/dtrans/source/win32/dnd/target.cxx
@@ -248,7 +248,7 @@ DWORD WINAPI DndTargetOleSTAFunc(LPVOID pParams)
 // XServiceInfo
 OUString SAL_CALL DropTarget::getImplementationName(  )
 {
-    return OUString(DNDTARGET_IMPL_NAME);
+    return DNDTARGET_IMPL_NAME;
 }
 // XServiceInfo
 sal_Bool SAL_CALL DropTarget::supportsService( const OUString& ServiceName )
diff --git a/dtrans/source/win32/ftransl/ftransl.cxx b/dtrans/source/win32/ftransl/ftransl.cxx
index 8293e22a8cd8..4cc1897059a3 100644
--- a/dtrans/source/win32/ftransl/ftransl.cxx
+++ b/dtrans/source/win32/ftransl/ftransl.cxx
@@ -530,7 +530,7 @@ DataFlavor SAL_CALL CDataFormatTranslatorUNO::getDataFlavorFromSystemDataType( c
 
 OUString SAL_CALL CDataFormatTranslatorUNO::getImplementationName(  )
 {
-    return OUString( IMPL_NAME );
+    return IMPL_NAME;
 }
 
 sal_Bool SAL_CALL CDataFormatTranslatorUNO::supportsService( const OUString& ServiceName )
diff --git a/embeddedobj/source/msole/xdialogcreator.cxx b/embeddedobj/source/msole/xdialogcreator.cxx
index 836f198eb867..b5c4bd00dc9e 100644
--- a/embeddedobj/source/msole/xdialogcreator.cxx
+++ b/embeddedobj/source/msole/xdialogcreator.cxx
@@ -117,7 +117,7 @@ uno::Sequence< OUString > MSOLEDialogObjectCreator::impl_staticGetSupportedServi
 
 OUString MSOLEDialogObjectCreator::impl_staticGetImplementationName()
 {
-    return OUString("com.sun.star.comp.embed.MSOLEObjectSystemCreator");
+    return "com.sun.star.comp.embed.MSOLEObjectSystemCreator";
 }
 
 
diff --git a/embedserv/source/embed/guid.cxx b/embedserv/source/embed/guid.cxx
index 0260cb0ebc7e..5b284a8a9dff 100644
--- a/embedserv/source/embed/guid.cxx
+++ b/embedserv/source/embed/guid.cxx
@@ -96,34 +96,34 @@ std::u16string_view getServiceNameFromGUID_Impl( GUID const * guid )
 OUString getFilterNameFromGUID_Impl( GUID const * guid )
 {
     if ( *guid == OID_WriterTextServer )
-        return OUString( "StarOffice XML (Writer)" );
+        return "StarOffice XML (Writer)";
 
     if ( *guid == OID_WriterOASISTextServer )
-        return OUString( "writer8" );
+        return "writer8";
 
     if ( *guid == OID_CalcServer )
-        return OUString( "StarOffice XML (Calc)" );
+        return "StarOffice XML (Calc)";
 
     if ( *guid == OID_CalcOASISServer )
-        return OUString( "calc8" );
+        return "calc8";
 
     if ( *guid == OID_DrawingServer )
-        return OUString( "StarOffice XML (Draw)" );
+        return "StarOffice XML (Draw)";
 
     if ( *guid == OID_DrawingOASISServer )
-        return OUString( "draw8" );
+        return "draw8";
 
     if ( *guid == OID_PresentationServer )
-        return OUString( "StarOffice XML (Impress)" );
+        return "StarOffice XML (Impress)";
 
     if ( *guid == OID_PresentationOASISServer )
-        return OUString( "impress8" );
+        return "impress8";
 
     if ( *guid == OID_MathServer )
-        return OUString( "StarOffice XML (Math)" );
+        return "StarOffice XML (Math)";
 
     if ( *guid == OID_MathOASISServer )
-        return OUString( "math8" );
+        return "math8";
 
     return OUString();
 }
diff --git a/embedserv/source/embed/register.cxx b/embedserv/source/embed/register.cxx
index 573aedd470f8..8f593d877a1f 100644
--- a/embedserv/source/embed/register.cxx
+++ b/embedserv/source/embed/register.cxx
@@ -38,7 +38,7 @@ static uno::Reference<uno::XInterface> EmbedServer_createInstance(
 
 static OUString EmbedServer_getImplementationName() throw()
 {
-    return OUString("com.sun.star.comp.ole.EmbedServer");
+    return "com.sun.star.comp.ole.EmbedServer";
 
 }
 
diff --git a/embedserv/source/embed/servprov.cxx b/embedserv/source/embed/servprov.cxx
index 429c86e0dc89..9be17eb071ec 100644
--- a/embedserv/source/embed/servprov.cxx
+++ b/embedserv/source/embed/servprov.cxx
@@ -119,7 +119,7 @@ EmbedServer_Impl::~EmbedServer_Impl()
 
 OUString EmbedServer_Impl::getImplementationName()
 {
-    return OUString("com.sun.star.comp.ole.EmbedServer");
+    return "com.sun.star.comp.ole.EmbedServer";
 }
 
 sal_Bool EmbedServer_Impl::supportsService(OUString const & ServiceName)
diff --git a/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx b/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx
index a34ca11c662d..d8959264af20 100644
--- a/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx
+++ b/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx
@@ -450,7 +450,7 @@ css::uno::Any WinUserInfoBe::getPropertyValue(OUString const& PropertyName)
 
 OUString WinUserInfoBe::getWinUserInfoBeName()
 {
-    return OUString("com.sun.star.comp.configuration.backend.WinUserInfoBe");
+    return "com.sun.star.comp.configuration.backend.WinUserInfoBe";
 }
 
 OUString SAL_CALL WinUserInfoBe::getImplementationName() { return getWinUserInfoBeName(); }
diff --git a/extensions/source/ole/servprov.cxx b/extensions/source/ole/servprov.cxx
index c09f99be7141..e59c8d0e6076 100644
--- a/extensions/source/ole/servprov.cxx
+++ b/extensions/source/ole/servprov.cxx
@@ -375,7 +375,7 @@ Sequence< OUString >    SAL_CALL OleClient::getAvailableServiceNames()
 
 OUString OleClient::getImplementationName()
 {
-    return OUString("com.sun.star.comp.ole.OleClient");
+    return "com.sun.star.comp.ole.OleClient";
 }
 
 sal_Bool OleClient::supportsService(OUString const & ServiceName)
@@ -522,7 +522,7 @@ OleServer::~OleServer()
 
 OUString OleServer::getImplementationName()
 {
-    return OUString("com.sun.star.comp.ole.OleServer");
+    return "com.sun.star.comp.ole.OleServer";
 }
 
 sal_Bool OleServer::supportsService(OUString const & ServiceName)
diff --git a/fpicker/source/win32/VistaFilePicker.cxx b/fpicker/source/win32/VistaFilePicker.cxx
index 1c888b44a6d5..a7ded90f6d60 100644
--- a/fpicker/source/win32/VistaFilePicker.cxx
+++ b/fpicker/source/win32/VistaFilePicker.cxx
@@ -542,9 +542,9 @@ void SAL_CALL VistaFilePicker::setDescription( const OUString& aDescription )
 OUString SAL_CALL VistaFilePicker::getImplementationName()
 {
     if (m_bFolderPicker)
-        return OUString(FOLDER_PICKER_IMPL_NAME);
+        return FOLDER_PICKER_IMPL_NAME;
     else
-        return OUString(FILE_PICKER_IMPL_NAME);
+        return FILE_PICKER_IMPL_NAME;
 }
 
 sal_Bool SAL_CALL VistaFilePicker::supportsService(const OUString& sServiceName)
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx
index 0f2bdbdc6529..4c09ace2e90c 100644
--- a/sc/source/ui/vba/vbaapplication.cxx
+++ b/sc/source/ui/vba/vbaapplication.cxx
@@ -969,7 +969,7 @@ ScVbaApplication::getOperatingSystem()
     // TODO Solution should contain the version number of the operating system
     // too.
 #if   defined(_WIN32)
-        return OUString("Windows");
+        return "Windows";
 #elif defined(MACOSX)
         return "Macintosh";
 #elif defined(UNX)
diff --git a/shell/source/backends/wininetbe/wininetbackend.cxx b/shell/source/backends/wininetbe/wininetbackend.cxx
index adc0133dfc32..599195dcebf7 100644
--- a/shell/source/backends/wininetbe/wininetbackend.cxx
+++ b/shell/source/backends/wininetbe/wininetbackend.cxx
@@ -341,7 +341,7 @@ css::uno::Any WinInetBackend::getPropertyValue(
 }
 
 OUString WinInetBackend::getBackendName() {
-    return OUString("com.sun.star.comp.configuration.backend.WinInetBackend") ;
+    return "com.sun.star.comp.configuration.backend.WinInetBackend" ;
 }
 
 OUString SAL_CALL WinInetBackend::getImplementationName()
diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx
index 910aae1c095f..73ef77bbe6a1 100644
--- a/shell/source/win32/SysShExec.cxx
+++ b/shell/source/win32/SysShExec.cxx
@@ -484,7 +484,7 @@ void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aPa
 
 OUString SAL_CALL CSysShExec::getImplementationName(  )
 {
-    return OUString(SYSSHEXEC_IMPL_NAME );
+    return SYSSHEXEC_IMPL_NAME;
 }
 
 sal_Bool SAL_CALL CSysShExec::supportsService( const OUString& ServiceName )
diff --git a/shell/source/win32/simplemail/smplmailsuppl.cxx b/shell/source/win32/simplemail/smplmailsuppl.cxx
index 4af43f4a06cc..34c623b7c29d 100644
--- a/shell/source/win32/simplemail/smplmailsuppl.cxx
+++ b/shell/source/win32/simplemail/smplmailsuppl.cxx
@@ -72,7 +72,7 @@ Reference<XSimpleMailClient> SAL_CALL CSmplMailSuppl::querySimpleMailClient()
 
 OUString SAL_CALL CSmplMailSuppl::getImplementationName()
 {
-    return OUString(COMP_IMPL_NAME);
+    return COMP_IMPL_NAME;
 }
 
 sal_Bool SAL_CALL CSmplMailSuppl::supportsService(const OUString& ServiceName)
diff --git a/svl/source/svdde/ddesvr.cxx b/svl/source/svdde/ddesvr.cxx
index 4fffb473674e..8060cf0f4835 100644
--- a/svl/source/svdde/ddesvr.cxx
+++ b/svl/source/svdde/ddesvr.cxx
@@ -847,7 +847,7 @@ OUString DdeService::Formats()
 
 OUString DdeService::Status()
 {
-    return OUString("Ready\r\n");
+    return "Ready\r\n";
 }
 
 bool DdeTopic::MakeItem( const OUString& )
diff --git a/svtools/source/uno/fpicker.cxx b/svtools/source/uno/fpicker.cxx
index e8e5e451dd53..076f59a8d346 100644
--- a/svtools/source/uno/fpicker.cxx
+++ b/svtools/source/uno/fpicker.cxx
@@ -44,7 +44,7 @@ static OUString FilePicker_getSystemPickerServiceName()
         return "com.sun.star.ui.dialogs.SystemFilePicker";
 #endif
 #ifdef _WIN32
-    return OUString ("com.sun.star.ui.dialogs.Win32FilePicker");
+    return "com.sun.star.ui.dialogs.Win32FilePicker";
 #endif
 }
 
diff --git a/vcl/source/app/IconThemeSelector.cxx b/vcl/source/app/IconThemeSelector.cxx
index 6eec4a52b777..225414fcc8b7 100644
--- a/vcl/source/app/IconThemeSelector.cxx
+++ b/vcl/source/app/IconThemeSelector.cxx
@@ -57,7 +57,7 @@ IconThemeSelector::GetIconThemeForDesktopEnvironment(const OUString& desktopEnvi
 
 #ifdef _WIN32
     (void)desktopEnvironment;
-    return OUString("colibre");
+    return "colibre";
 #else
     OUString r;
     if ( desktopEnvironment.equalsIgnoreAsciiCase("plasma5") ||
diff --git a/vcl/source/components/dtranscomp.cxx b/vcl/source/components/dtranscomp.cxx
index 0b2245bbd2f0..380719541311 100644
--- a/vcl/source/components/dtranscomp.cxx
+++ b/vcl/source/components/dtranscomp.cxx
@@ -319,7 +319,7 @@ OUString DragSource_getImplementationName()
 #elif defined UNX
     return "com.sun.star.datatransfer.dnd.XdndSupport";
 #else
-    return OUString("com.sun.star.datatransfer.dnd.VclGenericDragSource");
+    return "com.sun.star.datatransfer.dnd.VclGenericDragSource";
 #endif
 }
 
diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx
index 8141df1ffcf0..6bf89f3b7225 100644
--- a/winaccessibility/source/UAccCOM/MAccessible.cxx
+++ b/winaccessibility/source/UAccCOM/MAccessible.cxx
@@ -2883,7 +2883,7 @@ OUString CMAccessible::get_String4Numbering(const Any& pAny, sal_Int16 numbering
     }
     else
     {
-        return OUString("Numbering:");
+        return "Numbering:";
     }
 }
 
diff --git a/winaccessibility/source/service/msaaservice_impl.cxx b/winaccessibility/source/service/msaaservice_impl.cxx
index 89b5d9a4a0d7..15959e2b4c83 100644
--- a/winaccessibility/source/service/msaaservice_impl.cxx
+++ b/winaccessibility/source/service/msaaservice_impl.cxx
@@ -54,7 +54,7 @@ static Sequence< OUString > getSupportedServiceNames_MSAAServiceImpl()
 
 static OUString getImplementationName_MSAAServiceImpl()
 {
-    return OUString( "com.sun.star.accessibility.my_sc_implementation.MSAAService" );
+    return "com.sun.star.accessibility.my_sc_implementation.MSAAService";
 }
 
 class MSAAServiceImpl : public ::cppu::WeakImplHelper<
diff --git a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
index 20b7ba4dac9f..565f372a5219 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
@@ -155,7 +155,7 @@ SecurityEnvironment_MSCryptImpl::~SecurityEnvironment_MSCryptImpl() {
 
 /* XServiceInfo */
 OUString SAL_CALL SecurityEnvironment_MSCryptImpl::getImplementationName() {
-    return OUString("com.sun.star.xml.crypto.SecurityEnvironment");
+    return "com.sun.star.xml.crypto.SecurityEnvironment";
 }
 
 /* XServiceInfo */
@@ -990,7 +990,7 @@ static X509Certificate_MSCryptImpl* MswcryCertContextToXCert( PCCERT_CONTEXT cer
 
 OUString SecurityEnvironment_MSCryptImpl::getSecurityEnvironmentInformation()
 {
-    return OUString("Microsoft Crypto API");
+    return "Microsoft Crypto API";
 }
 
 xmlSecKeysMngrPtr SecurityEnvironment_MSCryptImpl::createKeysManager() {
diff --git a/xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx
index ac5d6a3b0a3e..cceedb869ba2 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx
@@ -150,7 +150,7 @@ void SAL_CALL SEInitializer_MSCryptImpl::freeSecurityContext( const uno::Referen
 /* XServiceInfo */
 OUString SAL_CALL SEInitializer_MSCryptImpl::getImplementationName()
 {
-    return OUString("com.sun.star.xml.crypto.SEInitializer");
+    return "com.sun.star.xml.crypto.SEInitializer";
 }
 
 sal_Bool SAL_CALL SEInitializer_MSCryptImpl::supportsService( const OUString& rServiceName )
diff --git a/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
index 8f161d3df2c0..0e619b2802f8 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
@@ -634,7 +634,7 @@ sal_Int32 SAL_CALL X509Certificate_MSCryptImpl::getCertificateUsage(  )
 /* XServiceInfo */
 OUString SAL_CALL X509Certificate_MSCryptImpl::getImplementationName()
 {
-    return OUString("com.sun.star.xml.security.gpg.XCertificate_MsCryptImpl");
+    return "com.sun.star.xml.security.gpg.XCertificate_MsCryptImpl";
 }
 
 /* XServiceInfo */
diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx
index 85fc50e547d5..91dbbc32b6c5 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx
@@ -126,7 +126,7 @@ void SAL_CALL XMLSecurityContext_MSCryptImpl::setDefaultSecurityEnvironmentIndex
 
 /* XServiceInfo */
 OUString SAL_CALL XMLSecurityContext_MSCryptImpl::getImplementationName() {
-    return OUString("com.sun.star.xml.crypto.XMLSecurityContext") ;
+    return "com.sun.star.xml.crypto.XMLSecurityContext" ;
 }
 
 /* XServiceInfo */
diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx
index 485c7701be6d..a0acd81786d7 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx
@@ -277,7 +277,7 @@ SAL_CALL XMLSignature_MSCryptImpl::validate(
 
 /* XServiceInfo */
 OUString SAL_CALL XMLSignature_MSCryptImpl::getImplementationName() {
-    return OUString("com.sun.star.xml.crypto.XMLSignature");
+    return "com.sun.star.xml.crypto.XMLSignature";
 }
 
 /* XServiceInfo */


More information about the Libreoffice-commits mailing list