]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/blobdiff - src/visualizer.cpp
Move reactMethodInReactions initialization outside of check method
[boost-statechart-viewer.git] / src / visualizer.cpp
index bc83530e5d14e44b70685d625e4d3efc04c3150a..8bbdc55595bbd07681f036327163918c1b28db5c 100644 (file)
@@ -328,7 +328,6 @@ public:
            }
            i++;
        }
-       reactMethodInReactions.clear();
     }
     
     bool HandleCustomReaction(const CXXRecordDecl *SrcState, const Type *EventType)
@@ -450,6 +449,7 @@ public:
        int typedef_num = 0;
        string name(RecordDecl->getName()); //getQualifiedNameAsString());
        Diag(RecordDecl->getLocStart(), diag_found_state) << name;
+       reactMethodInReactions.clear();
 
        Model::State *state;
        // Either we saw a reference to forward declared state