Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix initialization order.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 5 Dec 2013 13:24:54 +0000 (14:24 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 5 Dec 2013 21:20:04 +0000 (22:20 +0100)
Compilers whine when it's different from the declaration order.

src/surf/surf_interface.cpp

index ea208ec..c7906e2 100644 (file)
@@ -757,9 +757,9 @@ Action::Action(ModelPtr model, double cost, bool failed)
  , m_remains(cost)
  , m_maxDuration(NO_MAX_DURATION)
  , m_cost(cost)
  , m_remains(cost)
  , m_maxDuration(NO_MAX_DURATION)
  , m_cost(cost)
+ , p_data(NULL)
  , p_model(model)
  , m_refcount(1)
  , p_model(model)
  , m_refcount(1)
- , p_data(NULL)
 {
   #ifdef HAVE_TRACING
     p_category = NULL;
 {
   #ifdef HAVE_TRACING
     p_category = NULL;