diff OrthancServer/Sources/OrthancGetRequestHandler.cpp @ 4288:5b254bd435d3

fix for VS2008
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 04 Nov 2020 18:26:44 +0100
parents 5a3374b6e707
children 91554aecff9a
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancGetRequestHandler.cpp	Wed Nov 04 17:48:11 2020 +0100
+++ b/OrthancServer/Sources/OrthancGetRequestHandler.cpp	Wed Nov 04 18:26:44 2020 +0100
@@ -400,12 +400,8 @@
     
     if (stDetail.get() != NULL)
     {
-      // It is impossible to directly use the "<<" stream construct
-      // with "DcmObject::PrintHelper" using MSVC2008
-      std::stringstream s;
-      DcmObject::PrintHelper obj(*stDetail);
-      obj.dcmobj_.print(s);
-
+      std::stringstream s;  // DcmObject::PrintHelper cannot be used with VS2008
+      stDetail->print(s);
       CLOG(INFO, DICOM) << "  Status Detail: " << s.str();
     }