mail[Wesnoth-commits] r24838 - /trunk/src/widgets/textbox.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 - 17:13:
Author: brunowolff
Date: Wed Mar 19 17:13:54 2008
New Revision: 24838

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24838&view=rev
Log:
Silence gcc 4.3 warnings by adding braces to avoid ambiguous else.

Modified:
    trunk/src/widgets/textbox.cpp

Modified: trunk/src/widgets/textbox.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/widgets/textbox.cpp?rev=24838&r1=24837&r2=24838&view=diff
==============================================================================
--- trunk/src/widgets/textbox.cpp (original)
+++ trunk/src/widgets/textbox.cpp Wed Mar 19 17:13:54 2008
@@ -543,9 +543,9 @@
        if(!(c == SDLK_UP || c == SDLK_DOWN || c == SDLK_LEFT || c == 
SDLK_RIGHT ||
           c == SDLK_DELETE || c == SDLK_BACKSPACE || c == SDLK_END || c == 
SDLK_HOME ||
           c == SDLK_PAGEUP || c == SDLK_PAGEDOWN)) {
-               if(character != 0)
+               if(character != 0) {
                        DBG_G << "Char: " << character << ", c = " << c << 
"\n";
-
+               }
                if(event.key.keysym.mod & copypaste_modifier) {
                        switch(c) {
                        case SDLK_v: // paste




Related Messages


Powered by MHonArc, Updated Wed Mar 19 17:21:39 2008