Make some member functions const

This commit is contained in:
Paul Cornett
2021-03-17 09:44:48 -07:00
parent 34473971bb
commit b5d4c6068e
13 changed files with 34 additions and 34 deletions

View File

@@ -138,10 +138,10 @@ public:
bool case_sensitive, bool whole_words_only,
const wxString& book = wxEmptyString);
bool Search(); // do the next iteration
bool IsActive() { return m_Active; }
int GetCurIndex() { return m_CurIndex; }
int GetMaxIndex() { return m_MaxIndex; }
const wxString& GetName() { return m_Name; }
bool IsActive() const { return m_Active; }
int GetCurIndex() const { return m_CurIndex; }
int GetMaxIndex() const { return m_MaxIndex; }
const wxString& GetName() const { return m_Name; }
const wxHtmlHelpDataItem *GetCurItem() const { return m_CurItem; }

View File

@@ -222,7 +222,7 @@ public:
void SetScriptMode(wxHtmlScriptMode mode, long previousBase);
wxHtmlScriptMode GetScriptMode() const { return m_ScriptMode; }
long GetScriptBaseline() { return m_ScriptBaseline; }
long GetScriptBaseline() const { return m_ScriptBaseline; }
// Formatting cells are not visible on the screen, they only alter
// renderer's state.

View File

@@ -55,7 +55,7 @@ public:
void SetDC(wxDC *dc, double pixel_scale, double font_scale);
wxDC *GetDC() {return m_DC;}
double GetPixelScale() {return m_PixelScale;}
double GetPixelScale() const { return m_PixelScale; }
int GetCharHeight() const {return m_CharHeight;}
int GetCharWidth() const {return m_CharWidth;}