X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b1c673942db6ff8ed5459b96b0b5307391bc36db..a55e4e42606a69e6c9af93a7620610d0e22d94bf:/src/common/file.cpp diff --git a/src/common/file.cpp b/src/common/file.cpp index 593d78b588..605519d4f8 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -184,12 +184,12 @@ bool wxFile::Access(const wxChar *name, OpenMode mode) // ---------------------------------------------------------------------------- // ctors -wxFile::wxFile(const wxChar *szFileName, OpenMode mode) +wxFile::wxFile(const wxString& fileName, OpenMode mode) { m_fd = fd_invalid; m_error = false; - Open(szFileName, mode); + Open(fileName, mode); } // create the file, fail if it already exists and bOverwrite