Mercurial > hg > orthanc
changeset 5983:5a6aa72628cb
fix memory initialization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 Jan 2025 16:52:35 +0100 |
parents | f3dbc9a58195 |
children | 23cb99dc8b68 |
files | OrthancServer/Sources/ServerJobs/DicomRetrieveScuBaseJob.cpp OrthancServer/Sources/ServerJobs/DicomRetrieveScuBaseJob.h |
diffstat | 2 files changed, 13 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/DicomRetrieveScuBaseJob.cpp Tue Jan 21 16:44:30 2025 +0100 +++ b/OrthancServer/Sources/ServerJobs/DicomRetrieveScuBaseJob.cpp Tue Jan 21 16:52:35 2025 +0100 @@ -155,6 +155,18 @@ } + DicomRetrieveScuBaseJob::DicomRetrieveScuBaseJob(ServerContext &context) : + context_(context), + query_(false /* this is not for worklists */), + queryFormat_(DicomToJsonFormat_Short), + nbRemainingSubOperations_(0), + nbCompletedSubOperations_(0), + nbFailedSubOperations_(0), + nbWarningSubOperations_(0) + { + } + + DicomRetrieveScuBaseJob::DicomRetrieveScuBaseJob(ServerContext& context, const Json::Value& serialized) : SetOfCommandsJob(new Unserializer(*this), serialized),
--- a/OrthancServer/Sources/ServerJobs/DicomRetrieveScuBaseJob.h Tue Jan 21 16:44:30 2025 +0100 +++ b/OrthancServer/Sources/ServerJobs/DicomRetrieveScuBaseJob.h Tue Jan 21 16:52:35 2025 +0100 @@ -96,12 +96,7 @@ virtual void Retrieve(const DicomMap &findAnswer) = 0; - explicit DicomRetrieveScuBaseJob(ServerContext &context) : - context_(context), - query_(false /* this is not for worklists */), - queryFormat_(DicomToJsonFormat_Short) - { - } + explicit DicomRetrieveScuBaseJob(ServerContext &context); DicomRetrieveScuBaseJob(ServerContext &context, const Json::Value &serialized);