Remove redundant wxHtmlDCRenderer::m_NumPages
The actual number of pages is given by the number of elements in m_PageBreaks vector after CountPages() is shown and is unknown until then, so m_NumPages is completely unnecessary and can be just removed.
This commit is contained in:
@@ -184,11 +184,10 @@ private:
|
||||
wxString TranslateHeader(const wxString& instr, int page);
|
||||
// substitute @PAGENUM@ and @PAGESCNT@ by real values
|
||||
void CountPages();
|
||||
// counts pages and fills m_NumPages and m_PageBreaks
|
||||
// fills m_PageBreaks, which indirectly gives the number of pages
|
||||
|
||||
|
||||
private:
|
||||
int m_NumPages;
|
||||
wxVector<int> m_PageBreaks;
|
||||
|
||||
wxString m_Document, m_BasePath;
|
||||
|
Reference in New Issue
Block a user