Mark a parameter const.

This commit is contained in:
Mark de Wever 2008-08-14 19:11:13 +00:00
parent 7d16c925a0
commit 6a5e2af2d2
3 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ protected:
void set_sel_len(const unsigned sel_len) { sel_len_ = sel_len; set_dirty(); }
//! Inserts a character at the cursor.
virtual void insert_char(Uint16 unicode) = 0;
virtual void insert_char(const Uint16 unicode) = 0;
//! Deletes the character.
virtual void delete_char(const bool before_cursor) = 0;

View File

@ -54,7 +54,7 @@ static surface render_text(const std::string& text, unsigned font_size)
//! Helper function for text more efficient as set_text.
//! Inserts a character at the cursor.
void ttext_box::insert_char(Uint16 unicode)
void ttext_box::insert_char(const Uint16 unicode)
{
delete_selection();

View File

@ -98,7 +98,7 @@ protected:
// void paste();
//
//! Inherited from ttext_.
void insert_char(Uint16 unicode);
void insert_char(const Uint16 unicode);
//! Inherited from ttext_.
void delete_char(const bool before_cursor);