X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FMEDWrapper%2FMED_Factory.cxx;h=72f080ca20be482cf0f8ee6f25d418b53e1d4161;hp=7d03749e6fe53c9854ce4e04395cf0901813cf18;hb=88ff35ddd4a4442397bc5f6ba893aaf9c51b1856;hpb=ad1d7c52f7a12f0b755a98e925bfd13c3e8daada diff --git a/src/MEDWrapper/MED_Factory.cxx b/src/MEDWrapper/MED_Factory.cxx index 7d03749e6..72f080ca2 100644 --- a/src/MEDWrapper/MED_Factory.cxx +++ b/src/MEDWrapper/MED_Factory.cxx @@ -197,12 +197,12 @@ namespace MED med_int wantedMajor = MED_MAJOR_NUM; med_int wantedMinor = MED_MINOR_NUM; // when non managed version of file is requested : ignore it and take the latest version - std::vector versionsOK(GetMEDVersionsAppendCompatible()); - bool isVersionRequestedOK(std::find(versionsOK.begin(),versionsOK.end(),theVersion)!=versionsOK.end()); + std::vector versionsOK = GetMEDVersionsAppendCompatible(); + bool isVersionRequestedOK = std::find(versionsOK.begin(),versionsOK.end(),theVersion)!=versionsOK.end(); if (isCreated && isVersionRequestedOK) { - wantedMajor = theVersion/10; - wantedMinor = theVersion%10; + wantedMajor = theVersion / 10; + wantedMinor = theVersion % 10; } return new MED::TWrapper(fileName, true, tfileInst, wantedMajor, wantedMinor); }