comparison Sources/Autogenerated/sdk_OrthancPluginWorklistQuery.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
90 sdk_OrthancPluginWorklistQuery_Type.tp_init = (initproc) sdk_OrthancPluginWorklistQuery_Constructor; 90 sdk_OrthancPluginWorklistQuery_Type.tp_init = (initproc) sdk_OrthancPluginWorklistQuery_Constructor;
91 91
92 92
93 if (PyType_Ready(&sdk_OrthancPluginWorklistQuery_Type) < 0) 93 if (PyType_Ready(&sdk_OrthancPluginWorklistQuery_Type) < 0)
94 { 94 {
95 OrthancPlugins::LogError("Cannot register Python class: OrthancPluginWorklistQuery"); 95 ORTHANC_PLUGINS_LOG_ERROR("Cannot register Python class: OrthancPluginWorklistQuery");
96 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); 96 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError);
97 } 97 }
98 98
99 Py_INCREF(&sdk_OrthancPluginWorklistQuery_Type); 99 Py_INCREF(&sdk_OrthancPluginWorklistQuery_Type);
100 if (PyModule_AddObject(module, "WorklistQuery", (PyObject *)&sdk_OrthancPluginWorklistQuery_Type) < 0) 100 if (PyModule_AddObject(module, "WorklistQuery", (PyObject *)&sdk_OrthancPluginWorklistQuery_Type) < 0)
101 { 101 {
102 OrthancPlugins::LogError("Cannot register Python class: OrthancPluginWorklistQuery"); 102 ORTHANC_PLUGINS_LOG_ERROR("Cannot register Python class: OrthancPluginWorklistQuery");
103 Py_DECREF(&sdk_OrthancPluginWorklistQuery_Type); 103 Py_DECREF(&sdk_OrthancPluginWorklistQuery_Type);
104 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); 104 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError);
105 } 105 }
106 } 106 }
107 107