Author: anonymissimus
Date: Mon Oct 17 19:21:38 2011
New Revision: 51520

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51520&view=rev
Log:
use empty() instead of comparing with an empty string

Modified:
    trunk/src/game_events.cpp

Modified: trunk/src/game_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_events.cpp?rev=51520&r1=51519&r2=51520&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Mon Oct 17 19:21:38 2011
@@ -630,7 +630,7 @@
                        else {
                                const config & cfg = new_handler.get_config();
                                std::string id = cfg["id"];
-                               if(id != "") {
+                               if(!id.empty()) {
                                        foreach( game_events::event_handler 
const & eh, active_) {
                                                config const & temp_config( 
eh.get_config());
                                                if(id == temp_config["id"]) {


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to