X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2c0aa88e3d941e79fc79d39e3e58224d282b76d3..298475b7a7f5b043d8d6870ac51626a9d8bd3777:/teshsuite/surf/lmm_usage/lmm_usage.cpp diff --git a/teshsuite/surf/lmm_usage/lmm_usage.cpp b/teshsuite/surf/lmm_usage/lmm_usage.cpp index 9ecc8e57ab..d2affab765 100644 --- a/teshsuite/surf/lmm_usage/lmm_usage.cpp +++ b/teshsuite/surf/lmm_usage/lmm_usage.cpp @@ -98,7 +98,7 @@ static void test3() int flows = 11; int links = 10; - double** A = new double*[links + 5]; + auto* A = new double*[links + 5]; /* array to add the constraints of fictitious variables */ double B[15] = { 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1 }; @@ -133,12 +133,12 @@ static void test3() lmm::System* Sys = lmm::make_new_maxmin_system(false); /* Creates the constraints */ - lmm::Constraint** tmp_cnst = new lmm::Constraint*[15]; + auto* tmp_cnst = new lmm::Constraint*[15]; for (int i = 0; i < 15; i++) tmp_cnst[i] = Sys->constraint_new(nullptr, B[i]); /* Creates the variables */ - lmm::Variable** tmp_var = new lmm::Variable*[16]; + auto* tmp_var = new lmm::Variable*[16]; for (int j = 0; j < 16; j++) { tmp_var[j] = Sys->variable_new(nullptr, 1.0, -1.0, 15); Sys->update_variable_penalty(tmp_var[j], 1.0);