git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21885
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxCommandProcessor::Redo()
{
wxCommand *redoCommand = (wxCommand *) NULL;
bool wxCommandProcessor::Redo()
{
wxCommand *redoCommand = (wxCommand *) NULL;
- wxList::compatibility_iterator redoNode;
+ wxList::compatibility_iterator redoNode = 0;
if ( m_currentCommand )
{
if ( m_currentCommand )
{
wx_spline_add_point(x1, y1);
wx_spline_add_point(x1, y1);
- while ((node = node->GetNext()))
+ while ((node = node->GetNext()) != NULL)
{
p = (wxPoint *)node->GetData();
x1 = x2;
{
p = (wxPoint *)node->GetData();
x1 = x2;
{
wxList::compatibility_iterator first;
{
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;
{
wxLogWarning(_("Warning: attempt to remove HTML tag handler from empty stack."));
return;
bool wxDialog::IsModalShowing() const
{
bool wxDialog::IsModalShowing() const
{
- return wxModalDialogs.Find((wxDialog *)this); // const_cast
+ return wxModalDialogs.Find(wxConstCast(this, wxDialog)) != NULL;
}
wxWindow *wxDialog::FindSuitableParent() const
}
wxWindow *wxDialog::FindSuitableParent() const