Kaydet (Commit) 272e48c6 authored tarafından Noel Grandin's avatar Noel Grandin

remove unnecessary use of OUString constructor in SD module

Change-Id: Id3591b232b43deeb70e3e2fffb5c6a8f561223dd
üst 9d7712b4
......@@ -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);
......
......@@ -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;
}
......
......@@ -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 ) );
......
......@@ -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() );
......
......@@ -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 );
}
......
......@@ -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;
}
......
......@@ -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 = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment