]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/blobdiff - src/visualizer.cpp
Order Diag parameters as expected by diag_warning template
[boost-statechart-viewer.git] / src / visualizer.cpp
index eda81974df4424f8d3c7f3481a95539bdf9fc656..068926d57a0e3ba525d8dca131178c60263ccc23 100644 (file)
@@ -62,10 +62,10 @@ namespace Model
     {
        string initialInnerState;
        list<string> defferedEvents;
+       bool noTypedef;
     public:
        const string name;
-       bool noTypedef;
-       explicit State(string name) : name(name), noTypedef(false) {}
+       explicit State(string name) : noTypedef(false), name(name) {}
        void setInitialInnerState(string name) { initialInnerState = name; }
        void addDeferredEvent(const string &name) { defferedEvents.push_back(name); }
        void setNoTypedef() { noTypedef = true;}
@@ -455,7 +455,7 @@ public:
            HandleReaction(*Reactions.first, RecordDecl);
        if(typedef_num == 0) {
            Diag(RecordDecl->getLocStart(), diag_warning)
-               << " missing typedef for reactions in state : " << RecordDecl->getName();
+               << RecordDecl->getName() << "state has no typedef for reactions";
            state->setNoTypedef();
        }
     }