diff Plugins/Samples/Common/OrthancPluginConnection.cpp @ 2981:eff50153a7b3 db-changes

integration mainline->db-changes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Dec 2018 15:58:08 +0100
parents 800b4daa6dab
children 4e43e67f8ecf
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginConnection.cpp	Thu Oct 18 10:48:11 2018 +0200
+++ b/Plugins/Samples/Common/OrthancPluginConnection.cpp	Thu Dec 06 15:58:08 2018 +0100
@@ -40,7 +40,7 @@
   void OrthancPluginConnection::RestApiGet(std::string& result,
                                            const std::string& uri) 
   {
-    OrthancPlugins::MemoryBuffer buffer(context_);
+    OrthancPlugins::MemoryBuffer buffer;
 
     if (buffer.RestApiGet(uri, false))
     {
@@ -57,7 +57,7 @@
                                             const std::string& uri,
                                             const std::string& body)
   {
-    OrthancPlugins::MemoryBuffer buffer(context_);
+    OrthancPlugins::MemoryBuffer buffer;
 
     if (buffer.RestApiPost(uri, body.c_str(), body.size(), false))
     {
@@ -74,7 +74,7 @@
                                            const std::string& uri,
                                            const std::string& body)
   {
-    OrthancPlugins::MemoryBuffer buffer(context_);
+    OrthancPlugins::MemoryBuffer buffer;
 
     if (buffer.RestApiPut(uri, body.c_str(), body.size(), false))
     {
@@ -89,9 +89,9 @@
 
   void OrthancPluginConnection::RestApiDelete(const std::string& uri)
   {
-    OrthancPlugins::MemoryBuffer buffer(context_);
+    OrthancPlugins::MemoryBuffer buffer;
 
-    if (!::OrthancPlugins::RestApiDelete(context_, uri, false))
+    if (!::OrthancPlugins::RestApiDelete(uri, false))
     {
       ORTHANC_PLUGINS_THROW_EXCEPTION(UnknownResource);
     }