(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:
rubidium
2009-05-24 21:09:00 +00:00
parent 0d99b6c71c
commit 168ae6f7e2
12 changed files with 18 additions and 20 deletions

View File

@@ -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;
}