diff Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 3400:0faae6f6e3c5

fixed some inconsistencies with pointer types in the plugin sdk
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Jun 2019 14:26:09 +0200
parents 4e8205871967
children e280ced38a4c
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Fri Jun 07 14:14:31 2019 +0200
+++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Fri Jun 07 14:26:09 2019 +0200
@@ -234,7 +234,7 @@
   }
 
   bool MemoryBuffer::RestApiPost(const std::string& uri,
-                                 const char* body,
+                                 const void* body,
                                  size_t bodySize,
                                  bool applyPlugins)
   {
@@ -252,7 +252,7 @@
 
 
   bool MemoryBuffer::RestApiPut(const std::string& uri,
-                                const char* body,
+                                const void* body,
                                 size_t bodySize,
                                 bool applyPlugins)
   {
@@ -1228,7 +1228,7 @@
 
   bool RestApiPost(Json::Value& result,
                    const std::string& uri,
-                   const char* body,
+                   const void* body,
                    size_t bodySize,
                    bool applyPlugins)
   {
@@ -1261,7 +1261,7 @@
 
   bool RestApiPut(Json::Value& result,
                   const std::string& uri,
-                  const char* body,
+                  const void* body,
                   size_t bodySize,
                   bool applyPlugins)
   {