bool wxCommandProcessor::Redo()
{
wxCommand *redoCommand = (wxCommand *) NULL;
- wxList::compatibility_iterator redoNode;
+ wxList::compatibility_iterator redoNode = 0;
if ( m_currentCommand )
{
wx_spline_add_point(x1, y1);
- while ((node = node->GetNext()))
+ while ((node = node->GetNext()) != NULL)
{
p = (wxPoint *)node->GetData();
x1 = x2;
{
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;
bool wxDialog::IsModalShowing() const
{
- return wxModalDialogs.Find((wxDialog *)this); // const_cast
+ return wxModalDialogs.Find(wxConstCast(this, wxDialog)) != NULL;
}
wxWindow *wxDialog::FindSuitableParent() const