From 50828e5995f7bd7e41291316beb39b301e60342e Mon Sep 17 00:00:00 2001 From: malaterre Date: Thu, 20 Oct 2005 14:25:47 +0000 Subject: [PATCH] ENH: Previous code did not work on VS6 --- src/gdcmVR.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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(); } //----------------------------------------------------------------------------- -- 2.48.1