[Libreoffice-commits] core.git: 2 commits - basctl/source bridges/test canvas/source connectivity/source cppcanvas/source cppuhelper/test crashrep/source cui/source dbaccess/source desktop/source dtrans/source extensions/qa forms/source fpicker/source framework/source helpcompiler/source io/test lotuswordpro/source reportdesign/source sc/qa scripting/source sc/source sd/source sfx2/source sot/source starmath/source stoc/test svl/source svtools/source svx/source sw/qa sw/source test/source toolkit/source ucbhelper/source ucb/source ucb/workben unotools/source vcl/source vcl/win xmlhelp/source xmloff/source xmlsecurity/source

Noel Grandin noel at peralex.com
Mon Nov 4 09:11:58 CET 2013


 basctl/source/basicide/unomodel.cxx                                |    2 
 bridges/test/testcomp.cxx                                          |    2 
 canvas/source/vcl/devicehelper.cxx                                 |    4 
 canvas/source/vcl/spritedevicehelper.cxx                           |    4 
 connectivity/source/commontools/TColumnsHelper.cxx                 |   18 +-
 connectivity/source/commontools/TTableHelper.cxx                   |    6 
 connectivity/source/commontools/dbtools.cxx                        |    6 
 connectivity/source/commontools/dbtools2.cxx                       |   11 -
 connectivity/source/commontools/predicateinput.cxx                 |    6 
 connectivity/source/drivers/dbase/DIndex.cxx                       |   18 +-
 connectivity/source/drivers/dbase/DIndexes.cxx                     |    7 -
 connectivity/source/drivers/dbase/DTable.cxx                       |    2 
 connectivity/source/drivers/firebird/Services.cxx                  |    4 
 connectivity/source/drivers/hsqldb/HTable.cxx                      |   49 +++----
 connectivity/source/drivers/hsqldb/HTables.cxx                     |    6 
 connectivity/source/drivers/hsqldb/HUser.cxx                       |   50 +++-----
 connectivity/source/drivers/hsqldb/HUsers.cxx                      |   10 -
 connectivity/source/drivers/hsqldb/HViews.cxx                      |   10 -
 connectivity/source/drivers/hsqldb/accesslog.cxx                   |    5 
 connectivity/source/drivers/macab/MacabAddressBook.cxx             |    5 
 connectivity/source/drivers/macab/MacabRecords.cxx                 |    2 
 connectivity/source/drivers/mork/MDriver.cxx                       |    2 
 connectivity/source/drivers/mork/MNSProfileDiscover.cxx            |    3 
 connectivity/source/drivers/mozab/MDriver.cxx                      |    2 
 connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx |    3 
 connectivity/source/drivers/mysql/YDriver.cxx                      |    6 
 connectivity/source/drivers/mysql/YTable.cxx                       |   34 ++---
 connectivity/source/drivers/mysql/YTables.cxx                      |    6 
 connectivity/source/drivers/mysql/YUser.cxx                        |   51 +++-----
 connectivity/source/drivers/mysql/YUsers.cxx                       |    4 
 connectivity/source/drivers/mysql/YViews.cxx                       |    2 
 connectivity/source/drivers/odbcbase/OConnection.cxx               |    8 -
 connectivity/source/parse/sqlnode.cxx                              |    2 
 cppcanvas/source/mtfrenderer/emfplus.cxx                           |    5 
 cppuhelper/test/testpropshlp.cxx                                   |   18 +-
 crashrep/source/win32/soreport.cxx                                 |    2 
 cui/source/options/optaboutconfig.cxx                              |   46 +++----
 cui/source/options/optgdlg.cxx                                     |    2 
 dbaccess/source/core/api/viewcontainer.cxx                         |    2 
 dbaccess/source/ui/browser/sbagrid.cxx                             |    6 
 dbaccess/source/ui/dlg/queryorder.cxx                              |    2 
 dbaccess/source/ui/misc/DExport.cxx                                |   14 --
 dbaccess/source/ui/misc/UITools.cxx                                |   16 +-
 dbaccess/source/ui/misc/WCopyTable.cxx                             |    4 
 dbaccess/source/ui/querydesign/QueryDesignView.cxx                 |    4 
 dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx              |    6 
 dbaccess/source/ui/relationdesign/RTableConnectionData.cxx         |    2 
 dbaccess/source/ui/tabledesign/TEditControl.cxx                    |    2 
 dbaccess/source/ui/tabledesign/TableFieldControl.cxx               |    2 
 desktop/source/app/app.cxx                                         |    5 
 desktop/source/app/officeipcthread.cxx                             |    4 
 desktop/source/deployment/registry/help/dp_help.cxx                |   10 -
 dtrans/source/cnttype/mcnttype.cxx                                 |   10 -
 dtrans/source/test/test_dtrans.cxx                                 |    2 
 extensions/qa/update/test_update.cxx                               |    6 
 forms/source/component/ListBox.cxx                                 |    6 
 forms/source/runtime/formoperations.cxx                            |    2 
 fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx            |    2 
 framework/source/accelerators/presethandler.cxx                    |    4 
 framework/source/fwe/classes/addonmenu.cxx                         |    2 
 framework/source/fwe/classes/bmkmenu.cxx                           |    2 
 framework/source/uielement/menubarmerger.cxx                       |    2 
 framework/source/uielement/toolbarmanager.cxx                      |    8 -
 helpcompiler/source/HelpLinker.cxx                                 |    7 -
 io/test/stm/datatest.cxx                                           |    2 
 lotuswordpro/source/filter/lwpbulletstylemgr.cxx                   |    2 
 lotuswordpro/source/filter/xfilter/xftextcontent.cxx               |    3 
 reportdesign/source/filter/xml/xmlExport.cxx                       |   10 -
 reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx        |    3 
 reportdesign/source/filter/xml/xmlGroup.cxx                        |   18 +-
 reportdesign/source/ui/inspection/DataProviderHandler.cxx          |    2 
 sc/qa/unit/filters-test.cxx                                        |    4 
 sc/source/filter/excel/xename.cxx                                  |    2 
 sc/source/filter/html/htmlpars.cxx                                 |    2 
 sc/source/filter/xml/XMLStylesExportHelper.cxx                     |   42 +++---
 sc/source/filter/xml/xmlimprt.cxx                                  |    2 
 sc/source/filter/xml/xmlstyle.cxx                                  |   20 +--
 sc/source/ui/docshell/externalrefmgr.cxx                           |    2 
 sc/source/ui/miscdlgs/mvtabdlg.cxx                                 |    2 
 sc/source/ui/namedlg/namemgrtable.cxx                              |    4 
 sc/source/ui/undo/undotab.cxx                                      |    2 
 sc/source/ui/unoobj/linkuno.cxx                                    |    2 
 scripting/source/basprov/basmethnode.cxx                           |   10 -
 scripting/source/dlgprov/dlgevtatt.cxx                             |    4 
 scripting/source/stringresource/stringresource.cxx                 |   10 -
 sd/source/filter/ppt/pptinanimations.cxx                           |    2 
 sd/source/ui/dlg/custsdlg.cxx                                      |    2 
 sfx2/source/appl/lnkbase2.cxx                                      |    2 
 sfx2/source/dialog/templdlg.cxx                                    |    2 
 sfx2/source/doc/SfxDocumentMetaData.cxx                            |    3 
 sfx2/source/doc/docfac.cxx                                         |    2 
 sfx2/source/doc/objstor.cxx                                        |    2 
 sot/source/base/exchange.cxx                                       |    4 
 sot/source/sdstor/ucbstorage.cxx                                   |   15 +-
 starmath/source/mathtype.cxx                                       |    2 
 starmath/source/wordexportbase.cxx                                 |    2 
 stoc/test/registry_tdprovider/testregistrytdprovider.cxx           |    4 
 stoc/test/tdmanager/testtdmanager.cxx                              |    4 
 stoc/test/testcorefl.cxx                                           |   44 +++----
 stoc/test/testintrosp.cxx                                          |    2 
 stoc/test/testregistry.cxx                                         |   62 +++++-----
 stoc/test/testsmgr_cpnt.cxx                                        |    2 
 svl/source/numbers/zforlist.cxx                                    |    4 
 svl/source/passwordcontainer/passwordcontainer.cxx                 |   10 -
 svtools/source/config/extcolorcfg.cxx                              |    4 
 svtools/source/config/fontsubstconfig.cxx                          |   11 -
 svtools/source/dialogs/addresstemplate.cxx                         |   10 -
 svx/source/dialog/srchdlg.cxx                                      |    2 
 svx/source/fmcomp/gridctrl.cxx                                     |    2 
 svx/source/form/navigatortree.cxx                                  |    2 
 sw/qa/extras/ooxmlexport/ooxmlexport.cxx                           |   12 -
 sw/source/core/unocore/unobkm.cxx                                  |    2 
 sw/source/core/unocore/unostyle.cxx                                |    2 
 sw/source/filter/html/swhtml.cxx                                   |    2 
 sw/source/ui/dbui/mailmergehelper.cxx                              |    2 
 sw/source/ui/dbui/mmoutputpage.cxx                                 |   15 +-
 sw/source/ui/envelp/label1.cxx                                     |    2 
 sw/source/ui/index/cnttab.cxx                                      |    4 
 sw/source/ui/uiview/viewport.cxx                                   |    2 
 sw/source/ui/uno/SwXFilterOptions.cxx                              |    4 
 sw/source/ui/vba/vbaview.cxx                                       |    4 
 test/source/sheet/xdatabaserange.cxx                               |   18 +-
 toolkit/source/awt/vclxaccessiblecomponent.cxx                     |    4 
 ucb/source/core/ucbcmds.cxx                                        |    2 
 ucb/source/ucp/file/bc.cxx                                         |    6 
 ucb/source/ucp/file/filrset.cxx                                    |   16 +-
 ucb/source/ucp/file/prov.cxx                                       |    2 
 ucb/source/ucp/file/shell.cxx                                      |    8 -
 ucb/source/ucp/ftp/ftpresultsetbase.cxx                            |   16 +-
 ucb/source/ucp/gio/gio_content.cxx                                 |    4 
 ucb/source/ucp/gio/gio_datasupplier.cxx                            |    2 
 ucb/source/ucp/gvfs/gvfs_content.cxx                               |    6 
 ucb/source/ucp/gvfs/gvfs_directory.cxx                             |    2 
 ucb/source/ucp/hierarchy/hierarchycontent.cxx                      |   18 +-
 ucb/source/ucp/hierarchy/hierarchydata.cxx                         |   14 +-
 ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx                 |    2 
 ucb/source/ucp/hierarchy/hierarchyuri.cxx                          |    6 
 ucb/source/ucp/package/pkgcontent.cxx                              |   20 +--
 ucb/source/ucp/package/pkgdatasupplier.cxx                         |    4 
 ucb/source/ucp/tdoc/tdoc_content.cxx                               |   12 -
 ucb/source/ucp/tdoc/tdoc_datasupplier.cxx                          |    2 
 ucb/source/ucp/webdav-neon/NeonUri.cxx                             |   10 -
 ucb/source/ucp/webdav-neon/webdavcontent.cxx                       |   16 +-
 ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx                  |    4 
 ucb/source/ucp/webdav-neon/webdavprovider.cxx                      |    2 
 ucb/workben/ucb/ucbdemo.cxx                                        |   29 +---
 ucbhelper/source/client/proxydecider.cxx                           |    2 
 unotools/source/ucbhelper/ucblockbytes.cxx                         |    6 
 vcl/source/app/settings.cxx                                        |   20 +--
 vcl/source/window/window.cxx                                       |    2 
 vcl/win/source/gdi/salgdi3.cxx                                     |    4 
 xmlhelp/source/cxxhelp/provider/resultsetbase.cxx                  |   16 +-
 xmloff/source/chart/PropertyMaps.cxx                               |   12 -
 xmloff/source/forms/layerexport.cxx                                |    2 
 xmloff/source/transform/StyleOASISTContext.cxx                     |    2 
 xmloff/source/transform/StyleOOoTContext.cxx                       |    6 
 xmlsecurity/source/helper/xmlsignaturehelper2.cxx                  |    2 
 157 files changed, 573 insertions(+), 681 deletions(-)

New commits:
commit 5285beeaa49f6678b471d472868c305c7d9da5f9
Author: Noel Grandin <noel at peralex.com>
Date:   Fri Oct 25 17:35:42 2013 +0200

    remove redundant calls to OUString constructor in if expression
    
    Convert code like:
      if( aStr == OUString("xxxx") )
    to this:
      if( aStr == "xxxx" )
    
    Change-Id: I8d201f048477731eff590fb988259ef0935c080c

diff --git a/basctl/source/basicide/unomodel.cxx b/basctl/source/basicide/unomodel.cxx
index 48413fe..9b2bccd 100644
--- a/basctl/source/basicide/unomodel.cxx
+++ b/basctl/source/basicide/unomodel.cxx
@@ -93,7 +93,7 @@ OUString SIDEModel::getImplementationName_Static()
 
 sal_Bool SIDEModel::supportsService(const OUString& rServiceName) throw( uno::RuntimeException )
 {
-    return rServiceName == OUString( "com.sun.star.script.BasicIDE" );
+    return rServiceName == "com.sun.star.script.BasicIDE";
 }
 uno::Sequence< OUString > SIDEModel::getSupportedServiceNames(void) throw( uno::RuntimeException )
 {
diff --git a/bridges/test/testcomp.cxx b/bridges/test/testcomp.cxx
index 2ccda76..d9d19cf 100644
--- a/bridges/test/testcomp.cxx
+++ b/bridges/test/testcomp.cxx
@@ -95,7 +95,7 @@ Any OInstanceProvider::queryInterface( const  Type & aType ) throw ( RuntimeExce
               ::com::sun::star::uno::RuntimeException)
 {
     // Tries to get the PerformanceTestObject
-    if( sObjectName == OUString( "TestRemoteObject" ) )
+    if( sObjectName == "TestRemoteObject" )
     {
         return m_rSMgr->createInstance(
             OUString("com.sun.star.test.performance.PerformanceTestObject") );
diff --git a/connectivity/source/drivers/hsqldb/HTables.cxx b/connectivity/source/drivers/hsqldb/HTables.cxx
index 0b5d979..1d75b86 100644
--- a/connectivity/source/drivers/hsqldb/HTables.cxx
+++ b/connectivity/source/drivers/hsqldb/HTables.cxx
@@ -132,7 +132,7 @@ void OTables::dropObject(sal_Int32 _nPos,const OUString _sElementName)
 
         Reference<XPropertySet> xProp(xObject,UNO_QUERY);
         sal_Bool bIsView;
-        if((bIsView = (xProp.is() && ::comphelper::getString(xProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))) == OUString("VIEW")))) // here we have a view
+        if((bIsView = (xProp.is() && ::comphelper::getString(xProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))) == "VIEW"))) // here we have a view
             aSql += "VIEW ";
         else
             aSql += "TABLE ";
