comparison pyexec.cc @ 403:3644df6564bc

maint: use C++11 nullptr rather than 0 or NULL * __py_struct_from_dict__.cc, oct-py-eval.cc, oct-py-eval.h, oct-py-object.h, oct-py-types.cc, oct-py-util.cc, pycall.cc, pyeval.cc, pyexec.cc: Use C++11 nullptr rather than 0 or NULL.
author Mike Miller <mtmiller@octave.org>
date Fri, 28 Apr 2017 14:19:49 -0700
parents 1470ed26917a
children 478d83448b0b
comparison
equal deleted inserted replaced
402:c4b78e449c62 403:3644df6564bc
71 71
72 std::string code = args(0).string_value (); 72 std::string code = args(0).string_value ();
73 73
74 Py_Initialize (); 74 Py_Initialize ();
75 75
76 PyObject *local_namespace = 0; 76 PyObject *local_namespace = nullptr;
77 if (nargin > 1) 77 if (nargin > 1)
78 { 78 {
79 local_namespace = pytave::pyobject_unwrap_object (args(1)); 79 local_namespace = pytave::pyobject_unwrap_object (args(1));
80 if (! local_namespace) 80 if (! local_namespace)
81 error ("pyexec: NAMESPACE must be a valid Python reference"); 81 error ("pyexec: NAMESPACE must be a valid Python reference");