comparison Sources/PythonFunction.h @ 13:952e969a2240

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Apr 2020 08:19:13 +0200
parents 7ed502b17b8f
children fd58eb5749ed
comparison
equal deleted inserted replaced
12:0b8239ce1bec 13:952e969a2240
36 36
37 PythonObject* CallUnchecked(PyObject* args); 37 PythonObject* CallUnchecked(PyObject* args);
38 38
39 public: 39 public:
40 PythonFunction(PythonLock& lock, 40 PythonFunction(PythonLock& lock,
41 PythonModule& module, 41 const PythonModule& module,
42 const std::string& name); 42 const std::string& name);
43 43
44 bool IsValid() const 44 bool IsValid() const
45 { 45 {
46 return func_.get() != NULL; 46 return func_.get() != NULL;
47 } 47 }
48 48
49 PythonObject* Call(); 49 PythonObject* Call();
50 50
51 PythonObject* Call(PythonObject& args); 51 PythonObject* Call(const PythonObject& args);
52 52
53 void CallVoid() 53 void CallVoid()
54 { 54 {
55 std::unique_ptr<PythonObject> result(Call()); 55 std::unique_ptr<PythonObject> result(Call());
56 } 56 }