Author: mordante
Date: Sun Mar 29 22:30:23 2009
New Revision: 34255
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34255&view=rev
Log:
Converted the old style casts to c++ style casts.
Modified:
trunk/src/widgets/menu.cpp
Modified: trunk/src/widgets/menu.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/widgets/menu.cpp?rev=34255&r1=34254&r2=34255&view=diff
==============================================================================
--- trunk/src/widgets/menu.cpp (original)
+++ trunk/src/widgets/menu.cpp Sun Mar 29 22:30:23 2009
@@ -617,8 +617,8 @@
x = event.button.x;
y = event.button.y;
} else {
- x = (long)event.user.data1;
- y = (long)event.user.data2;
+ x = reinterpret_cast<long>(event.user.data1);
+ y = reinterpret_cast<long>(event.user.data2);
}
const int item = hit(x,y);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits