summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-15 11:05:19 +0200
committerNoel Grandin <noel@peralex.com>2013-11-19 10:29:31 +0200
commit610b2b94b33b0fc2d79cd515f9e293ca1c2610e8 (patch)
tree6eab2639cb8104ca54daa3f7a2ebd83ef1566cf0 /sc/source/ui
parent2c35fff7eca3a143d28dc75e6a73fe1101d2af77 (diff)
remove unnecessary use of OUString constructor when assigning
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/cctrl/tbzoomsliderctrl.cxx4
-rw-r--r--sc/source/ui/docshell/docfunc.cxx6
-rw-r--r--sc/source/ui/docshell/docsh8.cxx6
-rw-r--r--sc/source/ui/unoobj/celllistsource.cxx4
-rw-r--r--sc/source/ui/unoobj/cellvaluebinding.cxx8
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx4
-rw-r--r--sc/source/ui/unoobj/scdetect.cxx2
-rw-r--r--sc/source/ui/unoobj/shapeuno.cxx4
-rw-r--r--sc/source/ui/unoobj/unodoc.cxx2
-rw-r--r--sc/source/ui/vba/vbaname.cxx2
-rw-r--r--sc/source/ui/vba/vbapagesetup.cxx2
-rw-r--r--sc/source/ui/vba/vbarange.cxx2
-rw-r--r--sc/source/ui/view/viewfun4.cxx2
13 files changed, 24 insertions, 24 deletions
diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
index 62552c29fa4b..7ad70b24d60d 100644
--- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
+++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
@@ -311,7 +311,7 @@ void ScZoomSliderWnd::MouseButtonDown( const MouseEvent& rMEvt )
aZoomSliderItem.QueryValue( a );
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aArgs( 1 );
- aArgs[0].Name = OUString( "ScalingFactor" );
+ aArgs[0].Name = "ScalingFactor";
aArgs[0].Value = a;
SfxToolBoxControl::Dispatch( m_xDispatchProvider, OUString(".uno:ScalingFactor"), aArgs );
@@ -351,7 +351,7 @@ void ScZoomSliderWnd::MouseMove( const MouseEvent& rMEvt )
aZoomSliderItem.QueryValue( a );
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aArgs( 1 );
- aArgs[0].Name = OUString( "ScalingFactor" );
+ aArgs[0].Name = "ScalingFactor";
aArgs[0].Value = a;
SfxToolBoxControl::Dispatch( m_xDispatchProvider, OUString(".uno:ScalingFactor"), aArgs );
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index b7b7621b30f4..c0295e4bfc5e 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -2894,16 +2894,16 @@ void VBA_InsertModule( ScDocument& rDoc, SCTAB nTab, const OUString& sModuleName
genModuleName = sModuleName;
else
{
- genModuleName = OUString( "Sheet1" );
+ genModuleName = "Sheet1";
nNum = 1;
}
while( xLib->hasByName( genModuleName ) )
- genModuleName = OUString( "Sheet") + OUString::number( ++nNum );
+ genModuleName = "Sheet" + OUString::number( ++nNum );
uno::Any aSourceAny;
OUString sTmpSource = sSource;
if ( sTmpSource.isEmpty() )
- sTmpSource = OUString( "Rem Attribute VBA_ModuleType=VBADocumentModule\nOption VBASupport 1\n" );
+ sTmpSource = "Rem Attribute VBA_ModuleType=VBADocumentModule\nOption VBASupport 1\n";
aSourceAny <<= sTmpSource;
uno::Reference< script::vba::XVBAModuleInfo > xVBAModuleInfo( xLib, uno::UNO_QUERY );
if ( xVBAModuleInfo.is() )
diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx
index 2df6c366875b..c0d66c7fade2 100644
--- a/sc/source/ui/docshell/docsh8.cxx
+++ b/sc/source/ui/docshell/docsh8.cxx
@@ -140,9 +140,9 @@ namespace
}
uno::Sequence<beans::PropertyValue> aProps(2);
- aProps[0].Name = OUString(SC_DBPROP_EXTENSION);
+ aProps[0].Name = SC_DBPROP_EXTENSION;
aProps[0].Value <<= OUString( aExtension );
- aProps[1].Name = OUString(SC_DBPROP_CHARSET);
+ aProps[1].Name = SC_DBPROP_CHARSET;
aProps[1].Value <<= aCharSetStr;
_rConnection = _rDrvMgr->getConnectionWithInfo( aConnUrl, aProps );
@@ -175,7 +175,7 @@ bool ScDocShell::MoveFile( const INetURLObject& rSourceObj, const INetURLObject&
uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >(),
comphelper::getProcessComponentContext() );
uno::Reference< ::com::sun::star::ucb::XCommandInfo > xInfo = aDestPath.getCommands();
- OUString aTransferName = OUString( "transfer" );
+ OUString aTransferName = "transfer";
if ( xInfo->hasCommandByName( aTransferName ) )
{
aDestPath.executeCommand( aTransferName, uno::makeAny(
diff --git a/sc/source/ui/unoobj/celllistsource.cxx b/sc/source/ui/unoobj/celllistsource.cxx
index 6578da838f05..468d48709da5 100644
--- a/sc/source/ui/unoobj/celllistsource.cxx
+++ b/sc/source/ui/unoobj/celllistsource.cxx
@@ -196,8 +196,8 @@ namespace calc
Sequence< OUString > SAL_CALL OCellListSource::getSupportedServiceNames( ) throw (RuntimeException)
{
Sequence< OUString > aServices( 2 );
- aServices[ 0 ] = OUString( "com.sun.star.table.CellRangeListSource" );
- aServices[ 1 ] = OUString( "com.sun.star.form.binding.ListEntrySource" );
+ aServices[ 0 ] = "com.sun.star.table.CellRangeListSource";
+ aServices[ 1 ] = "com.sun.star.form.binding.ListEntrySource";
return aServices;
}
diff --git a/sc/source/ui/unoobj/cellvaluebinding.cxx b/sc/source/ui/unoobj/cellvaluebinding.cxx
index 0a2ff0debffc..3aeb54715f7d 100644
--- a/sc/source/ui/unoobj/cellvaluebinding.cxx
+++ b/sc/source/ui/unoobj/cellvaluebinding.cxx
@@ -458,7 +458,7 @@ namespace calc
{
OUString sMessage( "The given type (" );
sMessage += _rType.getTypeName();
- sMessage += OUString( ") is not supported by this binding." );
+ sMessage += ") is not supported by this binding.";
// TODO: localize this error message
throw IncompatibleTypesException( sMessage, *pNonConstThis );
@@ -495,10 +495,10 @@ namespace calc
DBG_CHKTHIS( OCellValueBinding, checkConsistency_static );
Sequence< OUString > aServices( m_bListPos ? 3 : 2 );
- aServices[ 0 ] = OUString( "com.sun.star.table.CellValueBinding" );
- aServices[ 1 ] = OUString( "com.sun.star.form.binding.ValueBinding" );
+ aServices[ 0 ] = "com.sun.star.table.CellValueBinding";
+ aServices[ 1 ] = "com.sun.star.form.binding.ValueBinding";
if ( m_bListPos )
- aServices[ 2 ] = OUString( "com.sun.star.table.ListPositionCellBinding" );
+ aServices[ 2 ] = "com.sun.star.table.ListPositionCellBinding";
return aServices;
}
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 1a3afd167d36..88ac86500c06 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -2477,9 +2477,9 @@ ScChart2DataSequence::ScChart2DataSequence( ScDocument* pDoc,
// BM: don't use names of named ranges but the UI range strings
// String aStr;
// rRangeList->Format( aStr, SCR_ABS_3D, m_pDocument );
-// m_aIdentifier = OUString( aStr );
+// m_aIdentifier = aStr;
-// m_aIdentifier = OUString( "ID_");
+// m_aIdentifier = "ID_";
// static sal_Int32 nID = 0;
// m_aIdentifier += OUString::valueOf( ++nID);
}
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index 9019cf048377..f477cf91e008 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -374,7 +374,7 @@ OUString SAL_CALL ScFilterDetect::detect( uno::Sequence<beans::PropertyValue>& l
bWasReadOnly = pItem && pItem->GetValue();
const SfxFilter* pFilter = 0;
- OUString aPrefix = OUString( "private:factory/" );
+ OUString aPrefix = "private:factory/";
if( aURL.startsWith( aPrefix ) )
{
OUString aPattern = aPrefix + "scalc";
diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx
index 898f2a3d4a53..2b71b12f1be5 100644
--- a/sc/source/ui/unoobj/shapeuno.cxx
+++ b/sc/source/ui/unoobj/shapeuno.cxx
@@ -1544,12 +1544,12 @@ uno::Sequence< OUString > SAL_CALL ScShapeObj::getSupportedServiceNames( ) thro
aSupported = xSI->getSupportedServiceNames();
aSupported.realloc( aSupported.getLength() + 1 );
- aSupported[ aSupported.getLength() - 1 ] = OUString( "com.sun.star.sheet.Shape" );
+ aSupported[ aSupported.getLength() - 1 ] = "com.sun.star.sheet.Shape";
if( bIsNoteCaption )
{
aSupported.realloc( aSupported.getLength() + 1 );
- aSupported[ aSupported.getLength() - 1 ] = OUString( "com.sun.star.sheet.CellAnnotationShape" );
+ aSupported[ aSupported.getLength() - 1 ] = "com.sun.star.sheet.CellAnnotationShape";
}
return aSupported;
diff --git a/sc/source/ui/unoobj/unodoc.cxx b/sc/source/ui/unoobj/unodoc.cxx
index 378177ae2e8d..a2cc0d72cbb7 100644
--- a/sc/source/ui/unoobj/unodoc.cxx
+++ b/sc/source/ui/unoobj/unodoc.cxx
@@ -38,7 +38,7 @@ OUString SAL_CALL ScDocument_getImplementationName() throw()
uno::Sequence< OUString > SAL_CALL ScDocument_getSupportedServiceNames() throw()
{
uno::Sequence< OUString > aSeq( 1 );
- aSeq[0] = OUString( "com.sun.star.sheet.SpreadsheetDocument" );
+ aSeq[0] = "com.sun.star.sheet.SpreadsheetDocument";
return aSeq;
}
diff --git a/sc/source/ui/vba/vbaname.cxx b/sc/source/ui/vba/vbaname.cxx
index 3c3d44859750..903949a58263 100644
--- a/sc/source/ui/vba/vbaname.cxx
+++ b/sc/source/ui/vba/vbaname.cxx
@@ -238,7 +238,7 @@ ScVbaName::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString( "ooo.vba.excel.Name" );
+ aServiceNames[ 0 ] = "ooo.vba.excel.Name";
}
return aServiceNames;
}
diff --git a/sc/source/ui/vba/vbapagesetup.cxx b/sc/source/ui/vba/vbapagesetup.cxx
index f0b801e31c4a..a73551223613 100644
--- a/sc/source/ui/vba/vbapagesetup.cxx
+++ b/sc/source/ui/vba/vbapagesetup.cxx
@@ -666,7 +666,7 @@ ScVbaPageSetup::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString( "ooo.vba.excel.PageSetup" );
+ aServiceNames[ 0 ] = "ooo.vba.excel.PageSetup";
}
return aServiceNames;
}
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 443c6e1556f6..1b9f6e8b8b4f 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -5630,7 +5630,7 @@ ScVbaRange::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = OUString( "ooo.vba.excel.Range" );
+ aServiceNames[ 0 ] = "ooo.vba.excel.Range";
}
return aServiceNames;
}
diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx
index 91584fd1f50c..7217b9a3a2fc 100644
--- a/sc/source/ui/view/viewfun4.cxx
+++ b/sc/source/ui/view/viewfun4.cxx
@@ -668,7 +668,7 @@ sal_Bool ScViewFunc::PasteFile( const Point& rPos, const OUString& rFile, sal_Bo
//TODO/LATER: what about "bLink"?
uno::Sequence < beans::PropertyValue > aMedium(1);
- aMedium[0].Name = OUString( "URL" );
+ aMedium[0].Name = "URL";
aMedium[0].Value <<= OUString( aStrURL );
comphelper::EmbeddedObjectContainer aCnt( xStorage );