diff options
author | Alex Zolotarev <alex@maps.me> | 2014-10-14 13:14:55 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:30:57 +0300 |
commit | 0ddcff0b07566260e1e00990f70555110fb5cfa7 (patch) | |
tree | 32d542f1b9d9f6dcdc4e800b4ac5b3d6ee62b2c8 /anim | |
parent | 9ad4f6585c45443815b7ab9a691a7c47eefe6012 (diff) |
[msvc][win] Fixed compilation issues
Diffstat (limited to 'anim')
-rw-r--r-- | anim/controller.cpp | 8 | ||||
-rw-r--r-- | anim/task.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/anim/controller.cpp b/anim/controller.cpp index 2366a52c62..1ac5e21fc4 100644 --- a/anim/controller.cpp +++ b/anim/controller.cpp @@ -22,7 +22,7 @@ namespace anim void Controller::AddTask(TTaskPtr const & task) { - m_tasks.ProcessList([&](TTasks & taskList) + m_tasks.ProcessList([&] (TTasks & taskList) { taskList.push_back(task); task->SetController(this); @@ -57,7 +57,7 @@ namespace anim void Controller::PerformStep() { - m_tasks.ProcessList([this](TTasks & from) + m_tasks.ProcessList([this] (TTasks & from) { m_tasksList.clear(); swap(from, m_tasksList); @@ -93,9 +93,9 @@ namespace anim } m_hasVisualTasks = false; - m_tasks.ProcessList([&](TTasks & to) + m_tasks.ProcessList([&] (TTasks & to) { - for_each(resultList.begin(), resultList.end(), [&](TTaskPtr const & task) + for_each(resultList.begin(), resultList.end(), [&] (TTaskPtr const & task) { m_hasVisualTasks |= task->IsVisual(); to.push_back(task); diff --git a/anim/task.cpp b/anim/task.cpp index d4f213ae74..7511d2b4d2 100644 --- a/anim/task.cpp +++ b/anim/task.cpp @@ -37,7 +37,7 @@ namespace anim void Task::PerformCallbacks(EState state) { list<TCallback> const & cb = m_Callbacks[state]; - for_each(cb.begin(), cb.end(), [] (TCallback const & cb) { cb(); }); + for_each(cb.begin(), cb.end(), [] (TCallback const & el) { el(); }); } void Task::OnStart(double ts) |