Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/Compatibility/ICreateInstance.cpp @ 4121:7c9ff821063a framework-lgpl
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Jul 2020 19:54:53 +0200 |
parents | 05b8fd21089c |
children | 50b0c69b653a |
comparison
equal
deleted
inserted
replaced
4120:304842a0d152 | 4121:7c9ff821063a |
---|---|
81 assert(dummy == ResourceType_Series); | 81 assert(dummy == ResourceType_Series); |
82 // The patient, the study and the series already exist | 82 // The patient, the study and the series already exist |
83 | 83 |
84 bool ok = (database.LookupResource(result.patientId_, dummy, hashPatient) && | 84 bool ok = (database.LookupResource(result.patientId_, dummy, hashPatient) && |
85 database.LookupResource(result.studyId_, dummy, hashStudy)); | 85 database.LookupResource(result.studyId_, dummy, hashStudy)); |
86 (void) ok; // Remove warning about unused variable in release builds | |
86 assert(ok); | 87 assert(ok); |
87 } | 88 } |
88 else if (database.LookupResource(result.studyId_, dummy, hashStudy)) | 89 else if (database.LookupResource(result.studyId_, dummy, hashStudy)) |
89 { | 90 { |
90 assert(dummy == ResourceType_Study); | 91 assert(dummy == ResourceType_Study); |
91 | 92 |
92 // New series: The patient and the study already exist | 93 // New series: The patient and the study already exist |
93 result.isNewSeries_ = true; | 94 result.isNewSeries_ = true; |
94 | 95 |
95 bool ok = database.LookupResource(result.patientId_, dummy, hashPatient); | 96 bool ok = database.LookupResource(result.patientId_, dummy, hashPatient); |
97 (void) ok; // Remove warning about unused variable in release builds | |
96 assert(ok); | 98 assert(ok); |
97 } | 99 } |
98 else if (database.LookupResource(result.patientId_, dummy, hashPatient)) | 100 else if (database.LookupResource(result.patientId_, dummy, hashPatient)) |
99 { | 101 { |
100 assert(dummy == ResourceType_Patient); | 102 assert(dummy == ResourceType_Patient); |