wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src theme.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src theme.cpp
Date: Wed, 19 Jan 2005 16:57:17 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    05/01/19 21:57:16

Modified files:
        src            : theme.cpp 

Log message:
        Fix warnings (partly patch #3639).

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/theme.cpp.diff?tr1=1.29&tr2=1.30&r1=text&r2=text

Patches:
Index: wesnoth/src/theme.cpp
diff -u wesnoth/src/theme.cpp:1.29 wesnoth/src/theme.cpp:1.30
--- wesnoth/src/theme.cpp:1.29  Fri Dec 31 21:01:37 2004
+++ wesnoth/src/theme.cpp       Wed Jan 19 21:57:16 2005
@@ -36,7 +36,7 @@
        }
 
        _rect read_rect(const config& cfg) {
-               _rect rect;
+               _rect rect = { 0, 0, 0, 0 };
                const std::vector<std::string> items = 
config::split(cfg["rect"].c_str());
                if(items.size() >= 1)
                        rect.x1 = atoi(items[0].c_str());
@@ -65,7 +65,7 @@
        }
 
        std::string resolve_rect(const std::string& rect_str) {
-               _rect rect;
+               _rect rect = { 0, 0, 0, 0 };
                std::stringstream resolved;
                const std::vector<std::string> items = 
config::split(rect_str.c_str());
                if(items.size() >= 1) {
@@ -158,7 +158,6 @@
                {
                        const config::child_list& c = 
cfg.get_children("remove");
                        for(config::child_list::const_iterator i = c.begin(); i 
!= c.end(); ++i) {
-                               const config* parent;
                                find_ref ((**i)["id"], *outcfg,
                                          true /* remove found child */);
                        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]