diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-10-15 23:38:45 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-10-15 23:38:45 +0400 |
commit | 94711098e4bc0f2c95c11c0cdb0766857872f87a (patch) | |
tree | 53720f53d984af8d1adec861b8f0da6b6fe9aa95 /source/blender/freestyle/intern/python/UnaryFunction1D | |
parent | 3c7d54b38a137f5de9af716cfcc0672facf202ad (diff) |
* Fixed compiler warnings concerning the lack of a newline at the
end of a file.
* Fixed compiler warnings due to an invalid argument to PyList_New().
NULL was used instead of 0 to create an empty list.
Diffstat (limited to 'source/blender/freestyle/intern/python/UnaryFunction1D')
-rw-r--r-- | source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp index d1ff993d0a0..4f5a5a731f9 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp @@ -166,7 +166,7 @@ PyObject * UnaryFunction1DVectorViewShape___call__( BPy_UnaryFunction1DVectorVie } return NULL; } - PyObject *list = PyList_New(NULL); + PyObject *list = PyList_New(0); for( unsigned int i = 0; i < self->uf1D_vectorviewshape->result.size(); i++) PyList_Append(list, BPy_ViewShape_from_ViewShape(*( self->uf1D_vectorviewshape->result[i] )) ); |