diff OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp @ 4288:5b254bd435d3

fix for VS2008
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 04 Nov 2020 18:26:44 +0100
parents 544120b34c09
children 91554aecff9a
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp	Wed Nov 04 17:48:11 2020 +0100
+++ b/OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp	Wed Nov 04 18:26:44 2020 +0100
@@ -79,8 +79,8 @@
       
     if (responseIdentifiers != NULL)
     {
-      std::stringstream s;  // This is necessary for VS2008
-      s << DcmObject::PrintHelper(*responseIdentifiers);
+      std::stringstream s;  // DcmObject::PrintHelper cannot be used with VS2008
+      responseIdentifiers->print(s);
       CLOG(TRACE, DICOM) << "Response Identifiers "  << responseCount << ":" << std::endl << s.str();
     }
     
@@ -283,8 +283,8 @@
 #endif
 
     {
-      std::stringstream s;  // This is necessary for VS2008
-      s << DcmObject::PrintHelper(*dataset);
+      std::stringstream s;  // DcmObject::PrintHelper cannot be used with VS2008
+      dataset->print(s);
 
       OFString str;
       CLOG(TRACE, DICOM) << "Sending Find Request:" << std::endl