diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-06-29 23:57:38 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-06-30 04:58:49 +0000 |
commit | 710f41b7aec8e7d35a0da8be332aa289f98942af (patch) | |
tree | b894ef2d3f06a63a85f423b2713a654ea57f9c69 /include/tools/tempfile.hxx | |
parent | 1ca3beae12a7f222c987481e07a544845fc9fd46 (diff) |
Clean String and sal_Bool in tools
Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655
Reviewed-on: https://gerrit.libreoffice.org/4627
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'include/tools/tempfile.hxx')
-rw-r--r-- | include/tools/tempfile.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/tools/tempfile.hxx b/include/tools/tempfile.hxx index 8ef8c574cf7c..8d43c18a6df9 100644 --- a/include/tools/tempfile.hxx +++ b/include/tools/tempfile.hxx @@ -19,14 +19,14 @@ #ifndef _TOOLS_TEMPFILE_HXX #define _TOOLS_TEMPFILE_HXX -#include <tools/string.hxx> +#include <rtl/ustring.hxx> #include "tools/toolsdllapi.h" struct TempFile_Impl; class TOOLS_DLLPUBLIC TempFile { TempFile_Impl* pImp; - sal_Bool bKillingFileEnabled; + bool bKillingFileEnabled; public: /** Create a temporary file in the default tempfile folder. */ @@ -40,25 +40,25 @@ public: 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 ); + TempFile( const OUString& rLeadingChars, const OUString* pExtension=NULL ); /** TempFile will be removed from disk in dtor if EnableKillingTempFile was called before. TempDirs will be removed recursively in that case. */ ~TempFile(); - sal_Bool IsValid() const; + bool IsValid() const; /** Returns the real name of the tempfile in file URL scheme. */ - String GetName() const; + OUString GetName() const; /** If enabled the file will be removed from disk when the dtor is called (default is not enabled) */ - void EnableKillingFile( sal_Bool bEnable=sal_True ) { bKillingFileEnabled = bEnable; } + void EnableKillingFile( bool bEnable=true ) { bKillingFileEnabled = bEnable; } - sal_Bool IsKillingFileEnabled() const { return bKillingFileEnabled; } + bool IsKillingFileEnabled() const { return bKillingFileEnabled; } /** Only create a name for a temporary file that would be valid at that moment. */ - static String CreateTempName(); + static OUString CreateTempName(); }; #endif |