# HG changeset patch # User Sebastien Jodogne # Date 1584353610 -3600 # Node ID edabdf07ee832e75b79a02e1b35a64fcdfeaf8b9 # Parent 113a7b994a12f824b1297d7bffee111ae3d258cc replacing deprecated std::auto_ptr by boost::movelib in C++ plugin wrapper diff -r 113a7b994a12 -r edabdf07ee83 Plugins/Samples/Common/OrthancPluginCppWrapper.cpp --- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Thu Mar 12 21:48:35 2020 +0100 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Mon Mar 16 11:13:30 2020 +0100 @@ -33,8 +33,9 @@ #include "OrthancPluginCppWrapper.h" +#include +#include #include -#include #include #include @@ -2168,7 +2169,7 @@ static const char* KEY_ASYNCHRONOUS = "Asynchronous"; static const char* KEY_PRIORITY = "Priority"; - std::auto_ptr protection(job); + boost::movelib::unique_ptr protection(job); if (body.type() != Json::objectValue) { @@ -3059,7 +3060,7 @@ } else { - std::auto_ptr reader(PostHandler(url, request)); + boost::movelib::unique_ptr reader(PostHandler(url, request)); if (reader.get() == NULL) { ORTHANC_PLUGINS_THROW_EXCEPTION(Plugin); @@ -3092,7 +3093,7 @@ } else { - std::auto_ptr reader(PutHandler(url, request)); + boost::movelib::unique_ptr reader(PutHandler(url, request)); if (reader.get() == NULL) { ORTHANC_PLUGINS_THROW_EXCEPTION(Plugin);