From dfa4a244f0dabd5319231b281c7b7f11fafc065d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 10 Jul 2003 22:55:28 +0000 Subject: [PATCH] VC++ warning fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/cmdproc.cpp | 2 +- src/common/dcbase.cpp | 2 +- src/html/htmlpars.cpp | 4 ++-- src/msw/dialog.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index 6a7475fadb..6d4ea44642 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -159,7 +159,7 @@ bool wxCommandProcessor::Undo() bool wxCommandProcessor::Redo() { wxCommand *redoCommand = (wxCommand *) NULL; - wxList::compatibility_iterator redoNode; + wxList::compatibility_iterator redoNode = 0; if ( m_currentCommand ) { diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index 8534732e7b..beeb4bd6a6 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())) + while ((node = node->GetNext()) != NULL) { p = (wxPoint *)node->GetData(); x1 = x2; diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp index be7d11a616..8c9eca91d3 100644 --- a/src/html/htmlpars.cpp +++ b/src/html/htmlpars.cpp @@ -374,8 +374,8 @@ void wxHtmlParser::PopTagHandler() { wxList::compatibility_iterator first; - if (m_HandlersStack == NULL || - !(first = m_HandlersStack->GetFirst())) + if ( !m_HandlersStack || + (first = m_HandlersStack->GetFirst()) == NULL ) { wxLogWarning(_("Warning: attempt to remove HTML tag handler from empty stack.")); return; diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 698b38d7cb..8c5390cc5c 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -191,7 +191,7 @@ bool wxDialog::IsModal() const bool wxDialog::IsModalShowing() const { - return wxModalDialogs.Find((wxDialog *)this); // const_cast + return wxModalDialogs.Find(wxConstCast(this, wxDialog)) != NULL; } wxWindow *wxDialog::FindSuitableParent() const -- 2.45.2