Another one bites the dust.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -249,17 +249,17 @@ bool wxTextFile::Write(wxTextFileType typeNew)
|
|||||||
return fileTmp.Commit();
|
return fileTmp.Commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *wxTextFile::GetEOL(wxTextFileType type)
|
const wxChar *wxTextFile::GetEOL(wxTextFileType type)
|
||||||
{
|
{
|
||||||
switch ( type ) {
|
switch ( type ) {
|
||||||
case wxTextFileType_None: return "";
|
case wxTextFileType_None: return _T("");
|
||||||
case wxTextFileType_Unix: return "\n";
|
case wxTextFileType_Unix: return _T("\n");
|
||||||
case wxTextFileType_Dos: return "\r\n";
|
case wxTextFileType_Dos: return _T("\r\n");
|
||||||
case wxTextFileType_Mac: return "\r";
|
case wxTextFileType_Mac: return _T("\r");
|
||||||
|
|
||||||
default:
|
default:
|
||||||
wxFAIL_MSG("bad file type in wxTextFile::GetEOL.");
|
wxFAIL_MSG(_T("bad file type in wxTextFile::GetEOL."));
|
||||||
return (const char *) NULL;
|
return (const wxChar *) NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user