Kaydet (Commit) fb3778b2 authored tarafından Michael Stahl's avatar Michael Stahl

... fix more -Werror=address (wrong TempFile ctor called)

Change-Id: I19b2195a5e524f8c485f904989f1c604fca9612f
üst 23326c48
......@@ -429,9 +429,8 @@ void XMLFilterTestDialog::doExport( Reference< XComponent > xComp )
Reference< XStorable > xStorable( xComp, UNO_QUERY );
if( xStorable.is() )
{
String leadingChars;
OUString const ext(RTL_CONSTASCII_USTRINGPARAM(".xml"));
utl::TempFile aTempFile(leadingChars, &ext);
utl::TempFile aTempFile(OUString(), &ext);
OUString aTempFileURL( aTempFile.GetURL() );
const application_info_impl* pAppInfo = getApplicationInfo( m_pFilterInfo->maExportService );
......@@ -593,9 +592,8 @@ void XMLFilterTestDialog::import( const OUString& rURL )
if( m_pCBXDisplaySource->IsChecked() )
{
String lead;
OUString const ext(RTL_CONSTASCII_USTRINGPARAM(".xml"));
TempFile aTempFile(lead, &ext);
TempFile aTempFile(OUString(), &ext);
OUString aTempFileURL( aTempFile.GetURL() );
Reference< XImportFilter > xImporter( mxContext->getServiceManager()->createInstanceWithContext( "com.sun.star.documentconversion.XSLTFilter", mxContext ), UNO_QUERY );
......
......@@ -3642,7 +3642,7 @@ OUString SfxMedium::SwitchDocumentToTempFile()
OUString const aExt = (nPrefixLen == -1)
? OUString()
: aOrigURL.copy(nPrefixLen);
OUString aNewURL = ::utl::TempFile( String(), &aExt ).GetURL();
OUString aNewURL = ::utl::TempFile( OUString(), &aExt ).GetURL();
// TODO/LATER: In future the aLogicName should be set to shared folder URL
// and a temporary file should be created. Transport_Impl should be impossible then.
......
......@@ -396,7 +396,7 @@ IMPL_LINK(SwAddressListDialog, CreateHdl_Impl, PushButton*, pButton)
uno::Reference<sdb::XDocumentDataSource> xDS(xNewInstance, UNO_QUERY_THROW);
uno::Reference<frame::XStorable> xStore(xDS->getDatabaseDocument(), UNO_QUERY_THROW);
String sExt = OUString(".odb");
OUString const sExt(".odb");
String sTmpName;
{
OUString sHomePath(SvtPathOptions().GetWorkPath());
......
......@@ -110,9 +110,9 @@ SwMailMergeLayoutPage::SwMailMergeLayoutPage( SwMailMergeWizard* _pParent) :
{
//temp file needs it's own block
//creating with extension is not supported by a static method :-(
String sLeading;
String sExt(comphelper::string::stripStart(pSfxFlt->GetDefaultExtension(), '*'));
utl::TempFile aTempFile( sLeading, &sExt );
OUString const sExt(
comphelper::string::stripStart(pSfxFlt->GetDefaultExtension(),'*'));
utl::TempFile aTempFile( OUString(), &sExt );
m_sExampleURL = aTempFile.GetURL();
aTempFile.EnableKillingFile();
}
......
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