Author: mordante
Date: Sun Mar  6 20:08:14 2011
New Revision: 48803

URL: http://svn.gna.org/viewcvs/wesnoth?rev=48803&view=rev
Log:
Mark teleport_group::get_teleport_pair as const.

Also mark a const parameter const.

Modified:
    trunk/src/pathfind/teleport.cpp
    trunk/src/pathfind/teleport.hpp

Modified: trunk/src/pathfind/teleport.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/pathfind/teleport.cpp?rev=48803&r1=48802&r2=48803&view=diff
==============================================================================
--- trunk/src/pathfind/teleport.cpp (original)
+++ trunk/src/pathfind/teleport.cpp Sun Mar  6 20:08:14 2011
@@ -52,7 +52,10 @@
        }
 }
 
-void pathfind::teleport_group::get_teleport_pair(teleport_pair& loc_pair, 
const unit& u, bool ignore_units)
+void pathfind::teleport_group::get_teleport_pair(
+                 teleport_pair& loc_pair
+               , const unit& u
+               , const bool ignore_units) const
 {
        const map_location &loc = u.get_location();
        static unit_map empty_unit_map;

Modified: trunk/src/pathfind/teleport.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/pathfind/teleport.hpp?rev=48803&r1=48802&r2=48803&view=diff
==============================================================================
--- trunk/src/pathfind/teleport.hpp (original)
+++ trunk/src/pathfind/teleport.hpp Sun Mar  6 20:08:14 2011
@@ -46,7 +46,10 @@
        /*
         * Fills the argument loc_pair if the unit u matches the groups filter.
         */
-       void get_teleport_pair(teleport_pair& loc_pair, const unit& u, bool 
ignore_units);
+       void get_teleport_pair(
+                         teleport_pair& loc_pair
+                       , const unit& u
+                       , const bool ignore_units) const;
        /*
         * Returns the unique id of the teleport group.
         * Can be set by the id attribute or is randomly chosen.


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

Reply via email to