Fix compiler error in Windows

C7555	use of designated initializers requires at least '/std:c++latest'

This is not supported by the current Windows compiler version.
This commit is contained in:
Antonio Vazquez 2021-03-31 16:01:18 +02:00
parent 10272ca788
commit d55d4fee30
1 changed files with 3 additions and 5 deletions

View File

@ -129,11 +129,9 @@ void ExecutionGroup::initExecution()
if (this->m_chunks_len != 0) {
m_work_packages.resize(this->m_chunks_len);
for (unsigned int index = 0; index < m_chunks_len; index++) {
m_work_packages[index] = {
.state = eChunkExecutionState::NotScheduled,
.execution_group = this,
.chunk_number = index,
};
m_work_packages[index].state = eChunkExecutionState::NotScheduled;
m_work_packages[index].execution_group = this;
m_work_packages[index].chunk_number = index;
determineChunkRect(&m_work_packages[index].rect, index);
}
}