fix GCC warning

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2011-02-16 05:13:00 +00:00
parent d20dfbf04b
commit 192c3efa7f

View File

@@ -118,8 +118,9 @@ void wxMemStruct::ErrorMsg ()
*/
int wxMemStruct::AssertList ()
{
if (wxDebugContext::GetHead () != 0 && ! (wxDebugContext::GetHead ())->AssertIt () ||
wxDebugContext::GetTail () != 0 && ! wxDebugContext::GetTail ()->AssertIt ()) {
if ((wxDebugContext::GetHead() && !wxDebugContext::GetHead()->AssertIt()) ||
(wxDebugContext::GetTail() && !wxDebugContext::GetTail()->AssertIt()))
{
ErrorMsg ("Head or tail pointers trashed");
return 0;
}