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

fix for VS2008
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 04 Nov 2020 18:26:44 +0100
parents 526bd8bad850
children d9473bd5ed43
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/Internals/FindScp.cpp	Wed Nov 04 17:48:11 2020 +0100
+++ b/OrthancFramework/Sources/DicomNetworking/Internals/FindScp.cpp	Wed Nov 04 18:26:44 2020 +0100
@@ -212,8 +212,8 @@
       if (data.lastRequest_ == NULL)
       {
         {
-          std::stringstream s;  // This is necessary for VS2008
-          s << DcmObject::PrintHelper(*requestIdentifiers);
+          std::stringstream s;  // DcmObject::PrintHelper cannot be used with VS2008
+          requestIdentifiers->print(s);
           CLOG(TRACE, DICOM) << "Received C-FIND Request:" << std::endl << s.str();
         }
       
@@ -331,8 +331,8 @@
 
         if (*responseIdentifiers)
         {
-          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);
           OFString str;
           CLOG(TRACE, DICOM) << "Sending C-FIND Response "
                              << responseCount << "/" << data.answers_.GetSize() << ":" << std::endl