From: malaterre Date: Fri, 28 Jan 2005 17:29:59 +0000 (+0000) Subject: COMP: Solve both problem of push_back missing in VS6 (already fixed) and no need... X-Git-Tag: Version1.0.bp~160 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d0dd94b3bab6007ec04534a451f456ceebd6dca7;p=gdcm.git COMP: Solve both problem of push_back missing in VS6 (already fixed) and no need to call reverse anymore --- diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 8433ad06..8fa6d9b1 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2005/01/28 09:37:29 $ - Version: $Revision: 1.126 $ + Date: $Date: 2005/01/28 17:29:59 $ + Version: $Revision: 1.127 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,7 +19,6 @@ #include "gdcmUtil.h" #include "gdcmDebug.h" #include -#include // For GetCurrentDate, GetCurrentTime #include @@ -711,11 +710,9 @@ std::string Util::GetMACAddress() while(!zero) { res = getlastdigit(addr); - sres += ('0' + res); + sres.insert(sres.begin(), '0' + res); zero = (addr[0] == 0) && (addr[1] == 0) && (addr[2] == 0) && (addr[3] == 0) && (addr[4] == 0) && (addr[5] == 0); } - // Since we push back the proper number is reversed: - std::reverse(sres.begin(),sres.end()); return sres; }