Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp @ 4223:3d6f14a05db1
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Sep 2020 16:25:48 +0200 |
parents | 171af1567473 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4222:7461f98c23a0 | 4223:3d6f14a05db1 |
---|---|
412 static const char* TRANSCODE = "Transcode"; | 412 static const char* TRANSCODE = "Transcode"; |
413 | 413 |
414 | 414 |
415 ResourceModificationJob::ResourceModificationJob(ServerContext& context, | 415 ResourceModificationJob::ResourceModificationJob(ServerContext& context, |
416 const Json::Value& serialized) : | 416 const Json::Value& serialized) : |
417 CleaningInstancesJob(context, serialized, true /* by default, keep source */) | 417 CleaningInstancesJob(context, serialized, true /* by default, keep source */), |
418 transferSyntax_(DicomTransferSyntax_LittleEndianExplicit) // dummy initialization | |
418 { | 419 { |
419 assert(serialized.type() == Json::objectValue); | 420 assert(serialized.type() == Json::objectValue); |
420 | 421 |
421 isAnonymization_ = SerializationToolbox::ReadBoolean(serialized, IS_ANONYMIZATION); | 422 isAnonymization_ = SerializationToolbox::ReadBoolean(serialized, IS_ANONYMIZATION); |
422 origin_ = DicomInstanceOrigin(serialized[ORIGIN]); | 423 origin_ = DicomInstanceOrigin(serialized[ORIGIN]); |