comparison Sources/RestCallbacks.cpp @ 53:664a12539073

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Dec 2020 17:00:51 +0100
parents ee76cced46a5
children 23f3099bed47
comparison
equal deleted inserted replaced
52:13eb87c58b0a 53:664a12539073
124 } 124 }
125 125
126 PythonObject kw(lock, PyDict_New()); 126 PythonObject kw(lock, PyDict_New());
127 127
128 { 128 {
129 PythonString str(lock, method); 129 PythonString tmp(lock, method);
130 PyDict_SetItemString(kw.GetPyObject(), "method", str.Release()); 130 PyDict_SetItemString(kw.GetPyObject(), "method", tmp.Release());
131 } 131 }
132 132
133 { 133 {
134 PythonObject groups(lock, PyTuple_New(request->groupsCount)); 134 PythonObject groups(lock, PyTuple_New(request->groupsCount));
135 135
136 for (uint32_t i = 0; i < request->groupsCount; i++) 136 for (uint32_t i = 0; i < request->groupsCount; i++)
137 { 137 {
138 PythonString str(lock, request->groups[i]); 138 PythonString tmp(lock, request->groups[i]);
139 PyTuple_SetItem(groups.GetPyObject(), i, str.Release()); 139 PyTuple_SetItem(groups.GetPyObject(), i, tmp.Release());
140 } 140 }
141 141
142 PyDict_SetItemString(kw.GetPyObject(), "groups", groups.Release()); 142 PyDict_SetItemString(kw.GetPyObject(), "groups", groups.Release());
143 } 143 }
144 144