mail[Wesnoth-commits] r20186 - /trunk/src/menu_events.cpp


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

Header


Content

Posted by patrick_X99 on September 08, 2007 - 03:48:
Author: sapient
Date: Sat Sep  8 03:47:45 2007
New Revision: 20186

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20186&view=rev
Log:
comparing a stringstream to a NULL pointer doesn't make much sense...

Modified:
    trunk/src/menu_events.cpp

Modified: trunk/src/menu_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/menu_events.cpp?rev=20186&r1=20185&r2=20186&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Sat Sep  8 03:47:45 2007
@@ -249,7 +249,7 @@
                                                : _("Do you really want to 
dismiss her?"));
                        }
 
-                       if(message != NULL) {
+                       if(!message.str().empty()) {
                                const int res = 
gui::dialog(disp_,"",message.str(),gui::YES_NO).show();
                                if(res != 0) {
                                        return gui::CONTINUE_DIALOG;




Related Messages


Powered by MHonArc, Updated Sat Sep 08 04:20:22 2007