utl::TempFile::CreateTempName pParent is unused

Change-Id: Ide12ea21104af678dc541ed0e83970e7a2f5e694
This commit is contained in:
Stephan Bergmann
2014-05-13 15:09:10 +02:00
parent a93bb27aa4
commit 404e4d613e
3 changed files with 4 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ public:
If you want to convert file name into a URL, always use class LocalFileHelper, but never use any If you want to convert file name into a URL, always use class LocalFileHelper, but never use any
conversion functions of osl. conversion functions of osl.
*/ */
static OUString CreateTempName( const OUString* pParent=NULL ); static OUString CreateTempName();
/** /**
The TempNameBaseDirectory is a subfolder in the folder that is passed as a "physical" file name in the The TempNameBaseDirectory is a subfolder in the folder that is passed as a "physical" file name in the

View File

@@ -1093,7 +1093,7 @@ IMPL_LINK(SwMailMergeOutputPage, SendDocumentsHdl_Impl, PushButton*, pButton)
//then save it //then save it
SfxStringItem aName(SID_FILE_NAME, SfxStringItem aName(SID_FILE_NAME,
URIHelper::SmartRel2Abs( URIHelper::SmartRel2Abs(
INetURLObject(), utl::TempFile::CreateTempName(0), INetURLObject(), utl::TempFile::CreateTempName(),
URIHelper::GetMaybeFileHdl()) ); URIHelper::GetMaybeFileHdl()) );
{ {

View File

@@ -317,10 +317,10 @@ void lcl_createName(TempFile_Impl& _rImpl,const OUString& rLeadingChars, bool _b
} }
} }
OUString TempFile::CreateTempName( const OUString* pParent ) OUString TempFile::CreateTempName()
{ {
// get correct directory // get correct directory
OUString aName = ConstructTempDir_Impl( pParent ); OUString aName = ConstructTempDir_Impl( 0 );
// get TempFile name with default naming scheme // get TempFile name with default naming scheme
CreateTempName_Impl( aName, false ); CreateTempName_Impl( aName, false );