Remove a useless cast.

Detected by the upcoming gcc-4.8.
This commit is contained in:
Mark de Wever 2012-10-07 09:17:38 +00:00
parent 44b3dccd10
commit 7fd8f4c3f7

View File

@ -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