summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-04 09:19:35 +0200
committerNoel Grandin <noel@peralex.com>2013-11-08 14:51:00 +0200
commit272e48c681cf80b978d3cfc9c8d843bc7d1e71d2 (patch)
treec9f2ce3ca306c598bfcbd2f1855a3110efdad126 /sd/source
parent9d7712b48ddaa0f308b669625b5ebbb1a3e75634 (diff)
remove unnecessary use of OUString constructor in SD module
Change-Id: Id3591b232b43deeb70e3e2fffb5c6a8f561223dd
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/core/drawdoc4.cxx2
-rw-r--r--sd/source/filter/html/HtmlOptionsDialog.cxx3
-rw-r--r--sd/source/filter/html/buttonset.cxx2
-rw-r--r--sd/source/ui/func/fuinsfil.cxx2
-rw-r--r--sd/source/ui/remotecontrol/ImagePreparer.cxx2
-rw-r--r--sd/source/ui/unoidl/sddetect.cxx8
-rw-r--r--sd/source/ui/view/DocumentRenderer.cxx6
7 files changed, 12 insertions, 13 deletions
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index daa51ca9dd6d..5084044a773b 100644
--- a/sd/source/core/drawdoc4.cxx
+++ b/sd/source/core/drawdoc4.cxx
@@ -1056,7 +1056,7 @@ OUString SdDrawDocument::CreatePageNumValue(sal_uInt16 nNum) const
aPageNumValue += SvxNumberFormat::CreateRomanString(nNum, bUpper);
break;
case SVX_NUMBER_NONE:
- aPageNumValue = OUString(" ");
+ aPageNumValue = " ";
break;
default:
aPageNumValue += OUString::number(nNum);
diff --git a/sd/source/filter/html/HtmlOptionsDialog.cxx b/sd/source/filter/html/HtmlOptionsDialog.cxx
index 75c7e74df591..25c94ea616dc 100644
--- a/sd/source/filter/html/HtmlOptionsDialog.cxx
+++ b/sd/source/filter/html/HtmlOptionsDialog.cxx
@@ -121,8 +121,7 @@ Sequence< OUString > SAL_CALL SdHtmlOptionsDialog_getSupportedServiceNames()
throw( RuntimeException )
{
Sequence< OUString > aRet(1);
- OUString* pArray = aRet.getArray();
- pArray[0] = OUString("com.sun.star.ui.dialog.FilterOptionsDialog");
+ aRet[0] = "com.sun.star.ui.dialog.FilterOptionsDialog";
return aRet;
}
diff --git a/sd/source/filter/html/buttonset.cxx b/sd/source/filter/html/buttonset.cxx
index 9e0c36acd227..4ff9f578777d 100644
--- a/sd/source/filter/html/buttonset.cxx
+++ b/sd/source/filter/html/buttonset.cxx
@@ -94,7 +94,7 @@ bool ButtonsImpl::getGraphic( const Reference< XGraphicProvider >& xGraphicProvi
if( xInputStream.is() && xGraphicProvider.is() ) try
{
Sequence< PropertyValue > aMediaProperties( 1 );
- aMediaProperties[0].Name = OUString("InputStream" );
+ aMediaProperties[0].Name = "InputStream";
aMediaProperties[0].Value <<= xInputStream;
Reference< XGraphic > xGraphic( xGraphicProvider->queryGraphic( aMediaProperties ) );
diff --git a/sd/source/ui/func/fuinsfil.cxx b/sd/source/ui/func/fuinsfil.cxx
index dbcd8267b1ed..9fbaafce1399 100644
--- a/sd/source/ui/func/fuinsfil.cxx
+++ b/sd/source/ui/func/fuinsfil.cxx
@@ -158,7 +158,7 @@ void FuInsertFile::DoExecute( SfxRequest& rReq )
xFilterManager->appendFilter( pFilter->GetUIName(), pFilter->GetDefaultExtension() );
// get Powerpoint filter
- OUString aExt = OUString(".ppt");
+ OUString aExt = ".ppt";
pFilter = aMatch.GetFilter4Extension( aExt );
if( pFilter )
xFilterManager->appendFilter( pFilter->GetUIName(), pFilter->GetDefaultExtension() );
diff --git a/sd/source/ui/remotecontrol/ImagePreparer.cxx b/sd/source/ui/remotecontrol/ImagePreparer.cxx
index 34b41bcb47d2..f9641b0b4951 100644
--- a/sd/source/ui/remotecontrol/ImagePreparer.cxx
+++ b/sd/source/ui/remotecontrol/ImagePreparer.cxx
@@ -386,7 +386,7 @@ sal_Bool ExportTo( uno::Reference< drawing::XDrawPage>& aNotesPage, OUString aUr
if ( !bHasBaseURL )
{
aArgs.realloc ( ++nEnd );
- aArgs[nEnd-1].Name = OUString( "DocumentBaseURL" );
+ aArgs[nEnd-1].Name = "DocumentBaseURL";
aArgs[nEnd-1].Value <<= rMedium.GetBaseURL( sal_True );
}
diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx
index e340e017dbd8..0fddd1be6459 100644
--- a/sd/source/ui/unoidl/sddetect.cxx
+++ b/sd/source/ui/unoidl/sddetect.cxx
@@ -189,7 +189,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
bWasReadOnly = pItem && pItem->GetValue();
const SfxFilter* pFilter = 0;
- OUString aPrefix = OUString("private:factory/");
+ OUString aPrefix = "private:factory/";
if( aURL.startsWith( aPrefix ) )
{
if( SvtModuleOptions().IsImpress() )
@@ -313,7 +313,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
if ( !bRepairAllowed )
{
- aTypeName = OUString();
+ aTypeName = "";
pFilter = 0;
}
}
@@ -324,7 +324,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
}
catch( Exception& )
{
- aTypeName = OUString();
+ aTypeName = "";
pFilter = 0;
}
@@ -497,7 +497,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
}
if (!pFilter)
- aTypeName = OUString();
+ aTypeName = "";
return aTypeName;
}
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx
index 89141cd0a8c6..ceac0ac6e21f 100644
--- a/sd/source/ui/view/DocumentRenderer.cxx
+++ b/sd/source/ui/view/DocumentRenderer.cxx
@@ -393,7 +393,7 @@ namespace {
{
// load the writer PrinterOptions into the custom tab
beans::PropertyValue aOptionsUIFile;
- aOptionsUIFile.Name = OUString("OptionsUIFile");
+ aOptionsUIFile.Name = "OptionsUIFile";
if( mbImpress )
aOptionsUIFile.Value <<= OUString("modules/simpress/ui/printeroptions.ui");
else
@@ -1495,7 +1495,7 @@ private:
if (mpOptions->IsDate())
{
aInfo.msTimeDate += GetSdrGlobalData().GetLocaleData()->getDate( Date( Date::SYSTEM ) );
- aInfo.msTimeDate += OUString((sal_Unicode)' ');
+ aInfo.msTimeDate += " ";
}
if (mpOptions->IsTime())
@@ -2002,7 +2002,7 @@ private:
if (mpOptions->IsPrintPageName())
{
rInfo.msPageString = pPage->GetName();
- rInfo.msPageString += OUString(sal_Unicode(' '));
+ rInfo.msPageString += " ";
}
else
rInfo.msPageString = "";