changeset 4217:78c8b4a18619

fix for c++98
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Sep 2020 07:38:22 +0200
parents 61585d8a9faf
children 8e069a7e1c11
files OrthancFramework/UnitTestsSources/DicomMapTests.cpp
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/DicomMapTests.cpp	Tue Sep 29 19:44:38 2020 +0200
+++ b/OrthancFramework/UnitTestsSources/DicomMapTests.cpp	Wed Sep 30 07:38:22 2020 +0200
@@ -1450,8 +1450,11 @@
 {
   static const std::string PATH = "/home/jodogne/Subversion/orthanc-tests/Database/TransferSyntaxes/";
 
-  //std::ifstream stream(PATH + "1.2.840.10008.1.2.4.50.dcm");
-  std::ifstream stream(PATH + "1.2.840.10008.1.2.2.dcm");
+  const std::string path = PATH + "1.2.840.10008.1.2.4.50.dcm";
+  //const std::string path = PATH + "1.2.840.10008.1.2.2.dcm";
+
+  
+  std::ifstream stream(path.c_str());
   
   DicomStreamReader r(stream);
   V visitor;