Avoided costly copy.

This commit is contained in:
Guillaume Melquiond 2010-07-19 16:13:55 +00:00
parent 7935dcbd69
commit 3895801f1a
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ static std::string flush(std::ostringstream &s)
static char const *naps = "</span>";
report generate_report(TYPE type,
std::map<reports::TYPE, std::string> report_contents,
const std::map<reports::TYPE, std::string> &report_contents,
const team &current_team, int current_side, int playing_side,
const map_location& loc, const map_location& mouseover, const map_location& displayed_unit_hex,
const std::set<std::string> &observers,

View file

@ -94,7 +94,7 @@ namespace reports {
};
report generate_report(TYPE type,
std::map<reports::TYPE, std::string> report_contents,
const std::map<reports::TYPE, std::string> &report_contents,
const team &current_team,
int current_side, int active_side,
const map_location& loc, const map_location& mouseover, const map_location& displayed_unit_hex,