comparison Sources/Autogenerated/sdk_OrthancPluginJob.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
108 **/ 108 **/
109 sdk_OrthancPluginJob_Type.tp_dealloc = sdk_OrthancPluginJob_Destructor; 109 sdk_OrthancPluginJob_Type.tp_dealloc = sdk_OrthancPluginJob_Destructor;
110 110
111 if (PyType_Ready(&sdk_OrthancPluginJob_Type) < 0) 111 if (PyType_Ready(&sdk_OrthancPluginJob_Type) < 0)
112 { 112 {
113 OrthancPlugins::LogError("Cannot register Python class: OrthancPluginJob"); 113 ORTHANC_PLUGINS_LOG_ERROR("Cannot register Python class: OrthancPluginJob");
114 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); 114 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError);
115 } 115 }
116 116
117 Py_INCREF(&sdk_OrthancPluginJob_Type); 117 Py_INCREF(&sdk_OrthancPluginJob_Type);
118 if (PyModule_AddObject(module, "Job", (PyObject *)&sdk_OrthancPluginJob_Type) < 0) 118 if (PyModule_AddObject(module, "Job", (PyObject *)&sdk_OrthancPluginJob_Type) < 0)
119 { 119 {
120 OrthancPlugins::LogError("Cannot register Python class: OrthancPluginJob"); 120 ORTHANC_PLUGINS_LOG_ERROR("Cannot register Python class: OrthancPluginJob");
121 Py_DECREF(&sdk_OrthancPluginJob_Type); 121 Py_DECREF(&sdk_OrthancPluginJob_Type);
122 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); 122 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError);
123 } 123 }
124 } 124 }
125 125