- void AssignTempFileName(const wxString& prefix,
- wxFile* fileTemp = NULL);
+ void AssignTempFileName(const wxString& prefix, wxFile* fileTemp);
+
+ /**
+ The function calls CreateTempFileName() to create a temporary
+ file name and open @a fileTemp with it.
+
+ If the file couldn't be opened, the object is put into
+ an invalid state (see IsOk()).
+ */
+ void AssignTempFileName(const wxString& prefix, wxFFile* fileTemp);