Mercurial > hg > orthanc-python
diff CodeAnalysis/Class.mustache @ 171:c8de83fe7faa
removed deprecation warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Jun 2024 15:52:51 +0200 |
parents | 6fada29b6759 |
children | 20b004998fc2 |
line wrap: on
line diff
--- a/CodeAnalysis/Class.mustache Thu Jun 27 14:26:59 2024 +0200 +++ b/CodeAnalysis/Class.mustache Thu Jun 27 15:52:51 2024 +0200 @@ -127,14 +127,14 @@ if (PyType_Ready(&sdk_{{class_name}}_Type) < 0) { - OrthancPlugins::LogError("Cannot register Python class: {{class_name}}"); + ORTHANC_PLUGINS_LOG_ERROR("Cannot register Python class: {{class_name}}"); ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); } Py_INCREF(&sdk_{{class_name}}_Type); if (PyModule_AddObject(module, "{{short_name}}", (PyObject *)&sdk_{{class_name}}_Type) < 0) { - OrthancPlugins::LogError("Cannot register Python class: {{class_name}}"); + ORTHANC_PLUGINS_LOG_ERROR("Cannot register Python class: {{class_name}}"); Py_DECREF(&sdk_{{class_name}}_Type); ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); }