Author: mordante
Date: Sun Mar 6 20:08:11 2011
New Revision: 48802
URL: http://svn.gna.org/viewcvs/wesnoth?rev=48802&view=rev
Log:
Send a read only param as const reference.
The parameter was send as copy before.
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=48802&r1=48801&r2=48802&view=diff
==============================================================================
--- trunk/src/pathfind/teleport.cpp (original)
+++ trunk/src/pathfind/teleport.cpp Sun Mar 6 20:08:11 2011
@@ -38,7 +38,7 @@
assert(!cfg_.get_children("filter").empty());
}
-pathfind::teleport_group::teleport_group(vconfig cfg, bool reversed) :
cfg_(cfg), reversed_(reversed), id_()
+pathfind::teleport_group::teleport_group(const vconfig& cfg, bool reversed) :
cfg_(cfg), reversed_(reversed), id_()
{
assert(!cfg_.get_children("source").empty());
assert(!cfg_.get_children("target").empty());
Modified: trunk/src/pathfind/teleport.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/pathfind/teleport.hpp?rev=48802&r1=48801&r2=48802&view=diff
==============================================================================
--- trunk/src/pathfind/teleport.hpp (original)
+++ trunk/src/pathfind/teleport.hpp Sun Mar 6 20:08:11 2011
@@ -41,7 +41,7 @@
/*
*
*/
- teleport_group(vconfig cfg, bool way_back = false);
+ teleport_group(const vconfig& cfg, bool way_back = false);
/*
* Fills the argument loc_pair if the unit u matches the groups filter.
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits