From 1b80d34a52121a70a5a4bf9ba6d0cd6a8372b38c Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sat, 12 Jul 2003 20:36:50 +0000 Subject: [PATCH] Warning fixes for wxUSE_STL=1. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dcbase.cpp | 2 +- src/html/htmlpars.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.45.2