auto mapIter = mCacheImpl->mWaitingTasksCache.find(task.Get());
if(mapIter != mCacheImpl->mWaitingTasksCache.end())
{
- for(auto iterator : mapIter->second)
+ for(auto& iterator : mapIter->second)
{
DALI_ASSERT_DEBUG((*iterator) == task);
if((*iterator)->GetPriorityType() == AsyncTask::PriorityType::HIGH)
auto mapIter = mCacheImpl->mRunningTasksCache.find(task.Get());
if(mapIter != mCacheImpl->mRunningTasksCache.end())
{
- for(auto iterator : mapIter->second)
+ for(auto& iterator : mapIter->second)
{
DALI_ASSERT_DEBUG((*iterator).first == task);
// We cannot erase container. Just mark as canceled.
auto mapIter = mCacheImpl->mCompletedTasksCache.find(task.Get());
if(mapIter != mCacheImpl->mCompletedTasksCache.end())
{
- for(auto iterator : mapIter->second)
+ for(auto& iterator : mapIter->second)
{
DALI_ASSERT_DEBUG((*iterator) == task);
mCompletedTasks.erase(iterator);