# HG changeset patch # User Mike Miller # Date 1493413498 25200 # Node ID 3a64a336d21440aa36fed4426767a9a0dd5dbb35 # Parent 6c316b5f30f7f42b3f961da6fd7c54dbc9cfcc8b maint: fix coding style on method declarations * oct-py-object.h: Insert a line break after the return type and space after the "operator" keyword in method declarations. diff -r 6c316b5f30f7 -r 3a64a336d214 oct-py-object.h --- a/oct-py-object.h Fri Apr 28 10:34:18 2017 -0700 +++ b/oct-py-object.h Fri Apr 28 14:04:58 2017 -0700 @@ -21,7 +21,7 @@ */ #if ! defined (pytave_oct_py_object_h) -#define pytave_oct_py_object_h +#define pytave_oct_py_object_h 1 #include @@ -51,7 +51,8 @@ Py_DECREF (pyobj); } - python_object& operator= (const python_object& oth) + python_object& + operator = (const python_object& oth) { if (isowned) Py_DECREF (pyobj); @@ -62,7 +63,8 @@ return *this; } - python_object& operator= (PyObject *obj) + python_object& + operator = (PyObject *obj) { if (isowned) Py_DECREF (pyobj); @@ -78,17 +80,19 @@ return isowned; } - operator PyObject *() + operator PyObject * () { return pyobj; } - bool is_none () + bool + is_none () const { return pyobj && pyobj == Py_None; } - PyObject *release () + PyObject * + release () { isowned = false; PyObject *ret = pyobj;