diff OrthancFramework/Sources/HttpServer/HttpToolbox.h @ 4350:e457c30970cf

fix ORTHANC_DEPRECATED macro for C++14
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 06 Dec 2020 13:16:27 +0100
parents 17d209a3f397
children d9473bd5ed43
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/HttpToolbox.h	Sun Dec 06 12:47:54 2020 +0100
+++ b/OrthancFramework/Sources/HttpServer/HttpToolbox.h	Sun Dec 06 13:16:27 2020 +0100
@@ -62,36 +62,32 @@
                                     const GetArguments& source);
 
 #if (ORTHANC_ENABLE_MONGOOSE == 1 || ORTHANC_ENABLE_CIVETWEB == 1)
-    ORTHANC_DEPRECATED
-    static bool SimpleGet(std::string& result,
-                          IHttpHandler& handler,
-                          RequestOrigin origin,
-                          const std::string& uri,
-                          const Arguments& httpHeaders);
+    ORTHANC_DEPRECATED(static bool SimpleGet(std::string& result,
+                                             IHttpHandler& handler,
+                                             RequestOrigin origin,
+                                             const std::string& uri,
+                                             const Arguments& httpHeaders));
 
-    ORTHANC_DEPRECATED
-    static bool SimplePost(std::string& result,
-                           IHttpHandler& handler,
-                           RequestOrigin origin,
-                           const std::string& uri,
-                           const void* bodyData,
-                           size_t bodySize,
-                           const Arguments& httpHeaders);
+    ORTHANC_DEPRECATED(static bool SimplePost(std::string& result,
+                                              IHttpHandler& handler,
+                                              RequestOrigin origin,
+                                              const std::string& uri,
+                                              const void* bodyData,
+                                              size_t bodySize,
+                                              const Arguments& httpHeaders));
 
-    ORTHANC_DEPRECATED
-    static bool SimplePut(std::string& result,
-                          IHttpHandler& handler,
-                          RequestOrigin origin,
-                          const std::string& uri,
-                          const void* bodyData,
-                          size_t bodySize,
-                          const Arguments& httpHeaders);
+    ORTHANC_DEPRECATED(static bool SimplePut(std::string& result,
+                                             IHttpHandler& handler,
+                                             RequestOrigin origin,
+                                             const std::string& uri,
+                                             const void* bodyData,
+                                             size_t bodySize,
+                                             const Arguments& httpHeaders));
 
-    ORTHANC_DEPRECATED
-    static bool SimpleDelete(IHttpHandler& handler,
-                             RequestOrigin origin,
-                             const std::string& uri,
-                             const Arguments& httpHeaders);
+    ORTHANC_DEPRECATED(static bool SimpleDelete(IHttpHandler& handler,
+                                                RequestOrigin origin,
+                                                const std::string& uri,
+                                                const Arguments& httpHeaders));
 #endif
   };
 }