(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
This commit is contained in:
@@ -335,7 +335,7 @@ static uint32 StationGetTriggers(const ResolverObject *object)
|
||||
|
||||
static void StationSetTriggers(const ResolverObject *object, int triggers)
|
||||
{
|
||||
Station *st = (Station*)object->u.station.st;
|
||||
Station *st = const_cast<Station *>(object->u.station.st);
|
||||
assert(st != NULL);
|
||||
st->waiting_triggers = triggers;
|
||||
}
|
||||
|
Reference in New Issue
Block a user