]> git.saurik.com Git - wxWidgets.git/commitdiff
Warning fixes for wxUSE_STL=1.
authorMattia Barbon <mbarbon@cpan.org>
Sat, 12 Jul 2003 20:36:50 +0000 (20:36 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sat, 12 Jul 2003 20:36:50 +0000 (20:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcbase.cpp
src/html/htmlpars.cpp

index beeb4bd6a6e7611d27dcf0257b0dc1c72933eb4f..8534732e7ba1577775e4a9e70b8b59365cea589c 100644 (file)
@@ -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;
index 8c9eca91d3603888d2462e826c3838ffb1990349..bb209217f71ae51ca057a615034ebbd0f89d1c64 100644 (file)
@@ -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;