diff --git a/connectivity/source/drivers/mork/MDriver.cxx b/connectivity/source/drivers/mork/MDriver.cxx
index c11ff08..1a70ed2 100644
--- a/connectivity/source/drivers/mork/MDriver.cxx
+++ b/connectivity/source/drivers/mork/MDriver.cxx
@@ -104,7 +104,7 @@ sal_Bool MorkDriver::acceptsURL(OUString const & url)
         {
             aAddrbookScheme= aAddrbookURI;
         }
-        else if(url == OUString("sdbc:address:") )
+        else if( url == "sdbc:address:" )
         {
             return false;
         }
diff --git a/connectivity/source/drivers/mozab/MDriver.cxx b/connectivity/source/drivers/mozab/MDriver.cxx
index d292687..766d251 100644
--- a/connectivity/source/drivers/mozab/MDriver.cxx
+++ b/connectivity/source/drivers/mozab/MDriver.cxx
@@ -220,7 +220,7 @@ EDriverType MozabDriver::impl_classifyURL( const OUString& url )
         // There isn't any subschema: - but could be just subschema
         if ( !aAddrbookURI.isEmpty() )
             aAddrbookScheme= aAddrbookURI;
-        else if(url == OUString("sdbc:address:") )
+        else if(url == "sdbc:address:" )
             return Unknown; // TODO check
         else
             return Unknown;
diff --git a/connectivity/source/drivers/mysql/YTables.cxx b/connectivity/source/drivers/mysql/YTables.cxx
index 25fbf73..0895798 100644
--- a/connectivity/source/drivers/mysql/YTables.cxx
+++ b/connectivity/source/drivers/mysql/YTables.cxx
@@ -136,7 +136,7 @@ void OTables::dropObject(sal_Int32 _nPos,const OUString _sElementName)
         OUString aSql(  "DROP " );
 
         Reference<XPropertySet> xProp(xObject,UNO_QUERY);
-        sal_Bool bIsView = xProp.is() && ::comphelper::getString(xProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))) == OUString("VIEW");
+        sal_Bool bIsView = xProp.is() && ::comphelper::getString(xProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))) == "VIEW";
         if(bIsView) // here we have a view
             aSql += "VIEW ";
         else
