Make some member functions const
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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;}
|
||||
|
||||
|
Reference in New Issue
Block a user