# HG changeset patch # User Sebastien Jodogne # Date 1607529651 -3600 # Node ID 664a1253907327d21ca0a4ef756ef3a9055630c3 # Parent 13eb87c58b0abe91f7a918853ceeb85b2a48ebb7 cppcheck diff -r 13eb87c58b0a -r 664a12539073 Sources/RestCallbacks.cpp --- a/Sources/RestCallbacks.cpp Wed Dec 09 16:49:37 2020 +0100 +++ b/Sources/RestCallbacks.cpp Wed Dec 09 17:00:51 2020 +0100 @@ -126,8 +126,8 @@ PythonObject kw(lock, PyDict_New()); { - PythonString str(lock, method); - PyDict_SetItemString(kw.GetPyObject(), "method", str.Release()); + PythonString tmp(lock, method); + PyDict_SetItemString(kw.GetPyObject(), "method", tmp.Release()); } { @@ -135,8 +135,8 @@ for (uint32_t i = 0; i < request->groupsCount; i++) { - PythonString str(lock, request->groups[i]); - PyTuple_SetItem(groups.GetPyObject(), i, str.Release()); + PythonString tmp(lock, request->groups[i]); + PyTuple_SetItem(groups.GetPyObject(), i, tmp.Release()); } PyDict_SetItemString(kw.GetPyObject(), "groups", groups.Release());