mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 23:48:58 +00:00
Mark a parameter const.
This commit is contained in:
parent
7d16c925a0
commit
6a5e2af2d2
@ -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;
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user