mail[Wesnoth-commits] r20628 - /trunk/src/widgets/menu.hpp


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

Header


Content

Posted by koraq on September 20, 2007 - 19:38:
Author: mordante
Date: Thu Sep 20 19:38:20 2007
New Revision: 20628

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20628&view=rev
Log:
Make sure all members are initialized in the constructor.

Modified:
    trunk/src/widgets/menu.hpp

Modified: trunk/src/widgets/menu.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/widgets/menu.hpp?rev=20628&r1=20627&r2=20628&view=diff
==============================================================================
--- trunk/src/widgets/menu.hpp (original)
+++ trunk/src/widgets/menu.hpp Thu Sep 20 19:38:20 2007
@@ -96,7 +96,7 @@
                double normal_alpha2_, selected_alpha2_, heading_alpha2_;
                struct bg_cache
                {
-                       bg_cache() : width(-1), height(-1)
+                       bg_cache() : surf(), width(-1), height(-1)
                        {}
 
                        surface surf;
@@ -112,11 +112,11 @@
 
        struct item
        {
-               item() : id(0)
+               item() : fields(), help(), id(0)
                {}
 
                item(const std::vector<std::string>& fields, size_t id)
-                       : fields(fields), id(id)
+                       : fields(fields), help(), id(id)
                {}
 
                std::vector<std::string> fields;




Related Messages


Powered by MHonArc, Updated Thu Sep 20 20:40:38 2007