]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/commitdiff
Do not consider boost::sc::state class as a state to draw
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 31 Aug 2012 11:29:48 +0000 (13:29 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 31 Aug 2012 11:29:48 +0000 (13:29 +0200)
src/visualizer.cpp

index 503ebaf72cdf79ec3baca4e90964cbfcf8b12987..77f6ae82297ce94727fec1bb1cd16bc8ca48b61e 100644 (file)
@@ -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<MyCXXRecordDecl*>(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);