changeset 53:664a12539073

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Dec 2020 17:00:51 +0100
parents 13eb87c58b0a
children 0dbc1360e829 434b46538b08
files Sources/RestCallbacks.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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());