Author: mordante
Date: Wed Mar  2 22:40:53 2011
New Revision: 48723

URL: http://svn.gna.org/viewcvs/wesnoth?rev=48723&view=rev
Log:
Polishing the code a bit.

Modified:
    trunk/src/gui/auxiliary/window_builder/text_box.cpp
    trunk/src/gui/auxiliary/window_builder/text_box.hpp

Modified: trunk/src/gui/auxiliary/window_builder/text_box.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/auxiliary/window_builder/text_box.cpp?rev=48723&r1=48722&r2=48723&view=diff
==============================================================================
--- trunk/src/gui/auxiliary/window_builder/text_box.cpp (original)
+++ trunk/src/gui/auxiliary/window_builder/text_box.cpp Wed Mar  2 22:40:53 2011
@@ -27,7 +27,7 @@
 
 tbuilder_text_box::tbuilder_text_box(const config& cfg)
        : tbuilder_control(cfg)
-       , history_(cfg["history"])
+       , history(cfg["history"])
 {
 }
 
@@ -40,8 +40,8 @@
        // A textbox doesn't have a label but a text
        widget->set_value(label);
 
-       if (!history_.empty()) {
-               widget->set_history(history_);
+       if (!history.empty()) {
+               widget->set_history(history);
        }
 
        DBG_GUI_G << "Window builder: placed text box '"
@@ -62,8 +62,8 @@
  * == Text box ==
  *
  * @begin{table}{config}
- *     label & tstring & "" &            The initial text of the text box. $
- *     history & string & "" &           The name of the history for the text
+ *     label & tstring & "" &          The initial text of the text box. $
+ *     history & string & "" &         The name of the history for the text
  *                                     box.
  *                                     A history saves the data entered in a
  *                                     text box between the games. With the up

Modified: trunk/src/gui/auxiliary/window_builder/text_box.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/auxiliary/window_builder/text_box.hpp?rev=48723&r1=48722&r2=48723&view=diff
==============================================================================
--- trunk/src/gui/auxiliary/window_builder/text_box.hpp (original)
+++ trunk/src/gui/auxiliary/window_builder/text_box.hpp Wed Mar  2 22:40:53 2011
@@ -30,8 +30,7 @@
 
        twidget* build () const;
 
-private:
-       std::string history_;
+       std::string history;
 };
 
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to