Skip to content

Commit e071c40

Browse files
committed
Direct-list initialize task_list_[64] in TaskList constructor
1 parent c8d1d76 commit e071c40

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/task_list/task_list.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626
//----------------------------------------------------------------------------------------
2727
// TaskList constructor
2828

29-
TaskList::TaskList(Mesh *pm) {
30-
pmy_mesh_=pm;
31-
ntasks = 0;
32-
nstages = 0;
33-
}
29+
TaskList::TaskList(Mesh *pm) : ntasks(0), nstages(0), task_list_{}, pmy_mesh_(pm) {}
3430

3531
//----------------------------------------------------------------------------------------
3632
//! \fn enum TaskListStatus TaskList::DoAllAvailableTasks

0 commit comments

Comments
 (0)