diff OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.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 f5d44e30b429
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp	Wed Nov 04 17:48:11 2020 +0100
+++ b/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp	Wed Nov 04 18:26:44 2020 +0100
@@ -748,8 +748,8 @@
       // detail information, dump this information
       if (statusDetail != NULL)
       {
-        std::stringstream s;  // This is necessary for VS2008
-        s << DcmObject::PrintHelper(*statusDetail);
+        std::stringstream s;  // DcmObject::PrintHelper cannot be used with VS2008
+        statusDetail->print(s);
         CLOG(TRACE, DICOM) << "Status Detail:" << std::endl << s.str();
 
         delete statusDetail;
@@ -1143,8 +1143,8 @@
       assert(dataset.get() != NULL);
 
       {
-        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);
         CLOG(TRACE, DICOM) << "Received Storage Commitment Request:" << std::endl << s.str();
       }
       
@@ -1279,8 +1279,8 @@
       assert(dataset.get() != NULL);
 
       {
-        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);
         CLOG(TRACE, DICOM) << "Received Storage Commitment Report:" << std::endl << s.str();
       }