diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-15 11:05:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-19 10:29:31 +0200 |
commit | 610b2b94b33b0fc2d79cd515f9e293ca1c2610e8 (patch) | |
tree | 6eab2639cb8104ca54daa3f7a2ebd83ef1566cf0 /dbaccess | |
parent | 2c35fff7eca3a143d28dc75e6a73fe1101d2af77 (diff) |
remove unnecessary use of OUString constructor when assigning
change code like
aStr = OUString("xxxx");
to
aStr = "xxxx";
Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
Diffstat (limited to 'dbaccess')
10 files changed, 14 insertions, 14 deletions
diff --git a/dbaccess/source/ext/macromigration/macromigrationwizard.cxx b/dbaccess/source/ext/macromigration/macromigrationwizard.cxx index 4c2212271779..f5a73241d23e 100644 --- a/dbaccess/source/ext/macromigration/macromigrationwizard.cxx +++ b/dbaccess/source/ext/macromigration/macromigrationwizard.cxx @@ -153,7 +153,7 @@ namespace dbmm Sequence< OUString > SAL_CALL MacroMigrationDialogService::getSupportedServiceNames_static() throw(RuntimeException) { Sequence< OUString > aServices(1); - aServices[0] = OUString( "com.sun.star.sdb.application.MacroMigrationWizard" ); + aServices[0] = "com.sun.star.sdb.application.MacroMigrationWizard"; return aServices; } diff --git a/dbaccess/source/ext/macromigration/migrationengine.cxx b/dbaccess/source/ext/macromigration/migrationengine.cxx index 34040d6cc205..99512571e71f 100644 --- a/dbaccess/source/ext/macromigration/migrationengine.cxx +++ b/dbaccess/source/ext/macromigration/migrationengine.cxx @@ -286,7 +286,7 @@ namespace dbmm Reference< XCommandProcessor > xCommandProcessor( _rDocument.xCommandProcessor, UNO_SET_THROW ); Command aCommand; - aCommand.Name = OUString( "openDesign" ); + aCommand.Name = "openDesign"; aCommand.Argument <<= aLoadArgs.getPropertyValues(); Reference< XComponent > xDocComponent( xCommandProcessor->execute( diff --git a/dbaccess/source/sdbtools/connection/connectiontools.cxx b/dbaccess/source/sdbtools/connection/connectiontools.cxx index cd212eab1780..5a218c3533b7 100644 --- a/dbaccess/source/sdbtools/connection/connectiontools.cxx +++ b/dbaccess/source/sdbtools/connection/connectiontools.cxx @@ -119,7 +119,7 @@ namespace sdbtools Sequence< OUString > SAL_CALL ConnectionTools::getSupportedServiceNames_static() { Sequence< OUString > aSupported( 1 ); - aSupported[0] = OUString( "com.sun.star.sdb.tools.ConnectionTools" ); + aSupported[0] = "com.sun.star.sdb.tools.ConnectionTools"; return aSupported; } diff --git a/dbaccess/source/ui/app/subcomponentmanager.cxx b/dbaccess/source/ui/app/subcomponentmanager.cxx index 1dcbe7cdefb0..f46db0297407 100644 --- a/dbaccess/source/ui/app/subcomponentmanager.cxx +++ b/dbaccess/source/ui/app/subcomponentmanager.cxx @@ -275,7 +275,7 @@ namespace dbaui sal_Int32 nCommandIdentifier = _rxCommandProcessor->createCommandIdentifier(); Command aCommand; - aCommand.Name = OUString( "close" ); + aCommand.Name = "close"; _rxCommandProcessor->execute( aCommand, nCommandIdentifier, NULL ); bSuccess = true; } diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx index dd362aaf8dfe..3e5a3c797b6f 100644 --- a/dbaccess/source/ui/browser/brwctrlr.cxx +++ b/dbaccess/source/ui/browser/brwctrlr.cxx @@ -433,7 +433,7 @@ OUString SAL_CALL SbaXDataBrowserController::FormControllerImpl::getMode( ) thr Sequence< OUString > SAL_CALL SbaXDataBrowserController::FormControllerImpl::getSupportedModes( ) throw (RuntimeException) { Sequence< OUString > aModes(1); - aModes[1] = OUString( "DataMode" ); + aModes[1] = "DataMode"; return aModes; } diff --git a/dbaccess/source/ui/dlg/queryorder.cxx b/dbaccess/source/ui/dlg/queryorder.cxx index 12aa23c5fd59..0536babe0476 100644 --- a/dbaccess/source/ui/dlg/queryorder.cxx +++ b/dbaccess/source/ui/dlg/queryorder.cxx @@ -155,8 +155,8 @@ void DlgOrderCrit::impl_initializeOrderList_nothrow() { try { - const OUString sNameProperty = OUString( "Name" ); - const OUString sAscendingProperty = OUString( "IsAscending" ); + const OUString sNameProperty = "Name"; + const OUString sAscendingProperty = "IsAscending"; Reference< XIndexAccess > xOrderColumns( m_xQueryComposer->getOrderColumns(), UNO_QUERY_THROW ); sal_Int32 nColumns = xOrderColumns->getCount(); diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx index 4b4a5bbab3a0..d728f25b39d1 100644 --- a/dbaccess/source/ui/misc/WCopyTable.cxx +++ b/dbaccess/source/ui/misc/WCopyTable.cxx @@ -892,7 +892,7 @@ IMPL_LINK_NOARG(OCopyTableWizard, ImplOKHdl) m_bCreatePrimaryKeyColumn = sal_True; m_aKeyName = pPage->GetKeyName(); if ( m_aKeyName.isEmpty() ) - m_aKeyName = OUString( "ID" ); + m_aKeyName = "ID"; m_aKeyName = createUniqueName( m_aKeyName ); sal_Int32 nBreakPos2 = 0; CheckColumns(nBreakPos2); diff --git a/dbaccess/source/ui/misc/linkeddocuments.cxx b/dbaccess/source/ui/misc/linkeddocuments.cxx index efcd1f5bbc15..56220db3f8dc 100644 --- a/dbaccess/source/ui/misc/linkeddocuments.cxx +++ b/dbaccess/source/ui/misc/linkeddocuments.cxx @@ -138,7 +138,7 @@ namespace dbaui switch ( _eOpenMode ) { case E_OPEN_NORMAL: - sOpenMode = OUString( "open" ); + sOpenMode = "open"; break; case E_OPEN_FOR_MAIL: @@ -146,7 +146,7 @@ namespace dbaui // fall through case E_OPEN_DESIGN: - sOpenMode = OUString( "openDesign" ); + sOpenMode = "openDesign"; break; default: @@ -301,7 +301,7 @@ namespace dbaui aCommandArgs.put( "OpenMode", aOpenModeArg ); Command aCommand; - aCommand.Name = OUString( "openDesign" ); + aCommand.Name = "openDesign"; aCommand.Argument <<= aCommandArgs.getPropertyValues(); WaitObject aWaitCursor( m_pDialogParent ); xNewDocument.set( xContent->execute( aCommand, xContent->createCommandIdentifier(), NULL ), UNO_QUERY ); diff --git a/dbaccess/source/ui/querydesign/TableFieldDescription.cxx b/dbaccess/source/ui/querydesign/TableFieldDescription.cxx index e70b23b2d93c..92cd40c0c81c 100644 --- a/dbaccess/source/ui/querydesign/TableFieldDescription.cxx +++ b/dbaccess/source/ui/querydesign/TableFieldDescription.cxx @@ -208,7 +208,7 @@ void OTableFieldDesc::Save( ::comphelper::NamedValueCollection& o_rSettings, con ++crit, ++c ) { - aCriteria[c].Name = OUString( "Criterion_" ) + OUString::number( c ); + aCriteria[c].Name = "Criterion_" + OUString::number( c ); aCriteria[c].Value <<= *crit; } diff --git a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx index 63724e5a4d31..a21f771998fd 100644 --- a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx +++ b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx @@ -59,7 +59,7 @@ long LimitBoxImpl::Notify( NotifyEvent& rNEvt ) { nHandled = LimitBox::Notify( rNEvt ); uno::Sequence< beans::PropertyValue > aArgs( 1 ); - aArgs[0].Name = OUString( "DBLimit.Value" ); + aArgs[0].Name = "DBLimit.Value"; aArgs[0].Value = uno::makeAny( GetValue() ); m_pControl->dispatchCommand( aArgs ); break; @@ -225,7 +225,7 @@ void LimitBoxController::dispatchCommand( uno::Reference< frame::XDispatch > xDispatch; uno::Reference< util::XURLTransformer > xURLTransformer = getURLTransformer(); - aURL.Complete = OUString( ".uno:DBLimit" ); + aURL.Complete = ".uno:DBLimit"; xURLTransformer->parseStrict( aURL ); xDispatch = xDispatchProvider->queryDispatch( aURL, OUString(), 0 ); if ( xDispatch.is() ) |