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;