]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
fix warnings (double to int conversions and unused variables); removed hard TABs...
[wxWidgets.git] / src / common / filefn.cpp
index dd790a84310bf95dde44a061b88f74ff59fc3881..5c8e11038e1d691438a722ece582b44d71105872 100644 (file)
@@ -1295,9 +1295,7 @@ wxChar *wxGetTempFileName(const wxString& prefix, wxChar *buf)
 bool wxGetTempFileName(const wxString& prefix, wxString& buf)
 {
 #if wxUSE_FILE
-    wxChar *cbuf = wxGetTempFileName(prefix);
-    buf = cbuf;
-    delete [] buf;
+    buf = wxFileName::CreateTempFileName(prefix);
 
     return !buf.empty();
 #else // !wxUSE_FILE