From f64b78d3efff8e059e976d233924a7d840d610e4 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Sun, 29 Mar 2009 20:30:15 +0000 Subject: [PATCH] Converted the old style casts to c++ style casts. --- src/editor2/editor_controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor2/editor_controller.cpp b/src/editor2/editor_controller.cpp index 51743251d1a..e2403a0b6c5 100644 --- a/src/editor2/editor_controller.cpp +++ b/src/editor2/editor_controller.cpp @@ -1119,7 +1119,6 @@ void editor_controller::fill_selection() perform_refresh(editor_action_paint_area(get_map().selection(), foreground_terrain_)); } - void editor_controller::hotkey_set_mouse_action(hotkey::HOTKEY_COMMAND command) { std::map::iterator i = mouse_actions_.find(command); @@ -1131,7 +1130,8 @@ void editor_controller::hotkey_set_mouse_action(hotkey::HOTKEY_COMMAND command) hotkey::get_hotkey(command).get_description()); gui().invalidate_game_status(); } else { - ERR_ED << "Invalid hotkey command (" << (int)command << ") passed to set_mouse_action\n"; + ERR_ED << "Invalid hotkey command (" + << static_cast(command) << ") passed to set_mouse_action\n"; } }