Ignore:
Timestamp:
Apr 26, 2010, 1:49:59 PM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
075729
Parents:
0707dd
Message:

Added macros that allow type safe casting using the Assert mechanism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Actions/small_actions.cpp

    r0707dd r1561e2  
    5555
    5656Action::state_ptr ChangeMoleculeNameAction::performUndo(Action::state_ptr _state) {
    57   ChangeMoleculeNameState *state = dynamic_cast<ChangeMoleculeNameState*>(_state.get());
    58   ASSERT(state,"State passed to ChangeMoleculeNameAction::performUndo did not have correct type");
     57  ChangeMoleculeNameState *state = assert_cast<ChangeMoleculeNameState*>(_state.get());
    5958
    6059  string newName = state->mol->getName();
Note: See TracChangeset for help on using the changeset viewer.