Avoided costly copy.
This commit is contained in:
parent
7935dcbd69
commit
3895801f1a
2 changed files with 2 additions and 2 deletions
|
@ -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 ¤t_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,
|
||||
|
|
|
@ -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 ¤t_team,
|
||||
int current_side, int active_side,
|
||||
const map_location& loc, const map_location& mouseover, const map_location& displayed_unit_hex,
|
||||
|
|
Loading…
Add table
Reference in a new issue