]> rtime.felk.cvut.cz Git - boost-statechart-viewer.git/commitdiff
Simplify and fix indentation
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 2 Jan 2013 21:59:23 +0000 (22:59 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 2 Jan 2013 21:59:23 +0000 (22:59 +0100)
src/visualizer.cpp

index f22ff3ce885704ce665e46b5aab75032cfc888bd..eda81974df4424f8d3c7f3481a95539bdf9fc656 100644 (file)
@@ -451,15 +451,12 @@ public:
        IdentifierInfo& II = ASTCtx->Idents.get("reactions");
        // TODO: Lookup for reactions even in base classes - probably by using Sema::LookupQualifiedName()
        for (DeclContext::lookup_result Reactions = RecordDecl->lookup(DeclarationName(&II));
-            Reactions.first != Reactions.second; ++Reactions.first)
-       {           
-               HandleReaction(*Reactions.first, RecordDecl);
-               typedef_num++;
-       }
+            Reactions.first != Reactions.second; ++Reactions.first, typedef_num++)
+           HandleReaction(*Reactions.first, RecordDecl);
        if(typedef_num == 0) {
-               Diag(RecordDecl->getLocStart(), diag_warning)
-                   << " missing typedef for reactions in state : " << RecordDecl->getName();
-                   state->setNoTypedef();
+           Diag(RecordDecl->getLocStart(), diag_warning)
+               << " missing typedef for reactions in state : " << RecordDecl->getName();
+           state->setNoTypedef();
        }
     }