Kaydet (Commit) 85713e8a authored tarafından Thomas Arnhold's avatar Thomas Arnhold

callcatcher: actually remove the correct SetTempNameBaseDirectory

üst 24d33367
...@@ -65,13 +65,6 @@ public: ...@@ -65,13 +65,6 @@ public:
// Only create a name for a temporary file that would be valid at that moment. // Only create a name for a temporary file that would be valid at that moment.
static String CreateTempName( const String* pParent=NULL ); static String CreateTempName( const String* pParent=NULL );
// The TempNameBase is a folder in the default ( system ) tempfile folder.
// This subfolder will be used if a TempFile or TempName is created without a parent name.
// The caller of the SetTempNameBase is responsible for deleting this folder and all temporary files in it.
// The argument must be a simple name, not a complete URL.
// The return value of both methods is the complete URL of the tempname base folder.
static String SetTempNameBaseDirectory( const String &rBaseName );
}; };
#endif #endif
......
...@@ -267,26 +267,4 @@ String TempFile::GetName() const ...@@ -267,26 +267,4 @@ String TempFile::GetName() const
return aTmp; return aTmp;
} }
String TempFile::SetTempNameBaseDirectory( const String &rBaseName )
{
String aName( rBaseName );
::rtl::OUString& rTempNameBase_Impl = TempNameBase_Impl::get();
FileBase::RC err= Directory::create( aName );
if ( err == FileBase::E_None || err == FileBase::E_EXIST )
{
rTempNameBase_Impl = aName;
rTempNameBase_Impl += String( '/' );
TempFile aBase( NULL, sal_True );
if ( aBase.IsValid() )
rTempNameBase_Impl = aBase.pImp->aName;
}
rtl::OUString aTmp;
aTmp = rTempNameBase_Impl;
return aTmp;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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