mail[Wesnoth-commits] r28476 - /trunk/src/construct_dialog.hpp


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

Header


Content

Posted by koraq on August 12, 2008 - 08:13:
Author: mordante
Date: Tue Aug 12 08:13:39 2008
New Revision: 28476

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28476&view=rev
Log:
Initialize all members.

Modified:
    trunk/src/construct_dialog.hpp

Modified: trunk/src/construct_dialog.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/construct_dialog.hpp?rev=28476&r1=28475&r2=28476&view=diff
==============================================================================
--- trunk/src/construct_dialog.hpp (original)
+++ trunk/src/construct_dialog.hpp Tue Aug 12 08:13:39 2008
@@ -121,17 +121,19 @@
 
 class filter_textbox : public gui::dialog_textbox {
 public:
-       filter_textbox(CVideo& video, const std::string& header,
-               const std::vector<std::string>& items, const 
std::vector<std::string>& items_to_filter,
-               size_t header_row,
-               dialog& dialog, int width = 250)
-               : dialog_textbox(new label(video, header), video, width),
+       filter_textbox(CVideo& video, const std::string& header, 
+                       const std::vector<std::string>& items, 
+                       const std::vector<std::string>& items_to_filter, 
size_t header_row, 
+                       dialog& dialog, int width = 250) : 
+               dialog_textbox(new label(video, header), video, width),
                items_(items),
                items_to_filter_(items_to_filter),
+               filtered_items_(),
+               index_map_(),
+               last_words(1, ""), // dummy word to trigger an update
                header_row_(header_row),
                dialog_(dialog)
        {
-               last_words.push_back(""); // dummy word to trigger an update
                set_text("");
        }
 




Related Messages


Powered by MHonArc, Updated Tue Aug 12 08:40:34 2008