Skip to content

Commit

Permalink
Removed unnecessary intermediate variables in MicroBolt
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham Tremper committed Aug 14, 2014
1 parent 7066f6f commit 991790f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions autowiring/MicroBolt.h
Expand Up @@ -23,10 +23,8 @@ struct MicroBolt:
// NOTE: Injection of T into all matching contexts may result in
// multiple calls to Inject<T>() if a matching context
// is created during traversal.
std::shared_ptr<CoreContext> rootContext = CoreContext::CurrentContext();
auto listSigils = {ContextEnumeratorT<Sigils>(rootContext)...};
for (auto findSigil : listSigils)
for (auto context : findSigil)
for(auto findSigil : {ContextEnumeratorT<Sigils>(CoreContext::CurrentContext())...})
for(auto context : findSigil)
context->template Inject<T>();
}
void ContextCreated(void) override;
Expand Down

0 comments on commit 991790f

Please sign in to comment.