mail[Wesnoth-commits] r24809 - /trunk/src/config.cpp


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

Header


Content

Posted by bruno on March 19, 2008 - 15:59:
Author: brunowolff
Date: Wed Mar 19 15:59:33 2008
New Revision: 24809

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24809&view=rev
Log:
Silence gcc 4.3 by adding parens.

Modified:
    trunk/src/config.cpp

Modified: trunk/src/config.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/config.cpp?rev=24809&r1=24808&r2=24809&view=diff
==============================================================================
--- trunk/src/config.cpp (original)
+++ trunk/src/config.cpp Wed Mar 19 15:59:33 2008
@@ -440,7 +440,7 @@
        string_map::const_iterator i;
        for(i = values.begin(); i != values.end(); ++i) {
                const string_map::const_iterator j = c.values.find(i->first);
-               if(j == c.values.end() || i->second != j->second && i->second 
!= "") {
+               if(j == c.values.end() || (i->second != j->second && 
i->second != "")) {
                        if(inserts == NULL) {
                                inserts = &res.add_child("insert");
                        }




Related Messages


Powered by MHonArc, Updated Wed Mar 19 16:21:41 2008