diff Resources/Samples/OrthancClient/Vtk/main.cpp @ 591:a00f626290db

better api
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 02 Oct 2013 17:36:14 +0200
parents 3237eea24487
children 08eca5d86aad
line wrap: on
line diff
--- a/Resources/Samples/OrthancClient/Vtk/main.cpp	Wed Oct 02 15:01:02 2013 +0200
+++ b/Resources/Samples/OrthancClient/Vtk/main.cpp	Wed Oct 02 17:36:14 2013 +0200
@@ -143,17 +143,17 @@
 
     for (unsigned int i = 0; i < orthanc.GetPatientCount(); i++)
     {
-      OrthancClient::Patient patient = orthanc.GetPatient(i);
+      OrthancClient::Patient patient(orthanc.GetPatient(i));
       std::cout << "Patient: " << patient.GetId() << std::endl;
 
       for (unsigned int j = 0; j < patient.GetStudyCount(); j++)
       {
-        OrthancClient::Study study = patient.GetStudy(j);
+        OrthancClient::Study study(patient.GetStudy(j));
         std::cout << "  Study: " << study.GetId() << std::endl;
 
         for (unsigned int k = 0; k < study.GetSeriesCount(); k++)
         {
-          OrthancClient::Series series = study.GetSeries(k);
+          OrthancClient::Series series(study.GetSeries(k));
           std::cout << "    Series: " << series.GetId() << std::endl;
 
           if (series.Is3DImage())