comparison OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp @ 4199:fbc49a65340a

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Sep 2020 20:28:20 +0200
parents 6774605d4341
children 4d42408da117
comparison
equal deleted inserted replaced
4198:c671331ea1ef 4199:fbc49a65340a
68 int responseCount, 68 int responseCount,
69 T_DIMSE_C_FindRSP *response, /* pending response received */ 69 T_DIMSE_C_FindRSP *response, /* pending response received */
70 DcmDataset *responseIdentifiers /* pending response identifiers */ 70 DcmDataset *responseIdentifiers /* pending response identifiers */
71 ) 71 )
72 { 72 {
73 FindPayload& payload = *reinterpret_cast<FindPayload*>(callbackData);
74
75 if (responseIdentifiers != NULL) 73 if (responseIdentifiers != NULL)
76 { 74 {
75 FindPayload& payload = *reinterpret_cast<FindPayload*>(callbackData);
76
77 if (payload.isWorklist) 77 if (payload.isWorklist)
78 { 78 {
79 ParsedDicomFile answer(*responseIdentifiers); 79 ParsedDicomFile answer(*responseIdentifiers);
80 payload.answers->Add(answer); 80 payload.answers->Add(answer);
81 } 81 }
652 MoveInternal(targetAet, ResourceType_Instance, query); 652 MoveInternal(targetAet, ResourceType_Instance, query);
653 } 653 }
654 654
655 655
656 void DicomControlUserConnection::FindWorklist(DicomFindAnswers& result, 656 void DicomControlUserConnection::FindWorklist(DicomFindAnswers& result,
657 ParsedDicomFile& query) 657 const ParsedDicomFile& query)
658 { 658 {
659 DcmDataset* dataset = query.GetDcmtkObject().getDataset(); 659 DcmDataset* dataset = query.GetDcmtkObject().getDataset();
660 const char* sopClass = UID_FINDModalityWorklistInformationModel; 660 const char* sopClass = UID_FINDModalityWorklistInformationModel;
661 661
662 FindInternal(result, dataset, sopClass, true, NULL); 662 FindInternal(result, dataset, sopClass, true, NULL);