diff --git a/connectivity/source/drivers/odbcbase/OConnection.cxx b/connectivity/source/drivers/odbcbase/OConnection.cxx
index cae97e2..2e09b82 100644
--- a/connectivity/source/drivers/odbcbase/OConnection.cxx
+++ b/connectivity/source/drivers/odbcbase/OConnection.cxx
@@ -161,7 +161,7 @@ SQLRETURN OConnection::OpenConnection(const OUString& aConnectStr,sal_Int32 nTim
     {
         OUString sVersion;
         OTools::GetInfo(this,m_aConnectionHandle,SQL_DRIVER_ODBC_VER,sVersion,*this,getTextEncoding());
-        m_bUseOldDateFormat =  sVersion == OUString("02.50") || sVersion == OUString("02.00");
+        m_bUseOldDateFormat =  sVersion == "02.50" || sVersion == "02.00";
     }
     catch(Exception&)
     {
diff --git a/cppuhelper/test/testpropshlp.cxx b/cppuhelper/test/testpropshlp.cxx
index b7a30a8..7783e80 100644
--- a/cppuhelper/test/testpropshlp.cxx
+++ b/cppuhelper/test/testpropshlp.cxx
@@ -468,13 +468,13 @@ public:
             case PROPERTY_BOOL:
                 {
                 OSL_FAIL( "PropertySetHelper: BOOL cannot change" );
-                OSL_ENSURE( evt.PropertyName == OUString("BOOL"), "PropertySetHelper: wrong name" );
+                OSL_ENSURE( evt.PropertyName == "BOOL", "PropertySetHelper: wrong name" );
                 }
             break;
 
             case PROPERTY_INT16:
                 {
-                OSL_ENSURE( evt.PropertyName == OUString("INT16"), "PropertySetHelper: wrong name" );
+                OSL_ENSURE( evt.PropertyName == "INT16", "PropertySetHelper: wrong name" );
 
                 OSL_ENSURE( pExceptedListenerValues[nCurrent].getValueType().getTypeClass() == TypeClass_SHORT ,
                             "PropertySetHelper: wrong data type" );
@@ -493,7 +493,7 @@ public:
 
             case PROPERTY_INT32:
                 {
-                    OSL_ENSURE( evt.PropertyName == OUString("INT32"), "PropertySetHelper: wrong name" );
+                    OSL_ENSURE( evt.PropertyName == "INT32", "PropertySetHelper: wrong name" );
 
                     sal_Int32 nInt32(0),nOldInt32(0);
 
@@ -526,13 +526,13 @@ public:
             case PROPERTY_BOOL:
                 {
                     OSL_FAIL( "PropertySetHelper: BOOL cannot change" );
-                    OSL_ENSURE( evt.PropertyName == OUString("BOOL"), "PropertySetHelper: wrong name" );
+                    OSL_ENSURE( evt.PropertyName == "BOOL", "PropertySetHelper: wrong name" );
                 }
             break;
 
             case PROPERTY_INT16:
                 {
-                    OSL_ENSURE( evt.PropertyName == OUString("INT16"), "PropertySetHelper: wrong name" );
+                    OSL_ENSURE( evt.PropertyName == "INT16", "PropertySetHelper: wrong name" );
 
                     sal_Int16 nInt16(0), nOldInt16(0);
                     pExceptedListenerValues[nCurrent]   >>= nInt16;
@@ -554,7 +554,7 @@ public:
 
             case PROPERTY_INT32:
                 {
-                    OSL_ENSURE( evt.PropertyName == OUString("INT32"), "PropertySetHelper: wrong name" );
+                    OSL_ENSURE( evt.PropertyName == "INT32", "PropertySetHelper: wrong name" );
 
                     sal_Int32 nInt32(0),nOldInt32(0);
                     pExceptedListenerValues[nCurrent] >>= nInt32;
@@ -589,13 +589,13 @@ public:
                 case PROPERTY_BOOL:
                     {
                     OSL_FAIL( "PropertySetHelper: BOOL cannot change" );
-                    OSL_ENSURE( evt.PropertyName == OUString("BOOL"), "PropertySetHelper: wrong name" );
+                    OSL_ENSURE( evt.PropertyName == "BOOL", "PropertySetHelper: wrong name" );
                     }
                 break;
 
                 case PROPERTY_INT16:
                     {
-                    OSL_ENSURE( evt.PropertyName == OUString("INT16"), "PropertySetHelper: wrong name" );
+                    OSL_ENSURE( evt.PropertyName == "INT16", "PropertySetHelper: wrong name" );
 
                     sal_Int16 nInt16(0), nOldInt16(0);
                     pExceptedListenerValues[nCurrent]   >>= nInt16;
@@ -611,7 +611,7 @@ public:
 
                 case PROPERTY_INT32:
                     {
-                    OSL_ENSURE( evt.PropertyName == OUString("INT32"), "PropertySetHelper: wrong name" );
+                    OSL_ENSURE( evt.PropertyName == "INT32", "PropertySetHelper: wrong name" );
 
 
                     sal_Int32 nInt32(0),nOldInt32(0);
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx
index 12f65f4..9be127b 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -355,8 +355,8 @@ Reference< XNameAccess > CuiAboutConfigTabPage::getConfigAccess( OUString sNodeP
     uno::Reference< lang::XMultiServiceFactory > xConfigProvider(
                 com::sun::star::configuration::theDefaultProvider::get( xContext  ) );
 
-    if( sNodePath == OUString("") )
-        sNodePath = OUString("/");
+    if( sNodePath == "" )
+        sNodePath = "/";
     beans::NamedValue aProperty;
     aProperty.Name = "nodepath";
     aProperty.Value = uno::makeAny( sNodePath );
@@ -472,24 +472,24 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
     OUString sDialogValue;
     OUString sNewValue;
 
-    if( sPropertyType == OUString( "boolean" ) )
+    if( sPropertyType == "boolean" )
     {
         bool bValue;
-        if( sPropertyValue == OUString("true") )
+        if( sPropertyValue == "true" )
         {
-            sDialogValue = OUString("false");
+            sDialogValue = "false";
             bValue = false;
         }
         else
         {
-            sDialogValue = OUString("true");
+            sDialogValue = "true";
             bValue = true;
         }
 
         pProperty->Value = uno::makeAny( bValue );
         bOpenDialog = false;
     }
-    else if ( sPropertyType == OUString( "void" ) )
+    else if ( sPropertyType == "void" )
     {
         bOpenDialog = false;
     }
@@ -505,11 +505,11 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
         {
             //Cosmetic length limit for integer values.
             int limit=0;
-            if( sPropertyType == OUString("short") )
+            if( sPropertyType == "short" )
                 limit = SHORT_LEN_LIMIT;
-            else if( sPropertyType == OUString("long") )
+            else if( sPropertyType == "long" )
                 limit = LONG_LEN_LIMIT;
-            else if( sPropertyType == OUString("hyper") )
+            else if( sPropertyType == "hyper" )
                 limit = HYPER_LEN_LIMIT;
 
             CuiAboutConfigValueDialog* pValueDialog = new CuiAboutConfigValueDialog(0, sDialogValue, limit);
@@ -518,7 +518,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
             if( ret == RET_OK )
             {
                 sNewValue = pValueDialog->getValue();
-                if ( sPropertyType == OUString("short"))
+                if ( sPropertyType == "short")
                 {
                     sal_Int16 nShort;
                     sal_Int32 nNumb = sNewValue.toInt32();
@@ -531,7 +531,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
                     pProperty->Value = uno::makeAny( nShort );
                 }
                 else
-                    if( sPropertyType == OUString("long"))
+                    if( sPropertyType == "long" )
                     {
                         sal_Int32 nLong = sNewValue.toInt32();
                         if( !( nLong==0 && sNewValue.getLength()!=1 ) && nLong < SAL_MAX_INT32 && nLong > SAL_MIN_INT32)
@@ -539,7 +539,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
                         else
                             throw uno::Exception();
                     }
-                    else if( sPropertyType == OUString("hyper"))
+                    else if( sPropertyType == "hyper")
                     {
                         sal_Int64 nHyper = sNewValue.toInt64();
                         if( !( nHyper==0 && sNewValue.getLength()!=1 ) && nHyper < SAL_MAX_INT32 && nHyper > SAL_MIN_INT32)
@@ -547,7 +547,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
                         else
                             throw uno::Exception();
                     }
-                    else if( sPropertyType == OUString("double"))
+                    else if( sPropertyType == "double")
                     {
                         double nDoub = sNewValue.toDouble();
                         if( !( nDoub ==0 && sNewValue.getLength()!=1 ) && nDoub < SAL_MAX_INT32 && nDoub > SAL_MIN_INT32)
@@ -555,7 +555,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
                         else
                             throw uno::Exception();
                     }
-                    else if( sPropertyType == OUString("float"))
+                    else if( sPropertyType == "float")
                     {
                         float nFloat = sNewValue.toFloat();
                         if( !( nFloat ==0 && sNewValue.getLength()!=1 ) && nFloat < SAL_MAX_INT32 && nFloat > SAL_MIN_INT32)
@@ -567,7 +567,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
                     {
                         pProperty->Value = uno::makeAny( sNewValue );
                     }
-                    else if( sPropertyType == OUString("[]short") )
+                    else if( sPropertyType == "[]short" )
                     {
                         //create string sequence from comma seperated string
                         //uno::Sequence< OUString > seqStr;
@@ -583,7 +583,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
                         }
                         pProperty->Value = uno::makeAny( seqShort );
                     }
-                    else if( sPropertyType == OUString("[]long") )
+                    else if( sPropertyType == "[]long" )
                     {
                         std::vector< OUString > seqStrLong;
                         seqStrLong = commaStringToSequence( sNewValue );
@@ -595,7 +595,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
                         }
                         pProperty->Value = uno::makeAny( seqLong );
                     }
-                    else if( sPropertyType == OUString("[]hyper") )
+                    else if( sPropertyType == "[]hyper" )
                     {
                         std::vector< OUString > seqStrHyper;
                         seqStrHyper = commaStringToSequence( sNewValue );
@@ -606,7 +606,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
                         }
                         pProperty->Value = uno::makeAny( seqHyper );
                     }
-                    else if( sPropertyType == OUString("[]double") )
+                    else if( sPropertyType == "[]double" )
                     {
                         std::vector< OUString > seqStrDoub;
                         seqStrDoub = commaStringToSequence( sNewValue );
@@ -617,7 +617,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
                         }
                         pProperty->Value = uno::makeAny( seqDoub );
                     }
-                    else if( sPropertyType == OUString("[]float") )
+                    else if( sPropertyType == "[]float" )
                     {
                         std::vector< OUString > seqStrFloat;
                         seqStrFloat = commaStringToSequence( sNewValue );
@@ -628,7 +628,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
                         }
                         pProperty->Value = uno::makeAny( seqFloat );
                     }
-                    else if( sPropertyType == OUString("[]string"))
+                    else if( sPropertyType == "[]string" )
                     {
                         pProperty->Value = uno::makeAny( comphelper::containerToSequence( commaStringToSequence( sNewValue )));
                     }
diff --git a/dbaccess/source/core/api/viewcontainer.cxx b/dbaccess/source/core/api/viewcontainer.cxx
index 9e66780..23af3b0 100644
--- a/dbaccess/source/core/api/viewcontainer.cxx
+++ b/dbaccess/source/core/api/viewcontainer.cxx
@@ -217,7 +217,7 @@ void SAL_CALL OViewContainer::elementInserted( const ContainerEvent& Event ) thr
         Reference<XPropertySet> xProp(Event.Element,UNO_QUERY);
         OUString sType;
         xProp->getPropertyValue(PROPERTY_TYPE) >>= sType;
-        if ( sType == OUString("VIEW") )
+        if ( sType == "VIEW" )
             insertElement(sName,createObject(sName));
     }
 }
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx
index 8543942..31d990b 100644
--- a/dbaccess/source/ui/browser/sbagrid.cxx
+++ b/dbaccess/source/ui/browser/sbagrid.cxx
@@ -446,17 +446,17 @@ void SAL_CALL SbaXGridPeer::dispatch(const URL& aURL, const Sequence< PropertyVa
     const PropertyValue* pArgs = aArgs.getConstArray();
     for (sal_uInt16 i=0; i<aArgs.getLength(); ++i, ++pArgs)
     {
-        if (pArgs->Name == OUString("ColumnViewPos"))
+        if (pArgs->Name == "ColumnViewPos")
         {
             nColId = pGrid->GetColumnIdFromViewPos(::comphelper::getINT16(pArgs->Value));
             break;
         }
-        if (pArgs->Name == OUString("ColumnModelPos"))
+        if (pArgs->Name == "ColumnModelPos")
         {
             nColId = pGrid->GetColumnIdFromModelPos(::comphelper::getINT16(pArgs->Value));
             break;
         }
-        if (pArgs->Name == OUString("ColumnId"))
+        if (pArgs->Name == "ColumnId")
         {
             nColId = ::comphelper::getINT16(pArgs->Value);
             break;
diff --git a/dbaccess/source/ui/relationdesign/RTableConnectionData.cxx b/dbaccess/source/ui/relationdesign/RTableConnectionData.cxx
index 7095006..fce8d4a 100644
--- a/dbaccess/source/ui/relationdesign/RTableConnectionData.cxx
+++ b/dbaccess/source/ui/relationdesign/RTableConnectionData.cxx
@@ -341,7 +341,7 @@ xKey.clear();
             xKey->getPropertyValue(PROPERTY_TYPE) >>= nType;
             OUString sReferencedTable;
             xKey->getPropertyValue(PROPERTY_REFERENCEDTABLE) >>= sReferencedTable;
-            if ( sReferencedTable == OUString(getReferencedTable()->GetTableName()) )
+            if ( sReferencedTable == getReferencedTable()->GetTableName() )
             {
                 xColSup.set(xKey,UNO_QUERY_THROW);
                 try
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx
index 218692c..0e6822d 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx
@@ -348,7 +348,7 @@ CellController* OTableEditorCtrl::GetController(long nRow, sal_uInt16 nColumnId)
     Reference<XPropertySet> xTable = GetView()->getController().getTable();
     if (IsReadOnly() || (   xTable.is() &&
                             xTable->getPropertySetInfo()->hasPropertyByName(PROPERTY_TYPE) &&
-                            ::comphelper::getString(xTable->getPropertyValue(PROPERTY_TYPE)) == OUString("VIEW")))
+                            ::comphelper::getString(xTable->getPropertyValue(PROPERTY_TYPE)) == "VIEW"))
         return NULL;
 
     // If the row is ReadOnly, editing is forbidden
diff --git a/dbaccess/source/ui/tabledesign/TableFieldControl.cxx b/dbaccess/source/ui/tabledesign/TableFieldControl.cxx
index e7aa7aa..86726ba 100644
--- a/dbaccess/source/ui/tabledesign/TableFieldControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TableFieldControl.cxx
@@ -58,7 +58,7 @@ sal_Bool OTableFieldControl::IsReadOnly()
     {
         // The columns of a ::com::sun::star::sdbcx::View could not be locked
         Reference<XPropertySet> xTable = GetCtrl()->GetView()->getController().getTable();
-        if(xTable.is() && ::comphelper::getString(xTable->getPropertyValue(PROPERTY_TYPE)) == OUString("VIEW"))
+        if(xTable.is() && ::comphelper::getString(xTable->getPropertyValue(PROPERTY_TYPE)) == "VIEW")
             bRead = sal_True;
         else
         {
diff --git a/dtrans/source/cnttype/mcnttype.cxx b/dtrans/source/cnttype/mcnttype.cxx
index 1293701..89eea11 100644
--- a/dtrans/source/cnttype/mcnttype.cxx
+++ b/dtrans/source/cnttype/mcnttype.cxx
@@ -246,13 +246,13 @@ void SAL_CALL CMimeContentType::trailer( void )
     OUString sToken(TOKEN);
     while( !m_nxtSym.isEmpty( ) )
     {
-        if ( m_nxtSym == OUString("(") )
+        if ( m_nxtSym == "(" )
         {
             getSym( );
             comment( );
             acceptSym( OUString(")") );
         }
-        else if ( m_nxtSym == OUString(";") )
+        else if ( m_nxtSym == ";" )
         {
             // get the parameter name
             getSym( );
@@ -315,7 +315,7 @@ OUString SAL_CALL CMimeContentType::pValue( )
 
     OUString sToken(TOKEN);
     // quoted pvalue
-    if ( m_nxtSym == OUString( "\"" ) )
+    if ( m_nxtSym == "\"" )
     {
         getSym( );
         pvalue = quotedPValue( );
@@ -362,7 +362,7 @@ OUString SAL_CALL CMimeContentType::quotedPValue( )
         else if ( isInRange( m_nxtSym, OUString(TOKEN) + OUString(TSPECIALS) + OUString(SPACE) ) )
         {
             pvalue += m_nxtSym;
-            if ( m_nxtSym == OUString( "\"" ) )
+            if ( m_nxtSym == "\"" )
                 bAfterQuoteSign = sal_True;
             else
                 bAfterQuoteSign = sal_False;
@@ -408,7 +408,7 @@ void SAL_CALL CMimeContentType::comment( void )
     {
         if ( isInRange( m_nxtSym, OUString(TOKEN) + OUString(SPACE) ) )
             getSym( );
-        else if ( m_nxtSym == OUString(")") )
+        else if ( m_nxtSym == ")" )
             break;
         else
             throw IllegalArgumentException( );
diff --git a/dtrans/source/test/test_dtrans.cxx b/dtrans/source/test/test_dtrans.cxx
index b0226c8..e0bdf95 100644
--- a/dtrans/source/test/test_dtrans.cxx
+++ b/dtrans/source/test/test_dtrans.cxx
@@ -434,7 +434,7 @@ int SAL_CALL main( int argc, const char* argv[] )
         TEST( "initial number of clipboards (0): ", xClipboardManager->listClipboardNames().getLength() == 0 );
         PERFORM( "insertion of generic clipboard: ", xClipboardManager->addClipboard( xClipboard ) );
         TEST( "number of inserted clipboards (1): ", xClipboardManager->listClipboardNames().getLength() == 1 );
-        TEST( "name of inserted clipboard (generic): ", xClipboardManager->listClipboardNames()[0] == OUString("generic") );
+        TEST( "name of inserted clipboard (generic): ", xClipboardManager->listClipboardNames()[0] == "generic" );
         TEST( "inserted clipboard instance: ", xClipboardManager->getClipboard( OUString("generic") ) == xClipboard );
         PERFORM( "removal of generic clipboard: ", xClipboardManager->removeClipboard( OUString("generic") ) );
         TEST( "number of inserted clipboards (0): ", xClipboardManager->listClipboardNames().getLength() == 0 );
diff --git a/extensions/qa/update/test_update.cxx b/extensions/qa/update/test_update.cxx
index 4e65776..2fbbfef 100644
--- a/extensions/qa/update/test_update.cxx
+++ b/extensions/qa/update/test_update.cxx
@@ -65,7 +65,7 @@ protected:
         deployment::UpdateInformationEntry aEntry;
         if ( aUpdateInfoEnumeration->nextElement() >>= aEntry )
         {
-            CPPUNIT_ASSERT( aEntry.UpdateDocument->getNodeName() == OUString( "description" ) );
+            CPPUNIT_ASSERT( aEntry.UpdateDocument->getNodeName() == "description" );
 
             uno::Reference< dom::XNodeList> xChildNodes = aEntry.UpdateDocument->getChildNodes();
             CPPUNIT_ASSERT( xChildNodes.is() );
@@ -85,7 +85,7 @@ protected:
 
             //uno::Reference< dom::XElement > xChildId( xChildNodes->item( 0 ), uno::UNO_QUERY );
             //CPPUNIT_ASSERT( xChildId.is() );
-            //CPPUNIT_ASSERT( xChildId->getNodeValue() == OUString( "LibreOffice_3.4" ) );
+            //CPPUNIT_ASSERT( xChildId->getNodeValue() == "LibreOffice_3.4" );
             //fprintf( stderr, "Attribute == %s\n", OUStringToOString( aEntry.UpdateDocument->getAttribute( OUString( "test" ) ), RTL_TEXTENCODING_UTF8 ).getStr() );
             //fprintf( stderr, "Value == %s\n", OUStringToOString( xChildId->getNodeValue(), RTL_TEXTENCODING_UTF8 ).getStr() );
             // TODO check more deeply
@@ -108,7 +108,7 @@ protected:
                     OUString( "InstallSetID" ) ) )
         {
             CPPUNIT_ASSERT( aInfo.Sources.size() == 1 );
-            CPPUNIT_ASSERT( aInfo.Sources[0].URL == OUString( "http://www.libreoffice.org/download/" ) );
+            CPPUNIT_ASSERT( aInfo.Sources[0].URL == "http://www.libreoffice.org/download/" );
         }
         else
             CPPUNIT_FAIL( "Calling checkForUpdates() failed." );
diff --git a/framework/source/fwe/classes/addonmenu.cxx b/framework/source/fwe/classes/addonmenu.cxx
index ab8e400..3fb7b8a 100644
--- a/framework/source/fwe/classes/addonmenu.cxx
+++ b/framework/source/fwe/classes/addonmenu.cxx
@@ -298,7 +298,7 @@ void AddonMenuManager::BuildMenu( PopupMenu*                            pCurrent
         if ( !IsCorrectContext( rModel, aContext ) || ( aTitle.isEmpty() && aURL.isEmpty() ))
             continue;
 
-        if ( aURL == OUString( "private:separator" ))
+        if ( aURL == "private:separator" )
             bInsertSeparator = sal_True;
         else
         {
diff --git a/framework/source/fwe/classes/bmkmenu.cxx b/framework/source/fwe/classes/bmkmenu.cxx
index b15c9f4..78b0298 100644
--- a/framework/source/fwe/classes/bmkmenu.cxx
+++ b/framework/source/fwe/classes/bmkmenu.cxx
@@ -134,7 +134,7 @@ void BmkMenu::Initialize()
         if ( aTitle.isEmpty() && aURL.isEmpty() )
             continue;
 
-        if ( aURL == OUString( "private:separator" ))
+        if ( aURL == "private:separator" )
             InsertSeparator();
         else
         {
diff --git a/framework/source/uielement/menubarmerger.cxx b/framework/source/uielement/menubarmerger.cxx
index 7417074..b814e77 100644
--- a/framework/source/uielement/menubarmerger.cxx
+++ b/framework/source/uielement/menubarmerger.cxx
@@ -149,7 +149,7 @@ sal_uInt16 MenuBarMerger::FindMenuItem( const OUString& rCmd, Menu* pCurrMenu )
         const sal_uInt16 nItemId = pCurrMenu->GetItemId( i );
         if ( nItemId > 0 )
         {
-            if ( rCmd == OUString( pCurrMenu->GetItemCommand( nItemId )))
+            if ( rCmd == pCurrMenu->GetItemCommand( nItemId ) )
                 return i;
         }
     }
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx
index 8741366..db55210 100644
--- a/framework/source/uielement/toolbarmanager.cxx
+++ b/framework/source/uielement/toolbarmanager.cxx
@@ -1037,10 +1037,10 @@ void ToolBarManager::CreateControllers()
 
                 if (pController)
                 {
-                    if(aCommandURL == OUString( ".uno:SwitchXFormsDesignMode" ) ||
-                       aCommandURL == OUString( ".uno:ViewDataSourceBrowser" ) ||
-                       aCommandURL == OUString( ".uno:ParaLeftToRight" ) ||
-                       aCommandURL == OUString( ".uno:ParaRightToLeft" )
+                    if(aCommandURL == ".uno:SwitchXFormsDesignMode" ||
+                       aCommandURL == ".uno:ViewDataSourceBrowser" ||
+                       aCommandURL == ".uno:ParaLeftToRight" ||
+                       aCommandURL == ".uno:ParaRightToLeft"
                        )
                         pController->setFastPropertyValue_NoBroadcast(1,makeAny(sal_True));
                 }
diff --git a/io/test/stm/datatest.cxx b/io/test/stm/datatest.cxx
index d7063de..3e80f09 100644
--- a/io/test/stm/datatest.cxx
+++ b/io/test/stm/datatest.cxx
@@ -276,7 +276,7 @@ void ODataStreamTest::testSimple(   const Reference < XDataInputStream > &rInput
     ERROR_ASSERT( rInput->readHyper() == 0x123456789abcdefLL , "int64 read/write mismatch" );
 
     rOutput->writeUTF( OUString("Live long and prosper !") );
-    ERROR_ASSERT( rInput->readUTF() == OUString("Live long and prosper !") ,
+    ERROR_ASSERT( rInput->readUTF() == "Live long and prosper !",
                     "UTF read/write mismatch" );
 
     Sequence<sal_Unicode> wc(0x10001);
diff --git a/reportdesign/source/filter/xml/xmlGroup.cxx b/reportdesign/source/filter/xml/xmlGroup.cxx
index 6fc2f92..602caf9 100644
--- a/reportdesign/source/filter/xml/xmlGroup.cxx
+++ b/reportdesign/source/filter/xml/xmlGroup.cxx
@@ -125,7 +125,7 @@ OXMLGroup::OXMLGroup( ORptFilter& _rImport
                                 const OUString sFormula = sCompleteFormula.getToken(0,'(',nIndex);
                                 ::sal_Int16 nGroupOn = report::GroupOn::DEFAULT;
 
-                                if ( sFormula ==OUString("rpt:LEFT"))
+                                if ( sFormula == "rpt:LEFT")
                                 {
                                     nGroupOn = report::GroupOn::PREFIX_CHARACTERS;
                                     OUString sInterval = sCompleteFormula.getToken(1,';',nIndex);
@@ -133,26 +133,26 @@ OXMLGroup::OXMLGroup( ORptFilter& _rImport
                                     sInterval = sInterval.getToken(0,')',nIndex);
                                     m_xGroup->setGroupInterval(sInterval.toInt32());
                                 }
-                                else if ( sFormula == OUString("rpt:YEAR"))
+                                else if ( sFormula == "rpt:YEAR")
                                     nGroupOn = report::GroupOn::YEAR;
-                                else if ( sFormula == OUString("rpt:MONTH"))
+                                else if ( sFormula == "rpt:MONTH")
                                 {
                                     nGroupOn = report::GroupOn::MONTH;
                                 }
-                                else if ( sCompleteFormula.matchIgnoreAsciiCase(OUString("rpt:INT((MONTH"),0)
+                                else if ( sCompleteFormula.matchIgnoreAsciiCase("rpt:INT((MONTH",0)
                                        && sCompleteFormula.endsWithIgnoreAsciiCaseAsciiL("-1)/3)+1",8) )
                                 {
                                     nGroupOn = report::GroupOn::QUARTAL;
                                 }
-                                else if ( sFormula ==OUString("rpt:WEEK"))
+                                else if ( sFormula == "rpt:WEEK")
                                     nGroupOn = report::GroupOn::WEEK;
-                                else if ( sFormula ==OUString("rpt:DAY"))
+                                else if ( sFormula == "rpt:DAY")
                                     nGroupOn = report::GroupOn::DAY;
-                                else if ( sFormula ==OUString("rpt:HOUR"))
+                                else if ( sFormula == "rpt:HOUR")
                                     nGroupOn = report::GroupOn::HOUR;
-                                else if ( sFormula ==OUString("rpt:MINUTE"))
+                                else if ( sFormula == "rpt:MINUTE")
                                     nGroupOn = report::GroupOn::MINUTE;
-                                else if ( sFormula ==OUString("rpt:INT"))
+                                else if ( sFormula == "rpt:INT")
                                 {
                                     nGroupOn = report::GroupOn::INTERVAL;
                                     _rImport.removeFunction(sExpression);
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx
index 45cd1b2..ce5f4b4 100644
--- a/sc/qa/unit/filters-test.cxx
+++ b/sc/qa/unit/filters-test.cxx
@@ -250,9 +250,9 @@ void testContentImpl(ScDocument* pDoc, sal_Int32 nFormat ) //same code for ods,
     OUString aString = pDoc->GetString(1, 0, 0);
 
     //check string import
-    CPPUNIT_ASSERT_MESSAGE("string imported not correctly", aString == OUString("String1"));
+    CPPUNIT_ASSERT_MESSAGE("string imported not correctly", aString == "String1");
     aString = pDoc->GetString(1, 1, 0);
-    CPPUNIT_ASSERT_MESSAGE("string not imported correctly", aString == OUString("String2"));
+    CPPUNIT_ASSERT_MESSAGE("string not imported correctly", aString == "String2");
 
     //check basic formula import
     // in case of DIF it just contains values
diff --git a/sc/source/filter/excel/xename.cxx b/sc/source/filter/excel/xename.cxx
index 7dccf6f..b645d58 100644
--- a/sc/source/filter/excel/xename.cxx
+++ b/sc/source/filter/excel/xename.cxx
@@ -492,7 +492,7 @@ sal_uInt16 XclExpNameManagerImpl::FindBuiltInNameIdx(
 {
     /*  Get built-in index from the name. Special case: the database range
         'unnamed' will be mapped to Excel's built-in '_FilterDatabase' name. */
-    sal_Unicode cBuiltIn = (bDBRange && (rName == OUString(STR_DB_LOCAL_NONAME))) ?
+    sal_Unicode cBuiltIn = (bDBRange && (rName == STR_DB_LOCAL_NONAME)) ?
         EXC_BUILTIN_FILTERDATABASE : XclTools::GetBuiltInDefNameIndex( rName );
 
     if( cBuiltIn < EXC_BUILTIN_UNKNOWN )
diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx
index 66e7ba5..676352a 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -2373,7 +2373,7 @@ void ScExternalRefManager::convertToAbsName(OUString& rFile) const
     ScDocShell* pShell = static_cast<ScDocShell*>(SfxObjectShell::GetFirst(&aType, false));
     while (pShell)
     {
-        if (rFile == OUString(pShell->GetName()))
+        if (rFile == pShell->GetName())
             return;
 
         pShell = static_cast<ScDocShell*>(SfxObjectShell::GetNext(*pShell, &aType, false));
diff --git a/sc/source/ui/miscdlgs/mvtabdlg.cxx b/sc/source/ui/miscdlgs/mvtabdlg.cxx
index 3c7dc43..7c169ba 100644
--- a/sc/source/ui/miscdlgs/mvtabdlg.cxx
+++ b/sc/source/ui/miscdlgs/mvtabdlg.cxx
@@ -301,7 +301,7 @@ IMPL_LINK_NOARG(ScMoveTableDlg, OkHdl)
         ScDocument* pDoc = GetSelectedDoc();
         if (pDoc)
             pDoc->CreateValidTabName(aCopyName);
-        if (aCopyName == OUString(pEdTabName->GetText()))
+        if (aCopyName == pEdTabName->GetText())
             pEdTabName->SetText( OUString() );
     }
     else
diff --git a/sc/source/ui/namedlg/namemgrtable.cxx b/sc/source/ui/namedlg/namemgrtable.cxx
index c3df2e1..e8f831e 100644
--- a/sc/source/ui/namedlg/namemgrtable.cxx
+++ b/sc/source/ui/namedlg/namemgrtable.cxx
@@ -215,8 +215,8 @@ void ScRangeManagerTable::SetEntry(const ScRangeNameLine& rLine)
 {
     for (SvTreeListEntry* pEntry = First(); pEntry; pEntry = Next(pEntry))
     {
-        if (rLine.aName == OUString(GetEntryText(pEntry, 0))
-                && rLine.aScope == OUString(GetEntryText(pEntry, 2)))
+        if (rLine.aName == GetEntryText(pEntry, 0)
+                && rLine.aScope == GetEntryText(pEntry, 2))
         {
             SetCurEntry(pEntry);
         }
diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx
index 4bb09ab..f4fce0f 100644
--- a/sc/source/ui/undo/undotab.cxx
+++ b/sc/source/ui/undo/undotab.cxx
@@ -1052,7 +1052,7 @@ ScUndoRemoveLink::ScUndoRemoveLink( ScDocShell* pShell, const OUString& rDoc ) :
     {
         sal_uInt8 nMode = pDoc->GetLinkMode(i);
         if (nMode)
-            if (pDoc->GetLinkDoc(i) == OUString(aDocName))
+            if (pDoc->GetLinkDoc(i) == aDocName)
             {
                 if (!nCount)
                 {
diff --git a/sc/source/ui/unoobj/linkuno.cxx b/sc/source/ui/unoobj/linkuno.cxx
index 98ce458..2d19a46 100644
--- a/sc/source/ui/unoobj/linkuno.cxx
+++ b/sc/source/ui/unoobj/linkuno.cxx
@@ -295,7 +295,7 @@ void ScSheetLinkObj::setFileName(const OUString& rNewName)
         ScDocument* pDoc = pDocShell->GetDocument();
         SCTAB nTabCount = pDoc->GetTableCount();
         for (SCTAB nTab=0; nTab<nTabCount; nTab++)
-            if ( pDoc->IsLinked(nTab) && pDoc->GetLinkDoc(nTab) == OUString(aFileName) )  // alte Datei
+            if ( pDoc->IsLinked(nTab) && pDoc->GetLinkDoc(nTab) == aFileName )  // alte Datei
                 pDoc->SetLink( nTab, pDoc->GetLinkMode(nTab), aNewStr,
                                 pDoc->GetLinkFlt(nTab), pDoc->GetLinkOpt(nTab),
                                 pDoc->GetLinkTab(nTab),
diff --git a/sd/source/ui/dlg/custsdlg.cxx b/sd/source/ui/dlg/custsdlg.cxx
index 1878f5d..106a0ef 100644
--- a/sd/source/ui/dlg/custsdlg.cxx
+++ b/sd/source/ui/dlg/custsdlg.cxx
@@ -208,7 +208,7 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p )
                      pCustomShow != NULL && bDifferent;
                      pCustomShow = (SdCustomShow*) pCustomShowList->Next() )
                 {
-                    if( aStr == OUString( pCustomShow->GetName() ) )
+                    if( aStr == pCustomShow->GetName() )
                         bDifferent = sal_False;
                 }
                 if( !bDifferent )
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx
index 23f016a..3cdc5b0 100644
--- a/sfx2/source/appl/lnkbase2.cxx
+++ b/sfx2/source/appl/lnkbase2.cxx
@@ -361,7 +361,7 @@ void SvBaseLink::_GetRealObject( sal_Bool bConnect)
     {
         OUString sServer;
         if( pImpl->m_pLinkMgr->GetDisplayNames( this, &sServer ) &&
-            sServer == OUString(GetpApp()->GetAppName()) )  // internal Link !!!
+            sServer == GetpApp()->GetAppName() )  // internal Link !!!
         {
             // so that the Internal link can be created!
             nObjType = OBJECT_INTERN;
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index b970622..ad869f5 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -1411,7 +1411,7 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags)
             size_t nCount = aStrings.size();
             size_t nPos = 0;
             while(nPos < nCount && pEntry &&
-                  aStrings[nPos] == OUString(aFmtLb.GetEntryText(pEntry)))
+                  aStrings[nPos] == aFmtLb.GetEntryText(pEntry))
             {
                 ++nPos;
                 pEntry = aFmtLb.Next( pEntry );
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 1ed9433..11a81a0 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -3063,7 +3063,7 @@ sal_Bool SfxObjectShell::SaveAsOwnFormat( SfxMedium& rMedium )
 
         const SfxFilter* pFilter = rMedium.GetFilter();
         bool bChart = false;
-        if(pFilter->GetName() == OUString("chart8"))
+        if(pFilter->GetName() == "chart8")
             bChart = true;
 
         SetupStorage( xStorage, nVersion, bTemplate, bChart );
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx
index 9765eb3..32a9f6f 100644
--- a/sot/source/base/exchange.cxx
+++ b/sot/source/base/exchange.cxx
@@ -252,7 +252,7 @@ sal_uLong SotExchange::RegisterFormatName( const OUString& rName )
     for( i = 0, nMax = rL.size(); i < nMax; i++ )
     {
         DataFlavor* pFlavor = rL[ i ];
-        if( pFlavor && rName == OUString( pFlavor->HumanPresentableName ) )
+        if( pFlavor && rName == pFlavor->HumanPresentableName )
             return i + SOT_FORMATSTR_ID_USER_END + 1;
     }
 
@@ -287,7 +287,7 @@ sal_uLong SotExchange::RegisterFormatMimeType( const OUString& rMimeType )
     for( i = 0, nMax = rL.size(); i < nMax; i++ )
     {
         DataFlavor* pFlavor = rL[ i ];
-        if( pFlavor && rMimeType == OUString( pFlavor->MimeType ) )
+        if( pFlavor && rMimeType == pFlavor->MimeType )
             return i + SOT_FORMATSTR_ID_USER_END + 1;
     }
 
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index d8c93ef..b1158c9 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -1991,7 +1991,7 @@ sal_uInt8 MathType::HandleNodes(SmNode *pNode,int nLevel)
             SmTextNode *pText=(SmTextNode *)pNode;
             //if the token str and the result text are the same then this
             //is to be seen as text, else assume it's a mathchar
-            if (pText->GetText() == OUString(pText->GetToken().aText))
+            if (pText->GetText() == pText->GetToken().aText)
                 HandleText(pText,nLevel);
             else
                 HandleMath(pText,nLevel);
diff --git a/starmath/source/wordexportbase.cxx b/starmath/source/wordexportbase.cxx
index 828c18b..0606124 100644
--- a/starmath/source/wordexportbase.cxx
+++ b/starmath/source/wordexportbase.cxx
@@ -58,7 +58,7 @@ void SmWordExportBase::HandleNode( const SmNode* pNode, int nLevel )
             const SmTextNode* pText= static_cast< const SmTextNode* >( pNode );
             //if the token str and the result text are the same then this
             //is to be seen as text, else assume it's a mathchar
-            if (pText->GetText() == OUString(pText->GetToken().aText))
+            if (pText->GetText() == pText->GetToken().aText)
                 HandleText(pText,nLevel);
             else
                 HandleMath(pText,nLevel);
diff --git a/stoc/test/testcorefl.cxx b/stoc/test/testcorefl.cxx
index e0e0435..bfe792d 100644
--- a/stoc/test/testcorefl.cxx
+++ b/stoc/test/testcorefl.cxx
@@ -86,7 +86,7 @@ static sal_Bool test_corefl( const Reference< XIdlReflection > & xRefl )
     Reference< XHierarchicalNameAccess > xHNameAccess( xRefl, UNO_QUERY );
     OSL_ENSURE(xHNameAccess.is(), "### cannot get XHierarchicalNameAccess!" );
 
-    OSL_ENSURE(xRefl->forName("ModuleA.StructA")->getName() == OUString("ModuleA.StructA"), "test_RegCoreReflection(): error 2b");
+    OSL_ENSURE(xRefl->forName("ModuleA.StructA")->getName() == "ModuleA.StructA", "test_RegCoreReflection(): error 2b");
     OSL_ENSURE(xRefl->forName("ModuleA.ExceptionB")->getTypeClass() == TypeClass_EXCEPTION, "test_RegCoreReflection(): error 2c");
     OSL_ENSURE(xRefl->forName("ModuleA.ModuleB.EnumA").is(), "test_RegCoreReflection(): error 2e");
 
@@ -108,11 +108,11 @@ static sal_Bool test_corefl( const Reference< XIdlReflection > & xRefl )
 
     OSL_ENSURE(
         (fields.getLength() == 3) &&
-        (fields.getArray()[0]->getName() == OUString( "VAL_1" )) &&
+        (fields.getArray()[0]->getName() == "VAL_1" ) &&
         (*(EnumA*)fields.getArray()[0]->get(Any()).getValue() == EnumA_VAL_1) &&
-        (fields.getArray()[1]->getName() == OUString( "VAL_2" )) &&
+        (fields.getArray()[1]->getName() == "VAL_2" ) &&
         (*(EnumA*)fields.getArray()[1]->get(Any()).getValue() == EnumA_VAL_2) &&
-        (fields.getArray()[2]->getName() == OUString( "VAL_3" )) &&
+        (fields.getArray()[2]->getName() == "VAL_3" ) &&
         (*(EnumA*)fields.getArray()[2]->get(Any()).getValue() == EnumA_VAL_3),
         "test_RegCoreReflection(): error 6");
 
@@ -137,59 +137,59 @@ static sal_Bool test_corefl( const Reference< XIdlReflection > & xRefl )
     typelib_typedescription_release( pTD );
 
     OSL_ENSURE(xClass->getSuperclasses().getLength() == 1, "test_RegCoreReflection(): error 9");
-    OSL_ENSURE(xClass->getSuperclasses().getArray()[0]->getName() == OUString("ModuleC.XInterfaceA"), "test_RegCoreReflection(): error 10");
+    OSL_ENSURE(xClass->getSuperclasses().getArray()[0]->getName() == "ModuleC.XInterfaceA"), "test_RegCoreReflection(): error 10";
     OSL_ENSURE(xClass->getMethods().getLength() == 7, "test_RegCoreReflection(): error 11");
     OSL_ENSURE(xA->getMethods().getLength() == 7, "test_RegCoreReflection(): error 11a");
-    OSL_ENSURE(xClass->getMethods().getArray()[3]->getName() == OUString("methodA"), "test_RegCoreReflection(): 12");
+    OSL_ENSURE(xClass->getMethods().getArray()[3]->getName() == "methodA"), "test_RegCoreReflection(): 12";
     OSL_ENSURE(xClass->getMethods().getArray()[3]->getReturnType()->getTypeClass() == TypeClass_VOID, "test_RegCoreReflection(): error 13");
     OSL_ENSURE(xClass->getMethods().getArray()[3]->getParameterTypes().getLength() == 0, "test_RegCoreReflection(): error 14");
     OSL_ENSURE(xClass->getMethods().getArray()[3]->getExceptionTypes().getLength() == 0, "test_RegCoreReflection(): error 15");
-    OSL_ENSURE(xClass->getMethods().getArray()[4]->getName() == OUString( "methodB" ), "test_RegCoreReflection(): error 16");
+    OSL_ENSURE(xClass->getMethods().getArray()[4]->getName() == "methodB", "test_RegCoreReflection(): error 16");
     OSL_ENSURE(xClass->getMethods().getArray()[4]->getMode() == MethodMode_ONEWAY, "test_RegCoreReflection(): error 16a");
     OSL_ENSURE(xClass->getMethods().getArray()[4]->getReturnType()->getTypeClass() == TypeClass_VOID, "test_RegCoreReflection(): error 16");
     OSL_ENSURE(xClass->getMethods().getArray()[4]->getParameterTypes().getLength() == 1, "test_RegCoreReflection(): error 17");
     OSL_ENSURE(xClass->getMethods().getArray()[4]->getParameterTypes().getArray()[0]->getTypeClass() == TypeClass_SHORT, "test_RegCoreReflection(): error 18");
-    OSL_ENSURE(xClass->getMethods().getArray()[4]->getParameterInfos().getArray()[0].aName == OUString( "aShort" ), "test_RegCoreReflection(): error 18a");
+    OSL_ENSURE(xClass->getMethods().getArray()[4]->getParameterInfos().getArray()[0].aName == "aShort", "test_RegCoreReflection(): error 18a");
     OSL_ENSURE(xClass->getMethods().getArray()[4]->getParameterInfos().getArray()[0].aType == xRefl->forName("short"), "test_RegCoreReflection(): error 18b");
     OSL_ENSURE(xClass->getMethods().getArray()[4]->getParameterInfos().getArray()[0].aMode == ParamMode_IN, "test_RegCoreReflection(): error 18c");
     OSL_ENSURE(xClass->getMethods().getArray()[4]->getExceptionTypes().getLength() == 0, "test_RegCoreReflection(): error 19");
-    OSL_ENSURE(xClass->getMethods().getArray()[5]->getName() == OUString("methodC"), "test_RegCoreReflection(): error 20");
+    OSL_ENSURE(xClass->getMethods().getArray()[5]->getName() == "methodC", "test_RegCoreReflection(): error 20");
     OSL_ENSURE(xClass->getMethods().getArray()[5]->getMode() == MethodMode_TWOWAY, "test_RegCoreReflection(): error 20a");
     OSL_ENSURE(xClass->getMethods().getArray()[5]->getReturnType()->getTypeClass() == TypeClass_SEQUENCE, "test_RegCoreReflection(): error 21");
     OSL_ENSURE(xClass->getMethods().getArray()[5]->getReturnType()->getComponentType()->getTypeClass() == TypeClass_STRUCT, "test_RegCoreReflection(): error 22");
-    OSL_ENSURE(xClass->getMethods().getArray()[5]->getReturnType()->getComponentType()->getName() == OUString("ModuleA.StructB"), "test_RegCoreReflection(): error 23");
+    OSL_ENSURE(xClass->getMethods().getArray()[5]->getReturnType()->getComponentType()->getName() == "ModuleA.StructB", "test_RegCoreReflection(): error 23");
     OSL_ENSURE(xClass->getMethods().getArray()[5]->getParameterTypes().getLength() == 2, "test_RegCoreReflection(): error 24");
     OSL_ENSURE(xClass->getMethods().getArray()[5]->getParameterTypes().getArray()[0]->getTypeClass() == TypeClass_STRUCT, "test_RegCoreReflection(): error 25");
-    OSL_ENSURE(xClass->getMethods().getArray()[5]->getParameterTypes().getArray()[0]->getName() == OUString("ModuleA.StructC"), "test_RegCoreReflection(): error 26");
+    OSL_ENSURE(xClass->getMethods().getArray()[5]->getParameterTypes().getArray()[0]->getName() == "ModuleA.StructC", "test_RegCoreReflection(): error 26");
     OSL_ENSURE(xClass->getMethods().getArray()[5]->getParameterTypes().getArray()[1]->getTypeClass() == TypeClass_STRUCT, "test_RegCoreReflection(): error 27");
-    OSL_ENSURE(xClass->getMethods().getArray()[5]->getParameterTypes().getArray()[1]->getName() == OUString("ModuleA.StructA"), "test_RegCoreReflection(): error 28");
+    OSL_ENSURE(xClass->getMethods().getArray()[5]->getParameterTypes().getArray()[1]->getName() == "ModuleA.StructA", "test_RegCoreReflection(): error 28");
     OSL_ENSURE(xClass->getMethods().getArray()[5]->getExceptionTypes().getLength() == 0, "test_RegCoreReflection(): error 29");
-    OSL_ENSURE(xClass->getMethods().getArray()[6]->getName() == OUString("methodD"), "test_RegCoreReflection(): error 30");
+    OSL_ENSURE(xClass->getMethods().getArray()[6]->getName() == "methodD", "test_RegCoreReflection(): error 30");
     OSL_ENSURE(xClass->getMethods().getArray()[6]->getReturnType()->getTypeClass() == TypeClass_INTERFACE, "test_RegCoreReflection(): error 31");
-    OSL_ENSURE(xClass->getMethods().getArray()[6]->getReturnType()->getName() == OUString("ModuleC.XInterfaceA"), "test_RegCoreReflection(): error 32");
+    OSL_ENSURE(xClass->getMethods().getArray()[6]->getReturnType()->getName() == "ModuleC.XInterfaceA", "test_RegCoreReflection(): error 32");
     OSL_ENSURE(xClass->getMethods().getArray()[6]->getParameterTypes().getLength() == 1, "test_RegCoreReflection(): error 33");
     OSL_ENSURE(xClass->getMethods().getArray()[6]->getParameterTypes().getArray()[0]->getTypeClass() == TypeClass_ENUM, "test_RegCoreReflection(): error 34");
-    OSL_ENSURE(xClass->getMethods().getArray()[6]->getParameterTypes().getArray()[0]->getName() == OUString("ModuleA.ModuleB.EnumA"), "test_RegCoreReflection(): error 35");
+    OSL_ENSURE(xClass->getMethods().getArray()[6]->getParameterTypes().getArray()[0]->getName() == "ModuleA.ModuleB.EnumA", "test_RegCoreReflection(): error 35");
     OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getLength() == 3, "test_RegCoreReflection(): error 36");
     OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[0]->getTypeClass() == TypeClass_EXCEPTION, "test_RegCoreReflection(): error 37");
-    OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[0]->getName() == OUString("ModuleA.ExceptionA"), "test_RegCoreReflection(): error 38");
+    OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[0]->getName() == "ModuleA.ExceptionA", "test_RegCoreReflection(): error 38");
     OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[1]->getTypeClass() == TypeClass_EXCEPTION, "test_RegCoreReflection(): error 38");
-    OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[1]->getName() == OUString("ModuleA.ExceptionB"), "test_RegCoreReflection(): error 39");
+    OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[1]->getName() == "ModuleA.ExceptionB", "test_RegCoreReflection(): error 39");
     OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getTypeClass() == TypeClass_EXCEPTION, "test_RegCoreReflection(): error 40");
-    OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getName() == OUString("ModuleA.ExceptionC"), "test_RegCoreReflection(): error 41");
+    OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getName() == "ModuleA.ExceptionC", "test_RegCoreReflection(): error 41");
     OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getFields().getLength() == 3, "test_RegCoreReflection(): error 42");
     OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getFields().getArray()[0]->getType()->getTypeClass() == TypeClass_BOOLEAN, "test_RegCoreReflection(): error 43");
-    OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getFields().getArray()[0]->getType()->getName() == OUString("boolean"), "test_RegCoreReflection(): error 43a");
+    OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getFields().getArray()[0]->getType()->getName() == "boolean", "test_RegCoreReflection(): error 43a");
     OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getFields().getArray()[1]->getType()->getTypeClass() == TypeClass_STRUCT, "test_RegCoreReflection(): error 44");
-    OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getFields().getArray()[1]->getType()->getName() == OUString("ModuleA.StructC"), "test_RegCoreReflection(): error 45");
+    OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getFields().getArray()[1]->getType()->getName() == "ModuleA.StructC", "test_RegCoreReflection(): error 45");
     OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getFields().getArray()[2]->getType()->getTypeClass() == TypeClass_INTERFACE, "test_RegCoreReflection(): error 46");
-    OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getFields().getArray()[2]->getType()->getName() == OUString("ModuleA.XInterface1"), "test_RegCoreReflection(): error 47");
+    OSL_ENSURE(xClass->getMethods().getArray()[6]->getExceptionTypes().getArray()[2]->getFields().getArray()[2]->getType()->getName() == "ModuleA.XInterface1", "test_RegCoreReflection(): error 47");
 
     // SequenceReflections
 
     OSL_ENSURE(xRefl->forName("[]ModuleA.StructA")->getTypeClass() == TypeClass_SEQUENCE, "test_RegCoreReflection(): error 48");
     OSL_ENSURE(xRefl->forName("[]ModuleA.StructA")->getComponentType().is(), "test_RegCoreReflection(): error 49");
-    OSL_ENSURE(xRefl->forName("[][]ModuleA.StructA")->getComponentType()->getComponentType()->getName() == OUString("ModuleA.StructA"), "test_RegCoreReflection(): error 50");
+    OSL_ENSURE(xRefl->forName("[][]ModuleA.StructA")->getComponentType()->getComponentType()->getName() == "ModuleA.StructA", "test_RegCoreReflection(): error 50");
     OSL_ENSURE(xRefl->forName("[]com.sun.star.uno.XInterface") == xRefl->forName("ModuleA.StructC")->getField(OUString("aInterfaceSeq"))->getType(), "test_RegCoreReflection(): error 51");
 
     StructC aStructC;
diff --git a/stoc/test/testintrosp.cxx b/stoc/test/testintrosp.cxx
index 9f2da08..06c3167 100644
--- a/stoc/test/testintrosp.cxx
+++ b/stoc/test/testintrosp.cxx
@@ -575,7 +575,7 @@ sal_Bool ImplIntroTest::hasElements(  )
 sal_Int32 getIndexForName( const OUString& ItemName )
 {
     OUString aLeftStr = ItemName.copy( 0, 4 );
-    if( aLeftStr == OUString("Item") )
+    if( aLeftStr == "Item" )
     {
         // TODO
         OUString aNumStr = ItemName.copy( 4 );
diff --git a/stoc/test/testregistry.cxx b/stoc/test/testregistry.cxx
index 014ae2f..a9a680b 100644
--- a/stoc/test/testregistry.cxx
+++ b/stoc/test/testregistry.cxx
@@ -232,22 +232,22 @@ void test_SimpleRegistry(
             name = seqNames.getArray()[i];
             xSubKey = seqKeys.getArray()[i];
 
-            if (name == OUString( "/FirstKey/FirstSubKey" ))
+            if (name == "/FirstKey/FirstSubKey" )
             {
                 OSL_ENSURE( xSubKey->getLongValue() == 123456789,
                             "test_SimpleRegistry error 10" );
             } else
-            if (name == OUString( "/FirstKey/SecondSubKey" ))
+            if (name == "/FirstKey/SecondSubKey" )
             {
-                OSL_ENSURE( xSubKey->getAsciiValue() == OUString( "ich bin ein acsii value" ),
+                OSL_ENSURE( xSubKey->getAsciiValue() == "ich bin ein acsii value",
                             "test_SimpleRegistry error 11" );
             } else
-            if (name == OUString( "/FirstKey/ThirdSubKey" ))
+            if (name == "/FirstKey/ThirdSubKey" )
             {
-                OSL_ENSURE( xSubKey->getStringValue() == OUString( "ich bin ein unicode value" ),
+                OSL_ENSURE( xSubKey->getStringValue() == "ich bin ein unicode value",
                             "test_SimpleRegistry error 12" );
             } else
-            if (name == OUString( "/FirstKey/FourthSubKey" ))
+            if (name == "/FirstKey/FourthSubKey" )
             {
                 Sequence<sal_Int8> seqByte = xSubKey->getBinaryValue();
                 OSL_ENSURE(!strcmp(((const char*)seqByte.getArray()), "ich bin ein binary value"),
@@ -287,9 +287,9 @@ void test_SimpleRegistry(
         Sequence<OUString> seqAscii2;
         seqAscii2 = xKey->getAsciiListValue();
         OSL_ENSURE( seqAscii2.getLength() == 3, "test_SimpleRegistry error 18" );
-        OSL_ENSURE( seqAscii2.getArray()[0] == OUString( "Hallo" ), "test_SimpleRegistry error 19");
-        OSL_ENSURE( seqAscii2.getArray()[1] == OUString( "jetzt komm" ), "test_SimpleRegistry error 20");
-        OSL_ENSURE( seqAscii2.getArray()[2] == OUString( "ich" ), "test_SimpleRegistry error 21");
+        OSL_ENSURE( seqAscii2.getArray()[0] == "Hallo", "test_SimpleRegistry error 19");
+        OSL_ENSURE( seqAscii2.getArray()[1] == "jetzt komm", "test_SimpleRegistry error 20");
+        OSL_ENSURE( seqAscii2.getArray()[2] == "ich", "test_SimpleRegistry error 21");
 
         xKey = xRootKey->createKey(OUString( "FourthKey" ));
         OUString pUnicode[3];
@@ -303,9 +303,9 @@ void test_SimpleRegistry(
         Sequence<OUString> seqUnicode2;
         seqUnicode2 = xKey->getStringListValue();
         OSL_ENSURE( seqUnicode2.getLength() == 3, "test_SimpleRegistry error 22" );
-        OSL_ENSURE( seqUnicode2.getArray()[0] == OUString( "Hallo" ), "test_SimpleRegistry error 23");
-        OSL_ENSURE( seqUnicode2.getArray()[1] == OUString( "jetzt komm" ), "test_SimpleRegistry error 24");
-        OSL_ENSURE( seqUnicode2.getArray()[2] == OUString( "ich als unicode" ), "test_SimpleRegistry error 25");
+        OSL_ENSURE( seqUnicode2.getArray()[0] == "Hallo", "test_SimpleRegistry error 23");
+        OSL_ENSURE( seqUnicode2.getArray()[1] == "jetzt komm", "test_SimpleRegistry error 24");
+        OSL_ENSURE( seqUnicode2.getArray()[2] == "ich als unicode", "test_SimpleRegistry error 25");
 
 
         xReg->open(testreg2, sal_False, sal_True);
@@ -354,18 +354,18 @@ void test_SimpleRegistry(
 
         xKey = xRootKey->openKey("/FifthKey/MyFirstLink");
         OSL_ENSURE( xKey->isValid(), "test_SimpleRegistry error 27" );
-        OSL_ENSURE( xKey->getKeyName() == OUString( "/ThirdKey/FirstSubKey" ), "test_SimpleRegistry error 28" );
+        OSL_ENSURE( xKey->getKeyName() == "/ThirdKey/FirstSubKey", "test_SimpleRegistry error 28" );
 
         xKey->createLink(OUString( "/WithSubSubKey/MyFourthLink" ),
                          OUString( "/FourthKey/MySecondLink" ));
 
         OSL_ENSURE( xKey->getLinkTarget(OUString( "/WithSubSubKey/MyFourthLink" ))
-                     == OUString( "/FourthKey/MySecondLink" ), "test_SimpleRegistry error 29" );
+                     == "/FourthKey/MySecondLink", "test_SimpleRegistry error 29" );
 
         try
         {
             OSL_ENSURE( xKey->getResolvedName(OUString( "/WithSubSubKey/MyFourthLink/BlaBlaBla" ))
-                         == OUString( "/FourthKey/MySecondLink/BlaBlaBla" ), "test_SimpleRegistry error 30" );
+                         == "/FourthKey/MySecondLink/BlaBlaBla", "test_SimpleRegistry error 30" );
         }
         catch(InvalidRegistryException&)
         {
@@ -388,7 +388,7 @@ void test_SimpleRegistry(
         }
 
         OSL_ENSURE( xRootKey->getLinkTarget(OUString( "/FifthKey/MyFirstLink/WithSubSubKey/MyFourthLink" ))
-                     == OUString( "/FourthKey/MySecondLink" ), "test_SimpleRegistry error 31" );
+                     == "/FourthKey/MySecondLink", "test_SimpleRegistry error 31" );
 
         xRootKey->deleteLink(OUString( "/FifthKey/MyFirstLink/WithSubSubKey/MyFourthLink" ));
 
@@ -399,14 +399,14 @@ void test_SimpleRegistry(
         seqNames = xKey->getKeyNames();
         seqKeys = xKey->openKeys();
 
-        OSL_ENSURE( seqNames.getArray()[0] == OUString( "/SixthKey/SixthSubKey" ),
+        OSL_ENSURE( seqNames.getArray()[0] == "/SixthKey/SixthSubKey",
                       "test_SimpleRegistry error 32" );
-        OSL_ENSURE( seqNames.getArray()[1] == OUString( "/SixthKey/MyThirdLink" ),
+        OSL_ENSURE( seqNames.getArray()[1] == "/SixthKey/MyThirdLink",
                       "test_SimpleRegistry error 33" );
 
-        OSL_ENSURE( seqKeys.getArray()[0]->getKeyName() == OUString( "/SixthKey/SixthSubKey" ),
+        OSL_ENSURE( seqKeys.getArray()[0]->getKeyName() == "/SixthKey/SixthSubKey",
                       "test_SimpleRegistry error 34" );
-        OSL_ENSURE( seqKeys.getArray()[1]->getKeyName() == OUString( "/ThirdKey/FirstSubKey/WithSubSubKey" ),
+        OSL_ENSURE( seqKeys.getArray()[1]->getKeyName() == "/ThirdKey/FirstSubKey/WithSubSubKey",
                       "test_SimpleRegistry error 35" );
 
         xRootKey->deleteLink(OUString( "/FourthKey/MySecondLink" ));
@@ -457,7 +457,7 @@ void test_DefaultRegistry(
 
     OSL_ENSURE( xServInfo.is(), "test_DefaultRegistry error2");
 
-    OSL_ENSURE( xServInfo->getImplementationName() == OUString( "com.sun.star.comp.stoc.NestedRegistry" ), "test_DefualtRegistry error3");
+    OSL_ENSURE( xServInfo->getImplementationName() == "com.sun.star.comp.stoc.NestedRegistry", "test_DefualtRegistry error3");
     OSL_ENSURE( xServInfo->supportsService("com.sun.star.registry.NestedRegistry"), "test_DefaultRegistry error4");
     OSL_ENSURE( xServInfo->getSupportedServiceNames().getLength() == 1, "test_DefaultRegistry error5");
     xServInfo.clear();
@@ -470,7 +470,7 @@ void test_DefaultRegistry(
 
         Reference<XRegistryKey> xKey = xRootKey->openKey("/UCR/com/sun/star/registry/XSimpleRegistry");
 
-        OSL_ENSURE( xKey->getKeyName() == OUString( "/UCR/com/sun/star/registry/XSimpleRegistry" ),
+        OSL_ENSURE( xKey->getKeyName() == "/UCR/com/sun/star/registry/XSimpleRegistry",
                      "test_DefaultRegistry error 7" );
 
         if (bMergeDifferently)
@@ -508,11 +508,11 @@ void test_DefaultRegistry(
             Sequence<OUString> seqValue = xKey->getAsciiListValue();
 
             OSL_ENSURE( seqValue.getLength() == 3, "test_DefaultRegistry error 10" );
-            OSL_ENSURE( seqValue.getArray()[0] == OUString( "Hallo" ),
+            OSL_ENSURE( seqValue.getArray()[0] == "Hallo",
                           "test_DefaultRegistry error 11" );
-            OSL_ENSURE( seqValue.getArray()[1] == OUString( "jetzt komm" ),
+            OSL_ENSURE( seqValue.getArray()[1] == "jetzt komm",
                           "test_DefaultRegistry error 12" );
-            OSL_ENSURE( seqValue.getArray()[2] == OUString( "ich" ),
+            OSL_ENSURE( seqValue.getArray()[2] == "ich",
                           "test_DefaultRegistry error 13" );
 
             Sequence<sal_Int32> seqLong(3);
@@ -537,20 +537,20 @@ void test_DefaultRegistry(
 
         xKey = xRootKey->openKey("/Test/FifthKey/MyFirstLink");
         OSL_ENSURE( xKey->isValid(), "test_DefaultRegistry error 18" );
-        OSL_ENSURE( xKey->getKeyName() == OUString( "/Test/ThirdKey/FirstSubKey" ),
+        OSL_ENSURE( xKey->getKeyName() == "/Test/ThirdKey/FirstSubKey",
                       "test_DefaultRegistry error 19" );
 
         xKey->createLink(OUString( "/WithSubSubKey/MyFourthLink" ),
                          OUString( "/Test/FourthKey/MySecondLink" ));
 
         OSL_ENSURE( xKey->getLinkTarget(OUString( "/WithSubSubKey/MyFourthLink" ))
-                     == OUString( "/Test/FourthKey/MySecondLink" ),
+                     == "/Test/FourthKey/MySecondLink",
                       "test_DefaultRegistry error 20" );
 
         try
         {
             OSL_ENSURE( xKey->getResolvedName(OUString( "/WithSubSubKey/MyFourthLink/BlaBlaBla" ))
-                          == OUString( "/Test/FourthKey/MySecondLink/BlaBlaBla" ),
+                          == "/Test/FourthKey/MySecondLink/BlaBlaBla",
                           "test_DefaultRegistry error 21" );
         }
         catch(InvalidRegistryException&)
@@ -573,7 +573,7 @@ void test_DefaultRegistry(
         }
 
         OSL_ENSURE( xRootKey->getLinkTarget(OUString( "/Test/FifthKey/MyFirstLink/WithSubSubKey/MyFourthLink" ))
-                     == OUString( "/Test/FourthKey/MySecondLink" ),
+                     == "/Test/FourthKey/MySecondLink",
                       "test_DefaultRegistry error 22" );
 
         xRootKey->deleteLink(OUString( "/Test/FifthKey/MyFirstLink/WithSubSubKey/MyFourthLink" ));
@@ -581,12 +581,12 @@ void test_DefaultRegistry(
         xKey = xRootKey->openKey("/Test/DefaultLink/SecondSubSubKey");
         if (xKey.is())
         {
-            OSL_ENSURE( xKey->getKeyName() == OUString( "/Test/ThirdKey/FirstSubKey/SecondSubSubKey" ), "test_DefaultRegistry error 23" );
+            OSL_ENSURE( xKey->getKeyName() == "/Test/ThirdKey/FirstSubKey/SecondSubSubKey", "test_DefaultRegistry error 23" );
         }
         xKey = xRootKey->createKey(OUString( "/Test/DefaultLink/ThirdSubSubKey" ));
         if (xKey.is())
         {
-            OSL_ENSURE( xKey->getKeyName() == OUString( "/Test/ThirdKey/FirstSubKey/ThirdSubSubKey" ),
+            OSL_ENSURE( xKey->getKeyName() == "/Test/ThirdKey/FirstSubKey/ThirdSubSubKey",
                           "test_DefaultRegistry error 24" );
         }
 
diff --git a/stoc/test/testsmgr_cpnt.cxx b/stoc/test/testsmgr_cpnt.cxx
index 6e65b0c..d077821 100644
--- a/stoc/test/testsmgr_cpnt.cxx
+++ b/stoc/test/testsmgr_cpnt.cxx
@@ -237,7 +237,7 @@ extern "C" void SAL_CALL test_ServiceManager()
         // getImplementations() check
          Sequence<OUString> seqImpl = xInst->getImplementations(OUString("com.sun.star.loader.SharedLibrary"), atUModule2);
         OSL_ENSURE( seqImpl.getLength() == 1, "count of implementantions is wrong" );
-        OSL_ENSURE( seqImpl.getConstArray()[0] == OUString("com.sun.star.DummyService.V10"), "implementation name is not equal" );
+        OSL_ENSURE( seqImpl.getConstArray()[0] == "com.sun.star.DummyService.V10", "implementation name is not equal" );
 
 
         // tests, if a service provider can be instantiated.
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index c672b5e..2117041 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -3727,7 +3727,7 @@ void SvNumberFormatter::ImpInitCurrencyTable()
         }
         rCurrencyTable.insert( rCurrencyTable.begin() + nCurrencyPos++, pEntry );
         if ( !nSystemCurrencyPosition && (!aConfiguredCurrencyAbbrev.isEmpty() ?
-                                          pEntry->GetBankSymbol() == OUString(aConfiguredCurrencyAbbrev) &&
+                                          pEntry->GetBankSymbol() == aConfiguredCurrencyAbbrev &&
                                           pEntry->GetLanguage() == eConfiguredCurrencyLanguage : false) )
         {
             nSystemCurrencyPosition = nCurrencyPos-1;
@@ -3772,7 +3772,7 @@ void SvNumberFormatter::ImpInitCurrencyTable()
                         rCurrencyTable.insert( rCurrencyTable.begin() + nCurrencyPos++, pEntry );
                         if ( !nSecondarySystemCurrencyPosition &&
                              (!aConfiguredCurrencyAbbrev.isEmpty() ?
-                              pEntry->GetBankSymbol() == OUString(aConfiguredCurrencyAbbrev) :
+                              pEntry->GetBankSymbol() == aConfiguredCurrencyAbbrev :
                               pEntry->GetLanguage() == eConfiguredCurrencyLanguage) )
                         {
                             nSecondarySystemCurrencyPosition = nCurrencyPos-1;
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index d07b773..42a1b1c 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -1210,7 +1210,7 @@ IMPL_LINK( SvxSearchDialog, FlagHdl_Impl, Control *, pCtrl )
 
 IMPL_LINK( SvxSearchDialog, CommandHdl_Impl, Button *, pBtn )
 {
-    bool bInclusive = ( m_pLayoutBtn->GetText() == OUString(aLayoutStr) );
+    bool bInclusive = ( m_pLayoutBtn->GetText() == aLayoutStr );
 
     if ( ( pBtn == m_pSearchBtn )   ||
          ( pBtn == m_pSearchAllBtn )||
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index 86e50ad..b4ecd7d 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -1348,7 +1348,7 @@ DECLARE_OOXML_TEST(testSmartart, "smartart.docx")
     sal_Bool bTheme = sal_False;
     for(int i = 0; i < aGrabBag.getLength(); ++i)
     {
-      if (aGrabBag[i].Name == OUString("OOXTheme"))
+      if (aGrabBag[i].Name == "OOXTheme")
       {
         bTheme = sal_True;
         uno::Reference<xml::dom::XDocument> aThemeDom;
@@ -1372,35 +1372,35 @@ DECLARE_OOXML_TEST(testSmartart, "smartart.docx")
     sal_Bool bData = sal_False, bLayout = sal_False, bQStyle = sal_False, bColor = sal_False, bDrawing = sal_False;
     for(int i = 0; i < aGrabBag.getLength(); ++i)
     {
-      if (aGrabBag[i].Name == OUString("OOXData"))
+      if (aGrabBag[i].Name == "OOXData")
       {
         bData = sal_True;
         uno::Reference<xml::dom::XDocument> aDataDom;
         CPPUNIT_ASSERT(aGrabBag[i].Value >>= aDataDom); // PropertyValue of proper type
         CPPUNIT_ASSERT(aDataDom.get()); // Reference not empty
       }
-      else if (aGrabBag[i].Name == OUString("OOXLayout"))
+      else if (aGrabBag[i].Name == "OOXLayout")
       {
         bLayout = sal_True;
         uno::Reference<xml::dom::XDocument> aLayoutDom;
         CPPUNIT_ASSERT(aGrabBag[i].Value >>= aLayoutDom); // PropertyValue of proper type
         CPPUNIT_ASSERT(aLayoutDom.get()); // Reference not empty
       }
-      else if (aGrabBag[i].Name == OUString("OOXStyle"))
+      else if (aGrabBag[i].Name == "OOXStyle")
       {
         bQStyle = sal_True;
         uno::Reference<xml::dom::XDocument> aStyleDom;
         CPPUNIT_ASSERT(aGrabBag[i].Value >>= aStyleDom); // PropertyValue of proper type
         CPPUNIT_ASSERT(aStyleDom.get()); // Reference not empty
       }
-      else if (aGrabBag[i].Name == OUString("OOXColor"))
+      else if (aGrabBag[i].Name == "OOXColor")
       {
         bColor = sal_True;
         uno::Reference<xml::dom::XDocument> aColorDom;
         CPPUNIT_ASSERT(aGrabBag[i].Value >>= aColorDom); // PropertyValue of proper type
         CPPUNIT_ASSERT(aColorDom.get()); // Reference not empty
       }
-      else if (aGrabBag[i].Name == OUString("OOXDrawing"))
+      else if (aGrabBag[i].Name == "OOXDrawing")
       {
         bDrawing = sal_True;
         uno::Reference<xml::dom::XDocument> aDrawingDom;
diff --git a/sw/source/core/unocore/unobkm.cxx b/sw/source/core/unocore/unobkm.cxx
index 8e57246..3972d45 100644
--- a/sw/source/core/unocore/unobkm.cxx
+++ b/sw/source/core/unocore/unobkm.cxx
@@ -666,7 +666,7 @@ SwXFieldmark::CreateXFieldmark(SwDoc & rDoc, ::sw::mark::IMark & rMark)
 SwXFieldmark::getCheckboxFieldmark()
 {
     ::sw::mark::ICheckboxFieldmark* pCheckboxFm = NULL;
-    if ( getFieldType() == OUString( ODF_FORMCHECKBOX ) )
+    if ( getFieldType() == ODF_FORMCHECKBOX )
     {
         // evil #TODO #FIXME casting away the const-ness
         pCheckboxFm = const_cast<sw::mark::ICheckboxFieldmark*>(dynamic_cast< const ::sw::mark::ICheckboxFieldmark* >( GetBookmark()));
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index 334387e..5227be1 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -1691,7 +1691,7 @@ static void lcl_SetStyleProperty(const SfxItemPropertySimpleEntry& rEntry,
             {
                 for (sal_uInt16 i=0, nEnd = pPrinter->GetPaperBinCount(); i < nEnd; i++ )
                 {
-                    if (sTmp == OUString ( pPrinter->GetPaperBinName ( i ) ) )
+                    if (sTmp == pPrinter->GetPaperBinName ( i ) )
                     {
                         nBin = i;
                         break;
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index c877138..afcddfd 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -2834,7 +2834,7 @@ void SwHTMLParser::_SetAttr( sal_Bool bChkEnd, sal_Bool bBeforeTable,
                             IDocumentMarkAccess::BOOKMARK );
 
                         // jump to bookmark
-                        if( JUMPTO_MARK == eJumpTo && pNewMark->GetName() == OUString(sJmpMark) )
+                        if( JUMPTO_MARK == eJumpTo && pNewMark->GetName() == sJmpMark )
                         {
                             bChkJumpMark = sal_True;
                             eJumpTo = JUMPTO_NONE;
diff --git a/sw/source/ui/dbui/mailmergehelper.cxx b/sw/source/ui/dbui/mailmergehelper.cxx
index d876c96..fb7646c 100644
--- a/sw/source/ui/dbui/mailmergehelper.cxx
+++ b/sw/source/ui/dbui/mailmergehelper.cxx
@@ -753,7 +753,7 @@ sal_Bool SwMailTransferable::isDataFlavorSupported(
             const datatransfer::DataFlavor& aFlavor )
                             throw (uno::RuntimeException)
 {
-    return (aFlavor.MimeType == OUString(m_aMimeType));
+    return (aFlavor.MimeType == m_aMimeType);
 }
 
 uno::Reference< beans::XPropertySetInfo > SwMailTransferable::getPropertySetInfo(  ) throw(uno::RuntimeException)
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx
index a736545..3a64309 100644
--- a/sw/source/ui/envelp/label1.cxx
+++ b/sw/source/ui/envelp/label1.cxx
@@ -383,7 +383,7 @@ IMPL_LINK_NOARG(SwLabPage, MakeHdl)
         if(bInsert)
         {
             GetParentSwLabDlg()->TypeIds().push_back(i);
-            if ( !nLstType && aType == OUString(aItem.aLstType) )
+            if ( !nLstType && aType == aItem.aLstType )
                 nLstType = GetParentSwLabDlg()->TypeIds().size();
         }
     }
diff --git a/sw/source/ui/uno/SwXFilterOptions.cxx b/sw/source/ui/uno/SwXFilterOptions.cxx
index 8d73f13..2ac9262 100644
--- a/sw/source/ui/uno/SwXFilterOptions.cxx
+++ b/sw/source/ui/uno/SwXFilterOptions.cxx
@@ -85,7 +85,7 @@ void   SwXFilterOptions::setPropertyValues( const uno::Sequence<beans::PropertyV
 
         if ( aPropName.equalsAscii( SW_PROP_NAME_STR(UNO_NAME_FILTER_NAME) ) )
             rProp.Value >>= sFilterName;
-        else if ( aPropName == OUString(FILTER_OPTIONS_NAME) )
+        else if ( aPropName == FILTER_OPTIONS_NAME )
             rProp.Value >>= sFilterOptions;
         else if ( aPropName == "InputStream" )
             rProp.Value >>= xInputStream;
@@ -159,7 +159,7 @@ OUString SwXFilterOptions::getImplementationName() throw(uno::RuntimeException)
 sal_Bool SwXFilterOptions::supportsService( const OUString& rServiceName )
     throw(uno::RuntimeException)
 {
-    return rServiceName == OUString(SWFILTEROPTIONSOBJ_SERVICE);
+    return rServiceName == SWFILTEROPTIONSOBJ_SERVICE;
 }
 
 uno::Sequence< OUString > SwXFilterOptions::getSupportedServiceNames()
diff --git a/test/source/sheet/xdatabaserange.cxx b/test/source/sheet/xdatabaserange.cxx
index d12d44b..8b7f119 100644
--- a/test/source/sheet/xdatabaserange.cxx
+++ b/test/source/sheet/xdatabaserange.cxx
@@ -71,53 +71,53 @@ void XDatabaseRange::testGetSortDescriptor()
         beans::PropertyValue xProp = xSortDescr[i];
         //std::cout << "Prop " << i << " Name: " << OUString(xProp.Name) << std::endl;
 
-        if (xProp.Name == OUString("IsSortColumns"))
+        if (xProp.Name == "IsSortColumns")
         {
             sal_Bool bIsSortColumns = sal_True;
             xProp.Value >>= bIsSortColumns;
             CPPUNIT_ASSERT(bIsSortColumns == sal_True);
         }
-        else if (xProp.Name == OUString("ContainsHeader"))
+        else if (xProp.Name == "ContainsHeader")
         {
             sal_Bool bContainsHeader = sal_True;
             xProp.Value >>= bContainsHeader;
             CPPUNIT_ASSERT(bContainsHeader == sal_True);
         }
-        else if (xProp.Name == OUString("MaxFieldCount"))
+        else if (xProp.Name == "MaxFieldCount")
         {
             sal_Int32 nMaxFieldCount = 0;
             xProp.Value >>= nMaxFieldCount;
             std::cout << "Value: " << nMaxFieldCount << std::endl;
 
         }
-        else if (xProp.Name == OUString("SortFields"))
+        else if (xProp.Name == "SortFields")
         {
 
         }
-        else if (xProp.Name == OUString("BindFormatsToContent"))
+        else if (xProp.Name == "BindFormatsToContent")
         {
             sal_Bool bBindFormatsToContent = sal_False;
             xProp.Value >>= bBindFormatsToContent;
             CPPUNIT_ASSERT(bBindFormatsToContent == sal_True);
         }
-        else if (xProp.Name == OUString("CopyOutputData"))
+        else if (xProp.Name == "CopyOutputData")
         {
             sal_Bool bCopyOutputData = sal_True;
             xProp.Value >>= bCopyOutputData;
             CPPUNIT_ASSERT(bCopyOutputData == sal_False);
         }
-        else if (xProp.Name == OUString("OutputPosition"))
+        else if (xProp.Name == "OutputPosition")
         {
 
         }
-        else if (xProp.Name == OUString("IsUserListEnabled"))
+        else if (xProp.Name == "IsUserListEnabled")
         {
             sal_Bool bIsUserListEnabled  = sal_True;
             xProp.Value >>= bIsUserListEnabled;
             CPPUNIT_ASSERT(bIsUserListEnabled == sal_False);
 
         }
-        else if (xProp.Name == OUString("UserListIndex"))
+        else if (xProp.Name == "UserListIndex")
         {
             sal_Int32 nUserListIndex = 1;
             xProp.Value >>= nUserListIndex;
diff --git a/ucb/source/ucp/file/filrset.cxx b/ucb/source/ucp/file/filrset.cxx
index 315fe9c..457f4ca 100644
--- a/ucb/source/ucp/file/filrset.cxx
+++ b/ucb/source/ucp/file/filrset.cxx
@@ -813,8 +813,8 @@ void SAL_CALL XResultSet_impl::setPropertyValue(
            lang::WrappedTargetException,
            uno::RuntimeException)
 {
-    if( aPropertyName == OUString("IsRowCountFinal") ||
-        aPropertyName == OUString("RowCount") )
+    if( aPropertyName == "IsRowCountFinal" ||
+        aPropertyName == "RowCount" )
         return;
     throw beans::UnknownPropertyException( OUString(  OSL_LOG_PREFIX  ), uno::Reference< uno::XInterface >() );
 }
@@ -826,13 +826,13 @@ uno::Any SAL_CALL XResultSet_impl::getPropertyValue(
            lang::WrappedTargetException,
            uno::RuntimeException)
 {
-    if( PropertyName == OUString("IsRowCountFinal") )
+    if( PropertyName == "IsRowCountFinal" )
     {
         uno::Any aAny;
         aAny <<= m_bRowCountFinal;
         return aAny;
     }
-    else if ( PropertyName == OUString("RowCount") )
+    else if ( PropertyName == "RowCount" )
     {
         uno::Any aAny;
         sal_Int32 count = sal::static_int_cast<sal_Int32>(m_aItems.size());
@@ -851,7 +851,7 @@ void SAL_CALL XResultSet_impl::addPropertyChangeListener(
            lang::WrappedTargetException,
            uno::RuntimeException)
 {
-    if( aPropertyName == OUString("IsRowCountFinal") )
+    if( aPropertyName == "IsRowCountFinal" )
     {
         osl::MutexGuard aGuard( m_aMutex );
         if ( ! m_pIsFinalListeners )
@@ -860,7 +860,7 @@ void SAL_CALL XResultSet_impl::addPropertyChangeListener(
 
         m_pIsFinalListeners->addInterface( xListener );
     }
-    else if ( aPropertyName == OUString("RowCount") )
+    else if ( aPropertyName == "RowCount" )
     {
         osl::MutexGuard aGuard( m_aMutex );
         if ( ! m_pRowCountListeners )
@@ -880,13 +880,13 @@ void SAL_CALL XResultSet_impl::removePropertyChangeListener(
            lang::WrappedTargetException,
            uno::RuntimeException)
 {
-    if( aPropertyName == OUString("IsRowCountFinal") &&
+    if( aPropertyName == "IsRowCountFinal" &&
         m_pIsFinalListeners )
     {
         osl::MutexGuard aGuard( m_aMutex );
         m_pIsFinalListeners->removeInterface( aListener );
     }
-    else if ( aPropertyName == OUString("RowCount") &&
+    else if ( aPropertyName == "RowCount" &&
               m_pRowCountListeners )
     {
         osl::MutexGuard aGuard( m_aMutex );
diff --git a/ucb/source/ucp/file/prov.cxx b/ucb/source/ucp/file/prov.cxx
index ee414b9..ee8a19fc 100644
--- a/ucb/source/ucp/file/prov.cxx
+++ b/ucb/source/ucp/file/prov.cxx
@@ -192,7 +192,7 @@ FileProvider::supportsService(
                   const OUString& ServiceName )
   throw( RuntimeException )
 {
-  return ServiceName == OUString("com.sun.star.ucb.FileContentProvider");
+  return ServiceName == "com.sun.star.ucb.FileContentProvider";
 }
 
 
diff --git a/ucb/source/ucp/ftp/ftpresultsetbase.cxx b/ucb/source/ucp/ftp/ftpresultsetbase.cxx
index 589f7aa..f220f09 100644
--- a/ucb/source/ucp/ftp/ftpresultsetbase.cxx
+++ b/ucb/source/ucp/ftp/ftpresultsetbase.cxx
@@ -527,8 +527,8 @@ void SAL_CALL ResultSetBase::setPropertyValue(
            lang::WrappedTargetException,
            uno::RuntimeException)
 {
-    if( aPropertyName == OUString("IsRowCountFinal") ||
-        aPropertyName == OUString("RowCount") )
+    if( aPropertyName == "IsRowCountFinal" ||
+        aPropertyName == "RowCount" )
         return;
 
     throw beans::UnknownPropertyException();
@@ -541,13 +541,13 @@ uno::Any SAL_CALL ResultSetBase::getPropertyValue(
            lang::WrappedTargetException,
            uno::RuntimeException)
 {
-    if( PropertyName == OUString("IsRowCountFinal") )
+    if( PropertyName == "IsRowCountFinal" )
     {
         uno::Any aAny;
         aAny <<= m_bRowCountFinal;
         return aAny;
     }
-    else if ( PropertyName == OUString("RowCount") )
+    else if ( PropertyName == "RowCount" )
     {
         uno::Any aAny;
         sal_Int32 count = m_aItems.size();
@@ -566,7 +566,7 @@ void SAL_CALL ResultSetBase::addPropertyChangeListener(
            lang::WrappedTargetException,
            uno::RuntimeException)
 {
-    if( aPropertyName == OUString("IsRowCountFinal") )
+    if( aPropertyName == "IsRowCountFinal" )
     {
         osl::MutexGuard aGuard( m_aMutex );
         if ( ! m_pIsFinalListeners )
@@ -575,7 +575,7 @@ void SAL_CALL ResultSetBase::addPropertyChangeListener(
 
         m_pIsFinalListeners->addInterface( xListener );
     }
-    else if ( aPropertyName == OUString("RowCount") )
+    else if ( aPropertyName == "RowCount" )
     {
         osl::MutexGuard aGuard( m_aMutex );
         if ( ! m_pRowCountListeners )
@@ -595,13 +595,13 @@ void SAL_CALL ResultSetBase::removePropertyChangeListener(
            lang::WrappedTargetException,
            uno::RuntimeException)
 {
-    if( aPropertyName == OUString("IsRowCountFinal") &&
+    if( aPropertyName == "IsRowCountFinal" &&
         m_pIsFinalListeners )
     {
         osl::MutexGuard aGuard( m_aMutex );
         m_pIsFinalListeners->removeInterface( aListener );
     }
-    else if ( aPropertyName == OUString("RowCount") &&
+    else if ( aPropertyName == "RowCount" &&
               m_pRowCountListeners )
     {
         osl::MutexGuard aGuard( m_aMutex );
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index ca4e578..5c7f78f 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -186,7 +186,7 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc
     for (i = 0; i < n; i++)
     {
         PropertyChangeEvent evt (rEvent[i]);
-        if (evt.PropertyName == OUString("DocumentHeader"))
+        if (evt.PropertyName == "DocumentHeader")
         {
             Sequence<DocumentHeaderField> aHead;
             if (evt.NewValue >>= aHead)
@@ -211,7 +211,7 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc
 
             m_xLockBytes->SetStreamValid_Impl();
         }
-        else if (evt.PropertyName == OUString("PresentationURL"))
+        else if (evt.PropertyName == "PresentationURL")
         {
             OUString aUrl;
             if (evt.NewValue >>= aUrl)
@@ -224,7 +224,7 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc
                 }
             }
         }
-        else if (evt.PropertyName == OUString("MediaType"))
+        else if (evt.PropertyName == "MediaType")
         {
             OUString aContentType;
             if (evt.NewValue >>= aContentType)
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index 92d2816..a5dfdce 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -562,25 +562,25 @@ OUString StyleSettings::ImplSymbolsStyleToName( sal_uLong nStyle ) const
 
 sal_uLong StyleSettings::ImplNameToSymbolsStyle( const OUString &rName ) const
 {
-    if ( rName == OUString("default") )
+    if ( rName == "default" )
         return STYLE_SYMBOLS_DEFAULT;
-    else if ( rName == OUString("hicontrast") )
+    else if ( rName == "hicontrast" )
         return STYLE_SYMBOLS_HICONTRAST;
-    else if ( rName == OUString("industrial") )
+    else if ( rName == "industrial" )
         return STYLE_SYMBOLS_TANGO; // industrial is dead
-    else if ( rName == OUString("crystal") )
+    else if ( rName == "crystal" )
         return STYLE_SYMBOLS_CRYSTAL;
-    else if ( rName == OUString("tango") )
+    else if ( rName == "tango" )
         return STYLE_SYMBOLS_TANGO;
-    else if ( rName == OUString("oxygen") )
+    else if ( rName == "oxygen" )
         return STYLE_SYMBOLS_OXYGEN;
-    else if ( rName == OUString("classic") )
+    else if ( rName == "classic" )
         return STYLE_SYMBOLS_CLASSIC;
-    else if ( rName == OUString("human") )
+    else if ( rName == "human" )
         return STYLE_SYMBOLS_HUMAN;
-    else if ( rName == OUString("sifr") )
+    else if ( rName == "sifr" )
         return STYLE_SYMBOLS_SIFR;
-    else if ( rName == OUString("tango_testing") )
+    else if ( rName == "tango_testing" )
         return STYLE_SYMBOLS_TANGO_TESTING;
 
     return STYLE_SYMBOLS_AUTO;
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 27df84f..91d7906 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -7909,7 +7909,7 @@ void Window::SetCursor( Cursor* pCursor )
 
 void Window::SetText( const OUString& rStr )
 {
-    if (rStr == OUString(mpWindowImpl->maText))
+    if (rStr == mpWindowImpl->maText)
         return;
 
     DBG_CHKTHIS( Window, ImplDbgCheckWindow );
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx
index 75ae7b4..a257d1e 100644
--- a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx
+++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx
@@ -521,8 +521,8 @@ void SAL_CALL ResultSetBase::setPropertyValue(
 {
     (void)aValue;
 
-    if( aPropertyName == OUString( "IsRowCountFinal" ) ||
-        aPropertyName == OUString( "RowCount" ) )
+    if( aPropertyName == "IsRowCountFinal" ||
+        aPropertyName == "RowCount" )
         return;
 
     throw beans::UnknownPropertyException();
@@ -535,13 +535,13 @@ uno::Any SAL_CALL ResultSetBase::getPropertyValue(
            lang::WrappedTargetException,
            uno::RuntimeException)
 {
-    if( PropertyName == OUString( "IsRowCountFinal" ) )
+    if( PropertyName == "IsRowCountFinal" )
     {
         uno::Any aAny;
         aAny <<= m_bRowCountFinal;
         return aAny;
     }
-    else if ( PropertyName == OUString( "RowCount" ) )
+    else if ( PropertyName == "RowCount" )
     {
         uno::Any aAny;
         sal_Int32 count = m_aItems.size();
@@ -560,7 +560,7 @@ void SAL_CALL ResultSetBase::addPropertyChangeListener(
            lang::WrappedTargetException,
            uno::RuntimeException)
 {
-    if( aPropertyName == OUString( "IsRowCountFinal" ) )
+    if( aPropertyName == "IsRowCountFinal" )
     {
         osl::MutexGuard aGuard( m_aMutex );
         if ( ! m_pIsFinalListeners )
@@ -569,7 +569,7 @@ void SAL_CALL ResultSetBase::addPropertyChangeListener(
 
         m_pIsFinalListeners->addInterface( xListener );
     }
-    else if ( aPropertyName == OUString( "RowCount" ) )
+    else if ( aPropertyName == "RowCount" )
     {
         osl::MutexGuard aGuard( m_aMutex );
         if ( ! m_pRowCountListeners )
@@ -589,13 +589,13 @@ void SAL_CALL ResultSetBase::removePropertyChangeListener(
            lang::WrappedTargetException,
            uno::RuntimeException)
 {
-    if( aPropertyName == OUString( "IsRowCountFinal" ) &&
+    if( aPropertyName == "IsRowCountFinal" &&
         m_pIsFinalListeners )
     {
         osl::MutexGuard aGuard( m_aMutex );
         m_pIsFinalListeners->removeInterface( aListener );
     }
-    else if ( aPropertyName == OUString( "RowCount" ) &&
+    else if ( aPropertyName == "RowCount" &&
               m_pRowCountListeners )
     {
         osl::MutexGuard aGuard( m_aMutex );
diff --git a/xmloff/source/chart/PropertyMaps.cxx b/xmloff/source/chart/PropertyMaps.cxx
index dc303f8..9d73fc3 100644
--- a/xmloff/source/chart/PropertyMaps.cxx
+++ b/xmloff/source/chart/PropertyMaps.cxx
@@ -460,17 +460,17 @@ void XMLChartExportPropertyMapper::handleSpecialItem(
                 {
                     OUString aServiceName;
                     rProperty.maValue >>= aServiceName;
-                    if      (aServiceName == OUString("com.sun.star.chart2.LinearRegressionCurve"))
+                    if      (aServiceName == "com.sun.star.chart2.LinearRegressionCurve")
                         sValueBuffer.append( GetXMLToken( XML_LINEAR ));
-                    else if (aServiceName == OUString("com.sun.star.chart2.LogarithmicRegressionCurve"))
+                    else if (aServiceName == "com.sun.star.chart2.LogarithmicRegressionCurve")
                         sValueBuffer.append( GetXMLToken( XML_LOGARITHMIC ));
-                    else if (aServiceName == OUString("com.sun.star.chart2.ExponentialRegressionCurve"))
+                    else if (aServiceName == "com.sun.star.chart2.ExponentialRegressionCurve")
                         sValueBuffer.append( GetXMLToken( XML_EXPONENTIAL ));
-                    else if (aServiceName == OUString("com.sun.star.chart2.PotentialRegressionCurve"))
+                    else if (aServiceName == "com.sun.star.chart2.PotentialRegressionCurve")
                         sValueBuffer.append( GetXMLToken( XML_POWER ));
-                    else if (aServiceName == OUString("com.sun.star.chart2.PolynomialRegressionCurve"))
+                    else if (aServiceName == "com.sun.star.chart2.PolynomialRegressionCurve")
                         sValueBuffer.append( GetXMLToken( XML_POLYNOMIAL ));
-                    else if (aServiceName == OUString("com.sun.star.chart2.MovingAverageRegressionCurve"))
+                    else if (aServiceName == "com.sun.star.chart2.MovingAverageRegressionCurve")
                         sValueBuffer.append( GetXMLToken( XML_MOVING_AVERAGE ));
                 }
                 break;
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx
index 95ba032..164acb2 100644
--- a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx
+++ b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx
@@ -84,7 +84,7 @@ void SAL_CALL ImplXMLSignatureListener::endDocument(  )
 void SAL_CALL ImplXMLSignatureListener::startElement( const OUString& aName, const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttribs )
         throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException)
 {
-    if ( aName == OUString("Signature") )
+    if ( aName == "Signature" )
     {
             maStartVerifySignatureElementListener.Call( (void*)&xAttribs );
     }
commit aeb41c9b9b7559c6d87bf92807acdc0df9e104cc
Author: Noel Grandin <noel at peralex.com>
Date:   Fri Oct 25 17:17:50 2013 +0200

    remove redundant calls to OUString constructor
    
    Change code like this:
      aStr = OUString("xxxx");
    into this:
      aStr = "xxxx";
    
    Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6

diff --git a/canvas/source/vcl/devicehelper.cxx b/canvas/source/vcl/devicehelper.cxx
index b874bd1..2618a04 100644
--- a/canvas/source/vcl/devicehelper.cxx
+++ b/canvas/source/vcl/devicehelper.cxx
@@ -211,9 +211,7 @@ namespace vclcanvas
 
         if( mpOutDev )
         {
-            OUString aFilename("dbg_frontbuffer");
-            aFilename += OUString::number(nFilePostfixCount);
-            aFilename += OUString(".bmp");
+            OUString aFilename = "dbg_frontbuffer" + OUString::number(nFilePostfixCount) + ".bmp";
 
             SvFileStream aStream( aFilename, STREAM_STD_READWRITE );
 
diff --git a/canvas/source/vcl/spritedevicehelper.cxx b/canvas/source/vcl/spritedevicehelper.cxx
index 2e1063c..a92150a 100644
--- a/canvas/source/vcl/spritedevicehelper.cxx
+++ b/canvas/source/vcl/spritedevicehelper.cxx
@@ -128,9 +128,7 @@ namespace vclcanvas
 
         if( mpBackBuffer )
         {
-            OUString aFilename("dbg_backbuffer");
-            aFilename += OUString::number(nFilePostfixCount);
-            aFilename += OUString(".bmp");
+            OUString aFilename = "dbg_backbuffer" + OUString::number(nFilePostfixCount) + OUString(".bmp");
 
             SvFileStream aStream( aFilename, STREAM_STD_READWRITE );
 
diff --git a/connectivity/source/commontools/TColumnsHelper.cxx b/connectivity/source/commontools/TColumnsHelper.cxx
index 8d97941..527fd6f 100644
--- a/connectivity/source/commontools/TColumnsHelper.cxx
+++ b/connectivity/source/commontools/TColumnsHelper.cxx
@@ -177,11 +177,10 @@ sdbcx::ObjectType OColumnsHelper::appendObject( const OUString& _rForName, const
         return cloneDescriptor( descriptor );
 
     Reference<XDatabaseMetaData> xMetaData = m_pTable->getConnection()->getMetaData();
-    OUString aSql( "ALTER TABLE " );
-
-    aSql += ::dbtools::composeTableName( xMetaData, m_pTable, ::dbtools::eInTableDefinitions, false, false, true );
-    aSql += OUString(" ADD ");
-    aSql += ::dbtools::createStandardColumnPart(descriptor,m_pTable->getConnection(),NULL,m_pTable->getTypeCreatePattern());
+    OUString aSql = "ALTER TABLE " +
+        ::dbtools::composeTableName( xMetaData, m_pTable, ::dbtools::eInTableDefinitions, false, false, true ) +
+        " ADD " +
+        ::dbtools::createStandardColumnPart(descriptor,m_pTable->getConnection(),NULL,m_pTable->getTypeCreatePattern());
 
     Reference< XStatement > xStmt = m_pTable->getConnection()->createStatement(  );
     if ( xStmt.is() )
@@ -198,13 +197,12 @@ void OColumnsHelper::dropObject(sal_Int32 /*_nPos*/,const OUString _sElementName
     OSL_ENSURE(m_pTable,"OColumnsHelper::dropByName: Table is null!");
     if ( m_pTable && !m_pTable->isNew() )
     {
-        OUString aSql( "ALTER TABLE " );
         Reference<XDatabaseMetaData> xMetaData = m_pTable->getConnection()->getMetaData();
         OUString aQuote  = xMetaData->getIdentifierQuoteString(  );
-
-        aSql += ::dbtools::composeTableName( xMetaData, m_pTable, ::dbtools::eInTableDefinitions, false, false, true );
-        aSql += OUString(" DROP ");
-        aSql += ::dbtools::quoteName( aQuote,_sElementName);
+        OUString aSql = "ALTER TABLE " +
+            ::dbtools::composeTableName( xMetaData, m_pTable, ::dbtools::eInTableDefinitions, false, false, true ) +
+            " DROP " +
+            ::dbtools::quoteName( aQuote,_sElementName);
 
         Reference< XStatement > xStmt = m_pTable->getConnection()->createStatement(  );
         if ( xStmt.is() )
diff --git a/connectivity/source/commontools/TTableHelper.cxx b/connectivity/source/commontools/TTableHelper.cxx
index 3e29b7b..f77eefc 100644
--- a/connectivity/source/commontools/TTableHelper.cxx
+++ b/connectivity/source/commontools/TTableHelper.cxx
@@ -483,10 +483,10 @@ void OTableHelper::refreshIndexes()
 OUString OTableHelper::getRenameStart() const
 {
     OUString sSql("RENAME ");
-    if ( m_Type == OUString("VIEW") )
-        sSql += OUString(" VIEW ");
+    if ( m_Type == "VIEW" )
+        sSql += " VIEW ";
     else
-        sSql += OUString(" TABLE ");
+        sSql += " TABLE ";
 
     return sSql;
 }
diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx
index e54ab30..c2df473 100644
--- a/connectivity/source/commontools/dbtools.cxx
+++ b/connectivity/source/commontools/dbtools.cxx
@@ -999,9 +999,9 @@ try
                 {
                     OSL_UNUSED( e );
 #ifdef DBG_UTIL
-                    OUString sMessage("TransferFormComponentProperties : could not transfer the value for property \"");
-                    sMessage += pResult->Name;
-                    sMessage += OUString("\"");
+                    OUString sMessage = "TransferFormComponentProperties : could not transfer the value for property \"" +
+                        pResult->Name +
+                        "\"";
                     OSL_FAIL(OUStringToOString(sMessage, RTL_TEXTENCODING_ASCII_US).getStr());
 #endif
                 }
diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx
index de82465..689fc5c 100644
--- a/connectivity/source/commontools/dbtools2.cxx
+++ b/connectivity/source/commontools/dbtools2.cxx
@@ -825,14 +825,9 @@ void collectColumnInformation(const Reference< XConnection>& _xConnection,
                               const OUString& _rName,
                               ColumnInformationMap& _rInfo)
 {
-    static OUString STR_WHERE = OUString(" WHERE ");
-
-    OUString sSelect = OUString("SELECT ");
-    sSelect += _rName;
-    sSelect += OUString(" FROM ");
-    sSelect += _sComposedName;
-    sSelect += STR_WHERE;
-    sSelect += OUString("0 = 1");
+    OUString sSelect = "SELECT " + _rName +
+        " FROM " + _sComposedName +
+        " WHERE 0 = 1";
 
     try
     {
diff --git a/connectivity/source/commontools/predicateinput.cxx b/connectivity/source/commontools/predicateinput.cxx
index f27bc14..0d04af9 100644
--- a/connectivity/source/commontools/predicateinput.cxx
+++ b/connectivity/source/commontools/predicateinput.cxx
@@ -343,11 +343,7 @@ namespace dbtools
         if ( nType == DataType::OTHER || sField.isEmpty() )
         {
             // first try the international version
-            OUString sSql;
-            sSql += OUString("SELECT * ");
-            sSql += OUString(" FROM x WHERE ");
-            sSql += sField;
-            sSql += _rPredicateValue;
+            OUString sSql = "SELECT * FROM x WHERE " + sField + _rPredicateValue;
             ::std::auto_ptr<OSQLParseNode> pParseNode( const_cast< OSQLParser& >( m_aParser ).parseTree( sError, sSql, sal_True ) );
             nType = DataType::DOUBLE;
             if ( pParseNode.get() )
diff --git a/connectivity/source/drivers/dbase/DIndex.cxx b/connectivity/source/drivers/dbase/DIndex.cxx
index 836e198..8fbfe9b 100644
--- a/connectivity/source/drivers/dbase/DIndex.cxx
+++ b/connectivity/source/drivers/dbase/DIndex.cxx
@@ -365,10 +365,9 @@ SvStream& connectivity::dbase::operator << (SvStream &rStream, ODbaseIndex& rInd
 // -------------------------------------------------------------------------
 OUString ODbaseIndex::getCompletePath()
 {
-    OUString sDir = m_pTable->getConnection()->getURL();
-    sDir += OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_DELIMITER);
-    sDir += m_Name;
-    sDir += OUString(".ndx");
+    OUString sDir = m_pTable->getConnection()->getURL() +
+        OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_DELIMITER) +
+        m_Name + ".ndx";
     return sDir;
 }
 //------------------------------------------------------------------
@@ -420,10 +419,9 @@ sal_Bool ODbaseIndex::DropImpl()
     }
 
     // synchronize inf-file
-    OUString sCfgFile(m_pTable->getConnection()->getURL());
-    sCfgFile += OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_DELIMITER);

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list