mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 04:22:01 +00:00
Remove a useless cast.
Detected by the upcoming gcc-4.8.
This commit is contained in:
parent
44b3dccd10
commit
7fd8f4c3f7
@ -2535,9 +2535,9 @@ class console_handler : public map_command_handler<console_handler>, private cha
|
||||
std::string get_command_flags_description(const chmap::command& c) const
|
||||
{
|
||||
std::string space(" ");
|
||||
return std::string(c.has_flag('D') ? space + _("(debug command)") : "")
|
||||
+ std::string(c.has_flag('N') ? space + _("(network only)") : "")
|
||||
+ std::string(c.has_flag('A') ? space + _("(admin only)") : "");
|
||||
return (c.has_flag('D') ? space + _("(debug command)") : "")
|
||||
+ (c.has_flag('N') ? space + _("(network only)") : "")
|
||||
+ (c.has_flag('A') ? space + _("(admin only)") : "");
|
||||
}
|
||||
using map::is_enabled;
|
||||
bool is_enabled(const chmap::command& c) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user