Ignore:
Timestamp:
Apr 20, 2011, 11:39:47 PM (11 years ago)
Author:
Sam Hocevar
Message:

core: fix a few useless casts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/sprite.cpp

    r513 r519  
    4949
    5050void sprite_controller::add_sprite(sprite *sp)
    51 { sprites.add_end((linked_node *)sp); }
     51{ sprites.add_end(sp); }
    5252
    5353void sprite_controller::remove_sprites()
     
    7474void sprite_controller::bring_front(sprite *sp)
    7575{
    76   ERROR(sprites.unlink((linked_node *)sp),"unlink failure");
    77   sprites.add_end((linked_node *)sp);
     76  ERROR(sprites.unlink(sp),"unlink failure");
     77  sprites.add_end(sp);
    7878}
    7979
    8080void sprite_controller::delete_sprite(sprite *sp)
    8181{
    82   ERROR(sprites.unlink((linked_node *)sp),"unlink failure");
     82  ERROR(sprites.unlink(sp),"unlink failure");
    8383  delete sp;
    8484}
Note: See TracChangeset for help on using the changeset viewer.