comparison Sources/Autogenerated/sdk_OrthancPluginDicomWebNode.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_OrthancPluginDicomWebNode_Type.tp_init = (initproc) sdk_OrthancPluginDicomWebNode_Constructor; 80 sdk_OrthancPluginDicomWebNode_Type.tp_init = (initproc) sdk_OrthancPluginDicomWebNode_Constructor;
81 81
82 82
83 if (PyType_Ready(&sdk_OrthancPluginDicomWebNode_Type) < 0) 83 if (PyType_Ready(&sdk_OrthancPluginDicomWebNode_Type) < 0)
84 { 84 {
85 OrthancPlugins::LogError("Cannot register Python class: OrthancPluginDicomWebNode"); 85 ORTHANC_PLUGINS_LOG_ERROR("Cannot register Python class: OrthancPluginDicomWebNode");
86 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); 86 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError);
87 } 87 }
88 88
89 Py_INCREF(&sdk_OrthancPluginDicomWebNode_Type); 89 Py_INCREF(&sdk_OrthancPluginDicomWebNode_Type);
90 if (PyModule_AddObject(module, "DicomWebNode", (PyObject *)&sdk_OrthancPluginDicomWebNode_Type) < 0) 90 if (PyModule_AddObject(module, "DicomWebNode", (PyObject *)&sdk_OrthancPluginDicomWebNode_Type) < 0)
91 { 91 {
92 OrthancPlugins::LogError("Cannot register Python class: OrthancPluginDicomWebNode"); 92 ORTHANC_PLUGINS_LOG_ERROR("Cannot register Python class: OrthancPluginDicomWebNode");
93 Py_DECREF(&sdk_OrthancPluginDicomWebNode_Type); 93 Py_DECREF(&sdk_OrthancPluginDicomWebNode_Type);
94 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); 94 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError);
95 } 95 }
96 } 96 }
97 97