mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 18:16:28 +00:00
Send a read only param as const reference.
The parameter was send as copy before.
This commit is contained in:
parent
be1d8c2d6a
commit
9066e95698
@ -38,7 +38,7 @@ pathfind::teleport_group::teleport_group(const config& cfg) : cfg_(cfg, true), r
|
||||
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());
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
/*
|
||||
*
|
||||
*/
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user