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 ...@@ -1056,7 +1056,7 @@ OUString SdDrawDocument::CreatePageNumValue(sal_uInt16 nNum) const
aPageNumValue += SvxNumberFormat::CreateRomanString(nNum, bUpper); aPageNumValue += SvxNumberFormat::CreateRomanString(nNum, bUpper);
break; break;
case SVX_NUMBER_NONE: case SVX_NUMBER_NONE:
aPageNumValue = OUString(" "); aPageNumValue = " ";
break; break;
default: default:
aPageNumValue += OUString::number(nNum); aPageNumValue += OUString::number(nNum);
......
...@@ -121,8 +121,7 @@ Sequence< OUString > SAL_CALL SdHtmlOptionsDialog_getSupportedServiceNames() ...@@ -121,8 +121,7 @@ Sequence< OUString > SAL_CALL SdHtmlOptionsDialog_getSupportedServiceNames()
throw( RuntimeException ) throw( RuntimeException )
{ {
Sequence< OUString > aRet(1); Sequence< OUString > aRet(1);
OUString* pArray = aRet.getArray(); aRet[0] = "com.sun.star.ui.dialog.FilterOptionsDialog";
pArray[0] = OUString("com.sun.star.ui.dialog.FilterOptionsDialog");
return aRet; return aRet;
} }
......
...@@ -94,7 +94,7 @@ bool ButtonsImpl::getGraphic( const Reference< XGraphicProvider >& xGraphicProvi ...@@ -94,7 +94,7 @@ bool ButtonsImpl::getGraphic( const Reference< XGraphicProvider >& xGraphicProvi
if( xInputStream.is() && xGraphicProvider.is() ) try if( xInputStream.is() && xGraphicProvider.is() ) try
{ {
Sequence< PropertyValue > aMediaProperties( 1 ); Sequence< PropertyValue > aMediaProperties( 1 );
aMediaProperties[0].Name = OUString("InputStream" ); aMediaProperties[0].Name = "InputStream";
aMediaProperties[0].Value <<= xInputStream; aMediaProperties[0].Value <<= xInputStream;
Reference< XGraphic > xGraphic( xGraphicProvider->queryGraphic( aMediaProperties ) ); Reference< XGraphic > xGraphic( xGraphicProvider->queryGraphic( aMediaProperties ) );
......
...@@ -158,7 +158,7 @@ void FuInsertFile::DoExecute( SfxRequest& rReq ) ...@@ -158,7 +158,7 @@ void FuInsertFile::DoExecute( SfxRequest& rReq )
xFilterManager->appendFilter( pFilter->GetUIName(), pFilter->GetDefaultExtension() ); xFilterManager->appendFilter( pFilter->GetUIName(), pFilter->GetDefaultExtension() );
// get Powerpoint filter // get Powerpoint filter
OUString aExt = OUString(".ppt"); OUString aExt = ".ppt";
pFilter = aMatch.GetFilter4Extension( aExt ); pFilter = aMatch.GetFilter4Extension( aExt );
if( pFilter ) if( pFilter )
xFilterManager->appendFilter( pFilter->GetUIName(), pFilter->GetDefaultExtension() ); xFilterManager->appendFilter( pFilter->GetUIName(), pFilter->GetDefaultExtension() );
......
...@@ -386,7 +386,7 @@ sal_Bool ExportTo( uno::Reference< drawing::XDrawPage>& aNotesPage, OUString aUr ...@@ -386,7 +386,7 @@ sal_Bool ExportTo( uno::Reference< drawing::XDrawPage>& aNotesPage, OUString aUr
if ( !bHasBaseURL ) if ( !bHasBaseURL )
{ {
aArgs.realloc ( ++nEnd ); aArgs.realloc ( ++nEnd );
aArgs[nEnd-1].Name = OUString( "DocumentBaseURL" ); aArgs[nEnd-1].Name = "DocumentBaseURL";
aArgs[nEnd-1].Value <<= rMedium.GetBaseURL( sal_True ); aArgs[nEnd-1].Value <<= rMedium.GetBaseURL( sal_True );
} }
......
...@@ -189,7 +189,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes ...@@ -189,7 +189,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
bWasReadOnly = pItem && pItem->GetValue(); bWasReadOnly = pItem && pItem->GetValue();
const SfxFilter* pFilter = 0; const SfxFilter* pFilter = 0;
OUString aPrefix = OUString("private:factory/"); OUString aPrefix = "private:factory/";
if( aURL.startsWith( aPrefix ) ) if( aURL.startsWith( aPrefix ) )
{ {
if( SvtModuleOptions().IsImpress() ) if( SvtModuleOptions().IsImpress() )
...@@ -313,7 +313,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes ...@@ -313,7 +313,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
if ( !bRepairAllowed ) if ( !bRepairAllowed )
{ {
aTypeName = OUString(); aTypeName = "";
pFilter = 0; pFilter = 0;
} }
} }
...@@ -324,7 +324,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes ...@@ -324,7 +324,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
} }
catch( Exception& ) catch( Exception& )
{ {
aTypeName = OUString(); aTypeName = "";
pFilter = 0; pFilter = 0;
} }
...@@ -497,7 +497,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes ...@@ -497,7 +497,7 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes
} }
if (!pFilter) if (!pFilter)
aTypeName = OUString(); aTypeName = "";
return aTypeName; return aTypeName;
} }
......
...@@ -393,7 +393,7 @@ namespace { ...@@ -393,7 +393,7 @@ namespace {
{ {
// load the writer PrinterOptions into the custom tab // load the writer PrinterOptions into the custom tab
beans::PropertyValue aOptionsUIFile; beans::PropertyValue aOptionsUIFile;
aOptionsUIFile.Name = OUString("OptionsUIFile"); aOptionsUIFile.Name = "OptionsUIFile";
if( mbImpress ) if( mbImpress )
aOptionsUIFile.Value <<= OUString("modules/simpress/ui/printeroptions.ui"); aOptionsUIFile.Value <<= OUString("modules/simpress/ui/printeroptions.ui");
else else
...@@ -1495,7 +1495,7 @@ private: ...@@ -1495,7 +1495,7 @@ private:
if (mpOptions->IsDate()) if (mpOptions->IsDate())
{ {
aInfo.msTimeDate += GetSdrGlobalData().GetLocaleData()->getDate( Date( Date::SYSTEM ) ); aInfo.msTimeDate += GetSdrGlobalData().GetLocaleData()->getDate( Date( Date::SYSTEM ) );
aInfo.msTimeDate += OUString((sal_Unicode)' '); aInfo.msTimeDate += " ";
} }
if (mpOptions->IsTime()) if (mpOptions->IsTime())
...@@ -2002,7 +2002,7 @@ private: ...@@ -2002,7 +2002,7 @@ private:
if (mpOptions->IsPrintPageName()) if (mpOptions->IsPrintPageName())
{ {
rInfo.msPageString = pPage->GetName(); rInfo.msPageString = pPage->GetName();
rInfo.msPageString += OUString(sal_Unicode(' ')); rInfo.msPageString += " ";
} }
else else
rInfo.msPageString = ""; 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