Make wxTemp[F]File classes non default ctor explicit
There should really be no reason to ever implicitly convert a string to a file.
This commit is contained in:
@@ -118,7 +118,7 @@ public:
|
||||
// default
|
||||
wxTempFFile() { }
|
||||
// associates the temp file with the file to be replaced and opens it
|
||||
wxTempFFile(const wxString& strName);
|
||||
explicit wxTempFFile(const wxString& strName);
|
||||
|
||||
// open the temp file (strName is the name of file to be replaced)
|
||||
bool Open(const wxString& strName);
|
||||
|
Reference in New Issue
Block a user