diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-06 02:24:16 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-12 16:20:15 +0100 |
commit | a548924aece3dc99b2aa36b5c9b0fa52de9951ae (patch) | |
tree | ffdef75d5a8a3353cbbff675b0f9e710ab3abbcf /tools/inc | |
parent | e75fba46b0080df4fb415bdefacf74a167b6cb6e (diff) |
tempfile: Creating tempfiles in a given folder is not used
It's always the case, that the default temp folder is used. aName and
aRet are always empty, pParent is no longer used. So the pParent
argument makes no sense anymore.
bDirectory makes no sense without pParent and is apparently unused
(always sal_False by default).
The include of tools/tempfile.hxx in unotools/tempfile.cxx in not
necessary.
Conflicts:
tools/source/fsys/tempfile.cxx
Change-Id: I9c53b263a640e53140a8ae8795181b1c5e43f26d
Diffstat (limited to 'tools/inc')
-rw-r--r-- | tools/inc/tools/tempfile.hxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tools/inc/tools/tempfile.hxx b/tools/inc/tools/tempfile.hxx index 9e84adc96a51..8ef8c574cf7c 100644 --- a/tools/inc/tools/tempfile.hxx +++ b/tools/inc/tools/tempfile.hxx @@ -29,19 +29,18 @@ class TOOLS_DLLPUBLIC TempFile sal_Bool bKillingFileEnabled; public: - /** Create a temporary file or directory in a given folder or the default - tempfile folder. */ - TempFile( const String* pParent=NULL, sal_Bool bDirectory=sal_False ); + /** Create a temporary file in the default tempfile folder. */ + TempFile(); - /** Create a temporary file or directory in a given folder or the default - tempfile folder; its name starts with some given characters followed by - a counter ( example: rLeadingChars="abc" means "abc0","abc1" and so on, - depending on existing files in that folder ). + /** Create a temporary file in the default tempfile folder; its name starts + with some given characters followed by a counter ( example: + rLeadingChars="abc" means "abc0", "abc1" and so on, depending on + existing files in that folder ). The extension string may be f.e. ".txt" or "", if no extension string is given, ".tmp" is used. */ - TempFile( const String& rLeadingChars, const String* pExtension=NULL, const String* pParent=NULL, sal_Bool bDirectory=sal_False ); + TempFile( const String& rLeadingChars, const String* pExtension=NULL ); /** TempFile will be removed from disk in dtor if EnableKillingTempFile was called before. TempDirs will be removed recursively in that case. */ @@ -59,7 +58,7 @@ public: sal_Bool IsKillingFileEnabled() const { return bKillingFileEnabled; } /** 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(); }; #endif |