From: Mattia Barbon Date: Sat, 12 Jul 2003 20:36:50 +0000 (+0000) Subject: Warning fixes for wxUSE_STL=1. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1b80d34a52121a70a5a4bf9ba6d0cd6a8372b38c?ds=inline Warning fixes for wxUSE_STL=1. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index beeb4bd6a6..8534732e7b 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -290,7 +290,7 @@ void wxDCBase::DoDrawSpline( wxList *points ) wx_spline_add_point(x1, y1); - while ((node = node->GetNext()) != NULL) + while ((node = node->GetNext())) { p = (wxPoint *)node->GetData(); x1 = x2; diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp index 8c9eca91d3..bb209217f7 100644 --- a/src/html/htmlpars.cpp +++ b/src/html/htmlpars.cpp @@ -375,7 +375,7 @@ void wxHtmlParser::PopTagHandler() wxList::compatibility_iterator first; if ( !m_HandlersStack || - (first = m_HandlersStack->GetFirst()) == NULL ) + !(first = m_HandlersStack->GetFirst()) ) { wxLogWarning(_("Warning: attempt to remove HTML tag handler from empty stack.")); return;