Author: mordante
Date: Sun Mar 29 22:30:15 2009
New Revision: 34254
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34254&view=rev
Log:
Converted the old style casts to c++ style casts.
Modified:
trunk/src/editor2/editor_controller.cpp
Modified: trunk/src/editor2/editor_controller.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_controller.cpp?rev=34254&r1=34253&r2=34254&view=diff
==============================================================================
--- trunk/src/editor2/editor_controller.cpp (original)
+++ trunk/src/editor2/editor_controller.cpp Sun Mar 29 22:30:15 2009
@@ -1119,7 +1119,6 @@
perform_refresh(editor_action_paint_area(get_map().selection(),
foreground_terrain_));
}
-
void editor_controller::hotkey_set_mouse_action(hotkey::HOTKEY_COMMAND command)
{
std::map<hotkey::HOTKEY_COMMAND, mouse_action*>::iterator i =
mouse_actions_.find(command);
@@ -1131,7 +1130,8 @@
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<int>(command) << ") passed to
set_mouse_action\n";
}
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits