Small optimization, send the parameter by reference instead of a copy.

This commit is contained in:
Mark de Wever 2008-02-06 21:52:32 +00:00
parent b5ca65c6e9
commit 1a0cc7cc28

View File

@ -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;