diff OrthancServer/Sources/QueryRetrieveHandler.cpp @ 4105:c02a2d9efbc2

move FromDcmtkBridge::ExecuteToDicom() to LuaFunctionCall, to remove dependency of DCMTK on Lua
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jul 2020 13:48:10 +0200
parents 05b8fd21089c
children a4f28efdfccf
line wrap: on
line diff
--- a/OrthancServer/Sources/QueryRetrieveHandler.cpp	Mon Jul 06 11:45:39 2020 +0200
+++ b/OrthancServer/Sources/QueryRetrieveHandler.cpp	Mon Jul 06 13:48:10 2020 +0200
@@ -39,6 +39,7 @@
 #include "../../OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.h"
 #include "../../OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.h"
 #include "../../OrthancFramework/Sources/Logging.h"
+#include "../../OrthancFramework/Sources/Lua/LuaFunctionCall.h"
 #include "LuaScripting.h"
 #include "ServerContext.h"
 
@@ -58,7 +59,7 @@
       LuaFunctionCall call(lock.GetLua(), LUA_CALLBACK);
       call.PushDicom(query);
       call.PushJson(modality);
-      FromDcmtkBridge::ExecuteToDicom(query, call);
+      call.ExecuteToDicom(query);
     }
   }