summaryrefslogtreecommitdiff
path: root/fpicker
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 /fpicker
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 'fpicker')
-rw-r--r--fpicker/source/office/OfficeFilePicker.cxx4
-rw-r--r--fpicker/source/office/OfficeFolderPicker.cxx2
-rw-r--r--fpicker/source/office/fpsmartcontent.cxx2
-rw-r--r--fpicker/source/office/iodlg.cxx6
-rw-r--r--fpicker/source/office/iodlgimp.cxx2
5 files changed, 8 insertions, 8 deletions
diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx
index 3ec8b9fc655f..7eba162c8720 100644
--- a/fpicker/source/office/OfficeFilePicker.cxx
+++ b/fpicker/source/office/OfficeFilePicker.cxx
@@ -606,7 +606,7 @@ Sequence< OUString > SAL_CALL SvtFilePicker::getFiles() throw( RuntimeException
Sequence< OUString > aPath( nTotal );
if ( nCount == 1 )
- aPath[0] = OUString(aPathList[0]);
+ aPath[0] = aPathList[0];
else if ( nCount > 1 )
{
INetURLObject aObj(aPathList[0]);
@@ -1132,7 +1132,7 @@ Sequence< OUString > SvtFilePicker::impl_getStaticSupportedServiceNames()
{
Sequence< OUString > seqServiceNames( 1 );
OUString* pArray = seqServiceNames.getArray();
- pArray[0] = OUString( "com.sun.star.ui.dialogs.OfficeFilePicker" );
+ pArray[0] = "com.sun.star.ui.dialogs.OfficeFilePicker";
return seqServiceNames ;
}
diff --git a/fpicker/source/office/OfficeFolderPicker.cxx b/fpicker/source/office/OfficeFolderPicker.cxx
index 8a00b202fb65..37274d831e4b 100644
--- a/fpicker/source/office/OfficeFolderPicker.cxx
+++ b/fpicker/source/office/OfficeFolderPicker.cxx
@@ -175,7 +175,7 @@ Sequence< OUString > SAL_CALL SvtFolderPicker::getSupportedServiceNames() throw(
Sequence< OUString > SvtFolderPicker::impl_getStaticSupportedServiceNames()
{
Sequence< OUString > seqServiceNames(1);
- seqServiceNames[0] = OUString( "com.sun.star.ui.dialogs.OfficeFolderPicker" );
+ seqServiceNames[0] = "com.sun.star.ui.dialogs.OfficeFolderPicker";
return seqServiceNames ;
}
diff --git a/fpicker/source/office/fpsmartcontent.cxx b/fpicker/source/office/fpsmartcontent.cxx
index 27cc7efb075c..afd374ba5ca0 100644
--- a/fpicker/source/office/fpsmartcontent.cxx
+++ b/fpicker/source/office/fpsmartcontent.cxx
@@ -326,7 +326,7 @@ namespace svt
ucbhelper::Content aCreated;
Sequence< OUString > aNames( 1 );
OUString* pNames = aNames.getArray();
- pNames[0] = OUString( "Title" );
+ pNames[0] = "Title";
Sequence< Any > aValues( 1 );
Any* pValues = aValues.getArray();
pValues[0] = makeAny( _rTitle );
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index ffa611175ddb..009b61d7fcb0 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -2025,8 +2025,8 @@ short SvtFileDialog::PrepareExecute()
Reference< XCommandEnvironment >(),
comphelper::getProcessComponentContext() );
Sequence< OUString > aProps(2);
- aProps[0] = OUString( "IsVolume" );
- aProps[1] = OUString( "IsRemoveable" );
+ aProps[0] = "IsVolume";
+ aProps[1] = "IsRemoveable";
Reference< XResultSet > xResultSet
= aCnt.createCursor( aProps, ::ucbhelper::INCLUDE_FOLDERS_ONLY );
@@ -2117,7 +2117,7 @@ short SvtFileDialog::PrepareExecute()
nPos = nFilterCount;
while ( nPos-- )
{
- if ( aAll != OUString( GetFilterName( nPos ) ) )
+ if ( aAll != GetFilterName( nPos ) )
break;
}
}
diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx
index 1817d355412e..d1a9b00b8f99 100644
--- a/fpicker/source/office/iodlgimp.cxx
+++ b/fpicker/source/office/iodlgimp.cxx
@@ -323,7 +323,7 @@ void SvtExpFileDlg_Impl::InsertFilterListEntry( const SvtFileDialogFilter_Impl*
{
OUString sName = _pFilterDesc->GetName();
if ( _pFilterDesc->isGroupSeparator() )
- sName = OUString( "------------------------------------------" );
+ sName = "------------------------------------------";
else
sName = _pFilterDesc->GetName();