Don't use string::c_str() to create a string.
Issue found by cppcheck.
This commit is contained in:
parent
bf91717016
commit
2a5f0e1b62
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ void gamemap::set_usage(const std::string& usage)
|
|||
throw incorrect_map_format_error("Map has a header but no usage");
|
||||
} else {
|
||||
std::string msg = "Map has a header but an unknown usage:" + usage;
|
||||
throw incorrect_map_format_error(msg.c_str());
|
||||
throw incorrect_map_format_error(msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue