Changeset 8d9984 for molecuilder/src/Actions/ActionRegistry.cpp
- Timestamp:
- Mar 25, 2010, 12:01:27 PM (16 years ago)
- Children:
- c3294f, fe3540
- Parents:
- 521e29
- git-author:
- Tillmann Crueger <crueger@…> (03/25/10 11:59:56)
- git-committer:
- Tillmann Crueger <crueger@…> (03/25/10 12:01:27)
- File:
-
- 1 edited
-
molecuilder/src/Actions/ActionRegistry.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Actions/ActionRegistry.cpp
r521e29 r8d9984 12 12 13 13 #include <string> 14 #include <cassert>14 #include "Helpers/Assert.hpp" 15 15 #include <iostream> 16 16 … … 33 33 map<const string,Action*>::iterator iter; 34 34 iter = actionMap.find(name); 35 assert(iter!=actionMap.end() &&"Query for an action not stored in registry");35 ASSERT(iter!=actionMap.end(),"Query for an action not stored in registry"); 36 36 return iter->second; 37 37 } … … 40 40 pair<map<const string,Action*>::iterator,bool> ret; 41 41 ret = actionMap.insert(pair<const string,Action*>(action->getName(),action)); 42 assert(ret.second &&"Two actions with the same name added to registry");42 ASSERT(ret.second,"Two actions with the same name added to registry"); 43 43 } 44 44
Note:
See TracChangeset
for help on using the changeset viewer.
