Author: silene
Date: Tue Apr 14 14:49:22 2009
New Revision: 34905
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34905&view=rev
Log:
Fixed const-ness of strchr result.
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=34905&r1=34904&r2=34905&view=diff
==============================================================================
--- trunk/src/widgets/menu.cpp (original)
+++ trunk/src/widgets/menu.cpp Tue Apr 14 14:49:22 2009
@@ -153,8 +153,8 @@
//we need to further parse xp into x and y components instead
of x/y
//so we grab the position of slash character
- char *slash1 = strchr(digits[0],'/');
- char *slash2 = strchr(digits[1],'/');
+ const char *slash1 = strchr(digits[0],'/');
+ const char *slash2 = strchr(digits[1],'/');
int xp1_y,xp2_y;
if(slash1)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits