X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5526e819eca4465ed5520d49bccfebc6a28045e0..b83290c3ebf1a7dbd8d1ec9e6fad248f5684d7b1:/src/html/mod_tables.cpp diff --git a/src/html/mod_tables.cpp b/src/html/mod_tables.cpp index 7f9e31c08e..01bc6552ab 100644 --- a/src/html/mod_tables.cpp +++ b/src/html/mod_tables.cpp @@ -6,8 +6,21 @@ // Licence: wxWindows Licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/defs.h" +#ifdef __GNUG__ +#pragma implementation +#endif + +#include + #if wxUSE_HTML +#ifdef __BORDLANDC__ +#pragma hdrstop +#endif + +#ifndef WXPRECOMP +#include +#endif + /* REMARKS: @@ -325,7 +338,7 @@ void wxHtmlTableCell::Layout(int w) /* 3. sub-layout all cells: */ { - int *ypos = (int*) malloc(sizeof(int) * (m_NumRows + 1)); + int *ypos = new int[m_NumRows + 1]; int actcol, actrow; int fullwid; @@ -372,7 +385,7 @@ void wxHtmlTableCell::Layout(int w) } m_Height = ypos[m_NumRows]; - free(ypos); + delete[] ypos; } }