Changeset 32df34 for molecuilder/src/Actions/ActionSequence.cpp
- Timestamp:
- Dec 17, 2009, 2:38:29 PM (16 years ago)
- Children:
- f3dd95
- Parents:
- 425da9
- File:
-
- 1 edited
-
molecuilder/src/Actions/ActionSequence.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Actions/ActionSequence.cpp
r425da9 r32df34 12 12 13 13 ActionSequence::ActionSequence() 14 { 15 // TODO Auto-generated constructor stub 16 17 } 14 {} 18 15 19 16 ActionSequence::~ActionSequence() 20 { 21 // TODO Auto-generated destructor stub 22 } 17 {} 23 18 24 19 … … 28 23 29 24 Action* ActionSequence::removeLastAction(){ 30 Action* theAction; 31 theAction = actions.back(); 32 actions.pop_back(); 33 return theAction; 25 if(actions.empty()) { 26 return 0; 27 } 28 else { 29 Action* theAction; 30 theAction = actions.back(); 31 actions.pop_back(); 32 return theAction; 33 } 34 34 } 35 35
Note:
See TracChangeset
for help on using the changeset viewer.
