Remove "known_pagebreaks" from wxHtmlCell::AdjustPagebreak()
This parameter is not actually needed for any reasonable page breaking algorithm, as it shouldn't care about any previous page breaks except for the last one, which is already known as "*pagebreak - pageHeight" in this function. Removing it will allow to stop using wxArrayInt in the code using this method and switch to an std::vector<int> instead. This is not a backwards compatible change, but it seems that there is very little code actually overriding this function (none could be found in any open source repositories) and updating it should be as simple as removing the now unneeded argument.
This commit is contained in:
@@ -65,9 +65,7 @@ class wxHtmlPageBreakCell : public wxHtmlCell
|
||||
public:
|
||||
wxHtmlPageBreakCell() {}
|
||||
|
||||
bool AdjustPagebreak(int* pagebreak,
|
||||
const wxArrayInt& known_pagebreaks,
|
||||
int pageHeight) const wxOVERRIDE;
|
||||
bool AdjustPagebreak(int* pagebreak, int pageHeight) const wxOVERRIDE;
|
||||
|
||||
void Draw(wxDC& WXUNUSED(dc),
|
||||
int WXUNUSED(x), int WXUNUSED(y),
|
||||
@@ -79,9 +77,7 @@ private:
|
||||
};
|
||||
|
||||
bool
|
||||
wxHtmlPageBreakCell::AdjustPagebreak(int* pagebreak,
|
||||
const wxArrayInt& WXUNUSED(known_pagebreaks),
|
||||
int pageHeight) const
|
||||
wxHtmlPageBreakCell::AdjustPagebreak(int* pagebreak, int pageHeight) const
|
||||
{
|
||||
// Request a page break at the position of this cell if it's on the current
|
||||
// page. Note that it's important not to do it unconditionally or we could
|
||||
|
||||
Reference in New Issue
Block a user