From 168ae6f7e2e87d3050c39bbb03148924751370a3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 24 May 2009 21:09:00 +0000 Subject: (svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts. --- src/vehicle_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicle_gui.cpp') diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index e1cc4aef0..57bb893b1 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -144,7 +144,7 @@ static RefitList *BuildRefitList(const Vehicle *v) uint max_lines = 256; RefitOption *refit = CallocT(max_lines); RefitList *list = CallocT(1); - Vehicle *u = (Vehicle*)v; + Vehicle *u = const_cast(v); uint num_lines = 0; uint i; -- cgit v1.2.3-54-g00ecf