Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sonar: redundent forward declaration
[simgrid.git] / src / msg / instr_msg_process.cpp
index d9eceb3..a0aa212 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010, 2012-2017. The SimGrid Team. All rights reserved.    */
+/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -12,13 +12,13 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_msg_process, instr, "MSG process");
 
 std::string instr_pid(msg_process_t proc)
 {
-  return std::string(proc->getCname()) + "-" + std::to_string(proc->getPid());
+  return std::string(proc->get_cname()) + "-" + std::to_string(proc->get_pid());
 }
 
 void TRACE_msg_process_kill(smx_process_exit_status_t status, msg_process_t process)
 {
   if (TRACE_actor_is_enabled() && status == SMX_EXIT_FAILURE) {
     //kill means that this process no longer exists, let's destroy it
-    simgrid::instr::Container::byName(instr_pid(process))->removeFromParent();
+    simgrid::instr::Container::by_name(instr_pid(process))->remove_from_parent();
   }
 }