From 94711098e4bc0f2c95c11c0cdb0766857872f87a Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Thu, 15 Oct 2009 19:38:45 +0000 Subject: * 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. --- source/blender/freestyle/intern/python/BPy_SShape.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/freestyle/intern/python/BPy_SShape.cpp') diff --git a/source/blender/freestyle/intern/python/BPy_SShape.cpp b/source/blender/freestyle/intern/python/BPy_SShape.cpp index 6538818d025..9ab2fbac096 100644 --- a/source/blender/freestyle/intern/python/BPy_SShape.cpp +++ b/source/blender/freestyle/intern/python/BPy_SShape.cpp @@ -177,7 +177,7 @@ PyObject * SShape_bbox( BPy_SShape *self ) { PyObject * SShape_getVertexList( BPy_SShape *self ) { - PyObject *py_vertices = PyList_New(NULL); + PyObject *py_vertices = PyList_New(0); vector< SVertex * > vertices = self->ss->getVertexList(); vector< SVertex * >::iterator it; @@ -191,7 +191,7 @@ PyObject * SShape_getVertexList( BPy_SShape *self ) { PyObject * SShape_getEdgeList( BPy_SShape *self ) { - PyObject *py_edges = PyList_New(NULL); + PyObject *py_edges = PyList_New(0); vector< FEdge * > edges = self->ss->getEdgeList(); vector< FEdge * >::iterator it; @@ -229,4 +229,4 @@ PyObject * SShape_setId( BPy_SShape *self , PyObject *args) { #ifdef __cplusplus } -#endif \ No newline at end of file +#endif -- cgit v1.2.3