Author: tschmitz
Date: Sun Jul 24 23:29:08 2011
New Revision: 50391

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50391&view=rev
Log:
Optimized by adding "const&".

Modified:
    trunk/src/mouse_events.cpp

Modified: trunk/src/mouse_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/mouse_events.cpp?rev=50391&r1=50390&r2=50391&view=diff
==============================================================================
--- trunk/src/mouse_events.cpp (original)
+++ trunk/src/mouse_events.cpp Sun Jul 24 23:29:08 2011
@@ -338,7 +338,7 @@
        }
 
        {
-               team viewing_team = 
(*resources::teams)[resources::screen->viewing_team()];
+               team const& viewing_team = 
(*resources::teams)[resources::screen->viewing_team()];
 
                const unit_map::const_iterator enemy = find_unit(loc);
                bool eligible = enemy != units_.end();


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

Reply via email to