From: malaterre Date: Thu, 20 Oct 2005 14:25:47 +0000 (+0000) Subject: ENH: Previous code did not work on VS6 X-Git-Tag: OpenJPEG.Version1.2~290 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=50828e5995f7bd7e41291316beb39b301e60342e;p=gdcm.git ENH: Previous code did not work on VS6 --- diff --git a/src/gdcmVR.cxx b/src/gdcmVR.cxx index 617f374c..75dca7bb 100644 --- a/src/gdcmVR.cxx +++ b/src/gdcmVR.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmVR.cxx,v $ Language: C++ - Date: $Date: 2005/10/20 08:58:18 $ - Version: $Revision: 1.42 $ + Date: $Date: 2005/10/20 14:25:47 $ + Version: $Revision: 1.43 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -178,13 +178,10 @@ unsigned short VR::GetAtomicElementLength(VRKey const &tested) */ void VR::Print(std::ostream &os) { - std::ostringstream s; - for (VRHT::iterator it = vr.begin(); it != vr.end(); ++it) { - s << "VR : " << it->first << " = " << it->second << std::endl; + os << "VR : " << it->first << " = " << it->second << std::endl; } - os << s.str(); } //-----------------------------------------------------------------------------