Skip to content

Commit

Permalink
Rearranged initialization in CTask
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Jun 25, 2012
1 parent cf577de commit a45e370
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/shogun/transfer/multitask/Task.cpp
Expand Up @@ -11,20 +11,19 @@

using namespace shogun;

CTask::CTask() : CSGObject(),
CTask::CTask() : CSGObject(),
m_task_name("task"),
m_min_index(0), m_max_index(0),
m_weight(1.0), m_task_name("task")
m_weight(1.0), m_subtasks(NULL)
{
m_subtasks = new CList();
}

CTask::CTask(index_t min_index, index_t max_index,
float64_t weight, const char* name) :
CSGObject(),
m_min_index(min_index),
m_max_index(max_index),
m_weight(weight),
m_task_name(name)
CSGObject(), m_task_name(name),
m_min_index(min_index), m_max_index(max_index),
m_weight(weight), m_subtasks(NULL)
{
m_subtasks = new CList();
}
Expand Down

0 comments on commit a45e370

Please sign in to comment.