comparison Sources/Autogenerated/sdk_OrthancPluginServerChunkedRequestReader.impl.h @ 171:c8de83fe7faa

removed deprecation warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Jun 2024 15:52:51 +0200
parents 6fada29b6759
children 55473de7694f
comparison
equal deleted inserted replaced
170:b49eeb36cd0d 171:c8de83fe7faa
80 sdk_OrthancPluginServerChunkedRequestReader_Type.tp_init = (initproc) sdk_OrthancPluginServerChunkedRequestReader_Constructor; 80 sdk_OrthancPluginServerChunkedRequestReader_Type.tp_init = (initproc) sdk_OrthancPluginServerChunkedRequestReader_Constructor;
81 81
82 82
83 if (PyType_Ready(&sdk_OrthancPluginServerChunkedRequestReader_Type) < 0) 83 if (PyType_Ready(&sdk_OrthancPluginServerChunkedRequestReader_Type) < 0)
84 { 84 {
85 OrthancPlugins::LogError("Cannot register Python class: OrthancPluginServerChunkedRequestReader"); 85 ORTHANC_PLUGINS_LOG_ERROR("Cannot register Python class: OrthancPluginServerChunkedRequestReader");
86 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); 86 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError);
87 } 87 }
88 88
89 Py_INCREF(&sdk_OrthancPluginServerChunkedRequestReader_Type); 89 Py_INCREF(&sdk_OrthancPluginServerChunkedRequestReader_Type);
90 if (PyModule_AddObject(module, "ServerChunkedRequestReader", (PyObject *)&sdk_OrthancPluginServerChunkedRequestReader_Type) < 0) 90 if (PyModule_AddObject(module, "ServerChunkedRequestReader", (PyObject *)&sdk_OrthancPluginServerChunkedRequestReader_Type) < 0)
91 { 91 {
92 OrthancPlugins::LogError("Cannot register Python class: OrthancPluginServerChunkedRequestReader"); 92 ORTHANC_PLUGINS_LOG_ERROR("Cannot register Python class: OrthancPluginServerChunkedRequestReader");
93 Py_DECREF(&sdk_OrthancPluginServerChunkedRequestReader_Type); 93 Py_DECREF(&sdk_OrthancPluginServerChunkedRequestReader_Type);
94 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); 94 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError);
95 } 95 }
96 } 96 }
97 97