Update of /cvsroot/mahogany/M/src/mail
In directory sc8-pr-cvs1:/tmp/cvs-serv12493/src/mail
Modified Files:
SendMessageCC.cpp
Log Message:
use wxFileName::CreateTempFileName() properly
Index: SendMessageCC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/SendMessageCC.cpp,v
retrieving revision 1.217
retrieving revision 1.218
diff -b -u -2 -r1.217 -r1.218
--- SendMessageCC.cpp 12 Oct 2003 22:03:37 -0000 1.217
+++ SendMessageCC.cpp 15 Oct 2003 23:13:25 -0000 1.218
@@ -58,4 +58,5 @@
#include <wx/file.h>
+#include <wx/filename.h>
#include <wx/datetime.h>
@@ -1711,14 +1712,8 @@
// write to temp file:
-#if 1 // VZ: wxGetTempFileName() is broken beyond repair, don't use it for now (NB -
maybe not already?)
- const wxChar *filename = wxGetTempFileName(_T("Mtemp"));
-#else
- // tmpnam() is POSIX, so use it even if mk(s)temp() would be better
- // because here we have a race condition
- const char *filename = tmpnam(NULL);
-#endif
+ const String filename = wxFileName::CreateTempFileName(_T("Mtemp"));
bool success = false;
- if ( filename )
+ if ( !filename.empty() )
{
wxFile out;
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates