mail[Wesnoth-commits] r28594 - in /trunk/src/gui/widgets: text.hpp text_box.cpp text_box.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on August 15, 2008 - 18:15:
Author: mordante
Date: Thu Aug 14 21:11:13 2008
New Revision: 28594

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28594&view=rev
Log:
Mark a parameter const.

Modified:
    trunk/src/gui/widgets/text.hpp
    trunk/src/gui/widgets/text_box.cpp
    trunk/src/gui/widgets/text_box.hpp

Modified: trunk/src/gui/widgets/text.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/text.hpp?rev=28594&r1=28593&r2=28594&view=diff
==============================================================================
--- trunk/src/gui/widgets/text.hpp (original)
+++ trunk/src/gui/widgets/text.hpp Thu Aug 14 21:11:13 2008
@@ -78,7 +78,7 @@
        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;

Modified: trunk/src/gui/widgets/text_box.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/text_box.cpp?rev=28594&r1=28593&r2=28594&view=diff
==============================================================================
--- trunk/src/gui/widgets/text_box.cpp (original)
+++ trunk/src/gui/widgets/text_box.cpp Thu Aug 14 21:11:13 2008
@@ -54,7 +54,7 @@
 
 //! 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();
 

Modified: trunk/src/gui/widgets/text_box.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/text_box.hpp?rev=28594&r1=28593&r2=28594&view=diff
==============================================================================
--- trunk/src/gui/widgets/text_box.hpp (original)
+++ trunk/src/gui/widgets/text_box.hpp Thu Aug 14 21:11:13 2008
@@ -98,7 +98,7 @@
 //     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);




Related Messages


Powered by MHonArc, Updated Fri Aug 15 19:21:20 2008