From: Ove Kaaven Date: Fri, 16 Apr 1999 22:59:58 +0000 (+0000) Subject: Had changed the prototype of wxOnAssert after the discovery of __TFILE__ X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6f9eb452395e4ef48fe70c7ad77a4d570d7cd271?ds=sidebyside Had changed the prototype of wxOnAssert after the discovery of __TFILE__ but had forgotten to change the implementation too. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/log.cpp b/src/common/log.cpp index cf99a8b954..0a3e9bdd92 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -989,7 +989,7 @@ void Trap() } // this function is called when an assert fails -void wxOnAssert(const char *szFile, int nLine, const wxChar *szMsg) +void wxOnAssert(const wxChar *szFile, int nLine, const wxChar *szMsg) { // this variable can be set to true to suppress "assert failure" messages static bool s_bNoAsserts = FALSE; @@ -1014,11 +1014,7 @@ void wxOnAssert(const char *szFile, int nLine, const wxChar *szMsg) wxSprintf(szBuf, _T("%s(%d): assert failed"), szFile, nLine); #else // !VC++ // make the error message more clear for all the others -#ifdef wxSprintf wxSprintf(szBuf, _T("Assert failed in file %s at line %d"), szFile, nLine); -#else - wxSprintf(szBuf, _T("Assert failed in file %hs at line %d"), szFile, nLine); -#endif #endif // VC/!VC if ( szMsg != NULL ) {