From d0dd94b3bab6007ec04534a451f456ceebd6dca7 Mon Sep 17 00:00:00 2001 From: malaterre Date: Fri, 28 Jan 2005 17:29:59 +0000 Subject: [PATCH] COMP: Solve both problem of push_back missing in VS6 (already fixed) and no need to call reverse anymore --- src/gdcmUtil.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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; } -- 2.48.1