Mercurial > hg > orthanc-python
diff Sources/PythonLock.cpp @ 36:fd58eb5749ed
CMake simplification using DownloadOrthancFramework.cmake
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jul 2020 17:37:30 +0200 |
parents | b2bbb516056e |
children | ee76cced46a5 |
line wrap: on
line diff
--- a/Sources/PythonLock.cpp Thu May 28 21:02:23 2020 +0200 +++ b/Sources/PythonLock.cpp Mon Jul 06 17:37:30 2020 +0200 @@ -22,7 +22,9 @@ #include "PythonFunction.h" #include "PythonModule.h" -#include <OrthancPluginCppWrapper.h> +#include "../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h" + +#include <Compatibility.h> // For std::unique_ptr<> #include <boost/thread/mutex.hpp> @@ -137,7 +139,7 @@ PythonObject args(*this, PyTuple_New(1)); PyTuple_SetItem(args.GetPyObject(), 0, traceback); - std::auto_ptr<PythonObject> value(f.CallUnchecked(args.GetPyObject())); + std::unique_ptr<PythonObject> value(f.CallUnchecked(args.GetPyObject())); if (value->IsValid()) {