From 7fd8f4c3f733331a2e29da8c975b4efc89ccd63e Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Sun, 7 Oct 2012 09:17:38 +0000 Subject: [PATCH] Remove a useless cast. Detected by the upcoming gcc-4.8. --- src/menu_events.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/menu_events.cpp b/src/menu_events.cpp index a11d8383526..8c60cde63dd 100644 --- a/src/menu_events.cpp +++ b/src/menu_events.cpp @@ -2535,9 +2535,9 @@ class console_handler : public map_command_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