diff Plugins/Engine/OrthancPlugins.cpp @ 3951:5fe8c6d3212e transcoding

removed useless information "hasSopInstanceUidChanged"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 19 May 2020 21:06:53 +0200
parents 1f33ed7f82e6
children 821715370890
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.cpp	Tue May 19 20:37:00 2020 +0200
+++ b/Plugins/Engine/OrthancPlugins.cpp	Tue May 19 21:06:53 2020 +0200
@@ -4376,12 +4376,12 @@
           source.SetExternalBuffer(p.buffer, p.size);
 
           IDicomTranscoder::DicomImage transcoded;
-          bool success, hasSopInstanceChanged;
+          bool success;
           
           {
             PImpl::ServerContextLock lock(*pimpl_);
-            success = lock.GetContext().Transcode(transcoded, hasSopInstanceChanged, source,
-                                                  syntaxes, true /* allow new sop */);
+            success = lock.GetContext().Transcode(
+              transcoded, source, syntaxes, true /* allow new sop */);
           }
 
           if (success)
@@ -5214,7 +5214,6 @@
   
 
   bool OrthancPlugins::TranscodeBuffer(std::string& target,
-                                       bool& hasSopInstanceUidChanged /* out */,
                                        const void* buffer,
                                        size_t size,
                                        const std::set<DicomTransferSyntax>& allowedSyntaxes,
@@ -5240,14 +5239,12 @@
          transcoder != pimpl_->transcoderCallbacks_.end(); ++transcoder)
     {
       MemoryBufferRaii a;
-      uint8_t b;
-
-      if ((*transcoder) (a.GetObject(), &b, buffer, size, uids.empty() ? NULL : &uids[0],
+
+      if ((*transcoder) (a.GetObject(), buffer, size, uids.empty() ? NULL : &uids[0],
                          static_cast<uint32_t>(uids.size()), allowNewSopInstanceUid) ==
           OrthancPluginErrorCode_Success)
       {
         a.ToString(target);
-        hasSopInstanceUidChanged = b;
         return true;
       }
     }