comparison OrthancServer/Plugins/Samples/Sanitizer/Plugin.cpp @ 4915:189ae9a37e01

reorder arguments to put the target as first argument (convention)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Feb 2022 22:18:54 +0100
parents 4b10cbf3ccc8
children 676e03e69703
comparison
equal deleted inserted replaced
4914:4b10cbf3ccc8 4915:189ae9a37e01
31 #include <iostream> 31 #include <iostream>
32 32
33 33
34 34
35 35
36 OrthancPluginReceivedInstanceCallbackResult ReceivedInstanceCallback(const void* receivedDicomBuffer, 36 OrthancPluginReceivedInstanceCallbackResult ReceivedInstanceCallback(OrthancPluginMemoryBuffer64* modifiedDicomBuffer,
37 uint64_t receivedDicomBufferSize, 37 const void* receivedDicomBuffer,
38 OrthancPluginMemoryBuffer64* modifiedDicomBuffer) 38 uint64_t receivedDicomBufferSize)
39 { 39 {
40 Orthanc::ParsedDicomFile dicom(receivedDicomBuffer, receivedDicomBufferSize); 40 Orthanc::ParsedDicomFile dicom(receivedDicomBuffer, receivedDicomBufferSize);
41 std::string institutionName = "My institution"; 41 std::string institutionName = "My institution";
42 42
43 dicom.Replace(Orthanc::DICOM_TAG_INSTITUTION_NAME, institutionName, false, Orthanc::DicomReplaceMode_InsertIfAbsent, ""); 43 dicom.Replace(Orthanc::DICOM_TAG_INSTITUTION_NAME, institutionName, false, Orthanc::DicomReplaceMode_InsertIfAbsent, "");