Can't just wxASSERT(0). Give "constant in conditional expression" errors on some compilers. Also bad control codes on the end of some preprocessor constants.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster 2001-11-30 22:10:31 +00:00
parent a874db9279
commit 27752aab2a

View File

@ -62,7 +62,8 @@ bool wxTextFile::OnExists() const
bool wxTextFile::OnOpen(const wxString &strBufferName, wxTextBufferOpenMode OpenMode)
{
wxFile::OpenMode FileOpenMode = wxFile::read;
int nAssertVal = 0;
switch (OpenMode)
{
case ReadAccess :
@ -72,7 +73,7 @@ bool wxTextFile::OnOpen(const wxString &strBufferName, wxTextBufferOpenMode Open
FileOpenMode = wxFile::write;
break;
default :
wxASSERT(0); // Should not happen.
wxASSERT(nAssertVal); // Should not happen.
break;
}