aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pysideweakref.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-06-18 11:27:06 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-06-24 10:36:11 +0200
commit1a4593f940b0eca4d0756092ed34c2b6a6962bd6 (patch)
tree2869c01e31258c12347601980715888e8b352a15 /sources/pyside6/libpyside/pysideweakref.cpp
parent8f85650fe8066c5903e865aedb3d92d863243996 (diff)
libpyside: Fix static analysis warnings
- Initialize variables - Use auto * - Remove repeated return types - Fix else after return - Fix some invocations of static methods - Make functions const/static where appropriate - Fix some int types to avoid lossy conversions - Use Py_RETURN_NONE where appropriate - Minor cleanups - Remove some macros Change-Id: I7fa7a29e7b3dc47037027978001824e0709d001f Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/pysideweakref.cpp')
-rw-r--r--sources/pyside6/libpyside/pysideweakref.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/libpyside/pysideweakref.cpp b/sources/pyside6/libpyside/pysideweakref.cpp
index 5f3ca59e4..e4d6a9a3d 100644
--- a/sources/pyside6/libpyside/pysideweakref.cpp
+++ b/sources/pyside6/libpyside/pysideweakref.cpp
@@ -42,7 +42,7 @@ static PyTypeObject *PySideCallableObject_TypeF()
static PyObject *CallableObject_call(PyObject *callable_object, PyObject *args, PyObject * /* kw */)
{
- PySideCallableObject *obj = reinterpret_cast<PySideCallableObject *>(callable_object);
+ auto *obj = reinterpret_cast<PySideCallableObject *>(callable_object);
obj->weakref_func(obj->user_data);
Py_XDECREF(PyTuple_GET_ITEM(args, 0)); //kill weak ref object