provide both const char* and const wchar_t* implicit conversion of wxCStrData regardless of the build type
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user