/* 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. */
-#include <locale.h>
+#include <clocale>
#include "simgrid/msg.h"
#include "simgrid/plugins/energy.h"
xbt_dynar_free(&hosts);
/* Cleanup java storages */
- for (auto elm : java_storage_map)
+ for (auto const& elm : java_storage_map)
jstorage_unref(env, elm.second);
}
for (int i = 1; i < argc; i++)
env->SetObjectArrayElement(args,i - 1, env->NewStringUTF(argv[i]));
//Retrieve the host for the process.
- jstring jhostName = env->NewStringUTF(MSG_host_self()->cname());
+ jstring jhostName = env->NewStringUTF(MSG_host_self()->getCname());
jobject jhost = Java_org_simgrid_msg_Host_getByName(env, nullptr, jhostName);
//creates the process
jobject jprocess = env->NewObject(class_Process, constructor_Process, jhost, jname, args);