From 1a0cc7cc285e36f6048c984644edd4ee0554d51c Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Wed, 6 Feb 2008 21:52:32 +0000 Subject: [PATCH] Small optimization, send the parameter by reference instead of a copy. --- src/game_events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game_events.cpp b/src/game_events.cpp index b7fb9274b7c..29018ba6c76 100644 --- a/src/game_events.cpp +++ b/src/game_events.cpp @@ -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;