mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 07:31:18 +00:00
Small optimization, send the parameter by reference instead of a copy.
This commit is contained in:
parent
b5ca65c6e9
commit
1a0cc7cc28
@ -431,7 +431,7 @@ private:
|
||||
|
||||
} // end anonymous namespace (3)
|
||||
|
||||
static gamemap::location cfg_to_loc(const vconfig cfg,int defaultx = 0, int defaulty = 0)
|
||||
static gamemap::location cfg_to_loc(const vconfig& cfg,int defaultx = 0, int defaulty = 0)
|
||||
{
|
||||
int x = lexical_cast_default(cfg["x"], defaultx) - 1;
|
||||
int y = lexical_cast_default(cfg["y"], defaulty) - 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user