From: Michal Sojka Date: Fri, 31 Aug 2012 11:29:48 +0000 (+0200) Subject: Do not consider boost::sc::state class as a state to draw X-Git-Url: http://rtime.felk.cvut.cz/gitweb/boost-statechart-viewer.git/commitdiff_plain/ffb3eb3c9a7b28697a7d2f8223709753508053ed Do not consider boost::sc::state class as a state to draw --- diff --git a/src/visualizer.cpp b/src/visualizer.cpp index 503ebaf..77f6ae8 100644 --- a/src/visualizer.cpp +++ b/src/visualizer.cpp @@ -360,6 +360,8 @@ public: { if (!Declaration->isCompleteDefinition()) return true; + if (Declaration->getQualifiedNameAsString() == "boost::statechart::state") + return true; // This is an "abstract class" not a real state MyCXXRecordDecl *RecordDecl = static_cast(Declaration); const CXXBaseSpecifier *Base; @@ -373,7 +375,6 @@ public: // Either we saw a reference to forward declared state // before, or we create a new state. if (!(state = model.removeFromUndefinedContexts(name))) - // TODO: Fix the value of name state = new Model::State(name); CXXRecordDecl *Context = getTemplateArgDecl(Base->getType().getTypePtr(), 1);