X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4460b6c48b0a4b12b30ea22072ef3262db1f5c3f..cbcf084b0501737b4450d015853282d6193eb6f1:/src/html/m_layout.cpp diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index b524a9db1c..aa9ea66ee1 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -6,7 +6,7 @@ // Copyright: (c) 1999 Vaclav Slavik // Licence: wxWindows Licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation #endif @@ -77,7 +77,7 @@ public: void Draw(wxDC& WXUNUSED(dc), int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(view_y1), int WXUNUSED(view_y2), - wxHtmlRenderingState& WXUNUSED(state)) {} + wxHtmlRenderingInfo& WXUNUSED(info)) {} private: DECLARE_NO_COPY_CLASS(wxHtmlPageBreakCell) @@ -133,6 +133,7 @@ bool wxHtmlPageBreakCell::AdjustPagebreak(int* pagebreak, int* known_pagebreaks, } TAG_HANDLER_BEGIN(P, "P") + TAG_HANDLER_CONSTR(P) { } TAG_HANDLER_PROC(tag) { @@ -151,6 +152,7 @@ TAG_HANDLER_END(P) TAG_HANDLER_BEGIN(BR, "BR") + TAG_HANDLER_CONSTR(BR) { } TAG_HANDLER_PROC(tag) { @@ -170,6 +172,7 @@ TAG_HANDLER_END(BR) TAG_HANDLER_BEGIN(CENTER, "CENTER") + TAG_HANDLER_CONSTR(CENTER) { } TAG_HANDLER_PROC(tag) { @@ -208,6 +211,7 @@ TAG_HANDLER_END(CENTER) TAG_HANDLER_BEGIN(DIV, "DIV") + TAG_HANDLER_CONSTR(DIV) { } TAG_HANDLER_PROC(tag) { @@ -270,6 +274,7 @@ TAG_HANDLER_END(DIV) TAG_HANDLER_BEGIN(TITLE, "TITLE") + TAG_HANDLER_CONSTR(TITLE) { } TAG_HANDLER_PROC(tag) { @@ -292,6 +297,7 @@ TAG_HANDLER_END(TITLE) TAG_HANDLER_BEGIN(BODY, "BODY") + TAG_HANDLER_CONSTR(BODY) { } TAG_HANDLER_PROC(tag) { @@ -321,6 +327,7 @@ TAG_HANDLER_END(BODY) TAG_HANDLER_BEGIN(BLOCKQUOTE, "BLOCKQUOTE") + TAG_HANDLER_CONSTR(BLOCKQUOTE) { } TAG_HANDLER_PROC(tag) { @@ -351,7 +358,9 @@ TAG_HANDLER_END(BLOCKQUOTE) // Tag handler for tags that we have to ignore, otherwise non-text data // would show up as text: TAG_HANDLER_BEGIN(DoNothing, "SCRIPT") - TAG_HANDLER_PROC(tag) + TAG_HANDLER_CONSTR(DoNothing) { } + + TAG_HANDLER_PROC(WXUNUSED(tag)) { return true; }