diff Sources/PythonFunction.cpp @ 13:952e969a2240

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Apr 2020 08:19:13 +0200
parents 7ed502b17b8f
children fd58eb5749ed
line wrap: on
line diff
--- a/Sources/PythonFunction.cpp	Tue Mar 31 18:18:58 2020 +0200
+++ b/Sources/PythonFunction.cpp	Wed Apr 01 08:19:13 2020 +0200
@@ -39,7 +39,7 @@
 
 
 PythonFunction::PythonFunction(PythonLock& lock,
-                               PythonModule& module,
+                               const PythonModule& module,
                                const std::string& name) :
   lock_(lock)
 {
@@ -78,7 +78,7 @@
 }
 
 
-PythonObject* PythonFunction::Call(PythonObject& args)
+PythonObject* PythonFunction::Call(const PythonObject& args)
 {
   std::unique_ptr<PythonObject> result(CallUnchecked(args.GetPyObject()));