From bc9d8e252bc9c91f7bfc0ee3a81b29f734ba302e Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Wed, 2 Jul 2025 15:16:21 -0400 Subject: [PATCH] Replace NULL with nullptr Follow-up of c00ebf4d ("Replace NULL with nullptr", 2023-01-01) (cherry picked from commit commontk/PythonQt@5d2c9b6f14496f5e516102c1b8de182c069937d8) --- src/PythonQtSlot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PythonQtSlot.cpp b/src/PythonQtSlot.cpp index a502be4b6..29c8ae4e8 100644 --- a/src/PythonQtSlot.cpp +++ b/src/PythonQtSlot.cpp @@ -613,7 +613,7 @@ meth_get__self__(PythonQtSlotFunctionObject *m, void * /*closure*/) if (PyEval_GetRestricted()) { PyErr_SetString(PyExc_RuntimeError, "method.__self__ not accessible in restricted mode"); - return NULL; + return nullptr; } #endif self = m->m_self;