X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/222ed1d678dff2f5c3c4164321dd05e8f47de487..a1900c9e1d07ac71f373f94656bf26a45f032c39:/src/html/htmlwin.cpp diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 261bb4b8d6..264f950c31 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -8,7 +8,7 @@ ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "htmlwin.h" #pragma implementation "htmlproc.h" #endif @@ -203,7 +203,10 @@ wxHtmlWindow::~wxHtmlWindow() if (m_Cell) delete m_Cell; - WX_CLEAR_LIST(wxHtmlProcessorList, *m_Processors); + if ( m_Processors ) + { + WX_CLEAR_LIST(wxHtmlProcessorList, *m_Processors); + } delete m_Parser; delete m_FS; @@ -802,7 +805,7 @@ void wxHtmlWindow::OnCellMouseHover(wxHtmlCell * WXUNUSED(cell), // do nothing here } -void wxHtmlWindow::OnEraseBackground(wxEraseEvent& event) +void wxHtmlWindow::OnEraseBackground(wxEraseEvent& WXUNUSED(event)) { } @@ -894,7 +897,7 @@ void wxHtmlWindow::OnSize(wxSizeEvent& event) } -void wxHtmlWindow::OnMouseMove(wxMouseEvent& event) +void wxHtmlWindow::OnMouseMove(wxMouseEvent& WXUNUSED(event)) { m_tmpMouseMoved = true; } @@ -1215,7 +1218,7 @@ void wxHtmlWindow::OnKeyUp(wxKeyEvent& event) } } -void wxHtmlWindow::OnCopy(wxCommandEvent& event) +void wxHtmlWindow::OnCopy(wxCommandEvent& WXUNUSED(event)) { if ( m_selection ) CopySelection();