Don't use string::c_str() to create a string.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2012-03-10 13:29:36 +00:00
parent bf91717016
commit 2a5f0e1b62

View file

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