+ whitespace improvement

This commit is contained in:
wmayer 2015-12-27 19:16:05 +01:00
parent 1f4f94017a
commit 24c234b80a
2 changed files with 8 additions and 9 deletions

View File

@ -179,8 +179,8 @@ Py::Object View3DInventorViewerPy::getSoEventManager(const Py::Tuple& args)
Py::Object View3DInventorViewerPy::seekToPoint(const Py::Tuple& args)
{
PyObject* object;
if (!PyArg_ParseTuple(args.ptr(), "O", &object))
throw Py::Exception();
if (!PyArg_ParseTuple(args.ptr(), "O", &object))
throw Py::Exception();
try {
const Py::Tuple tuple(object);
@ -257,4 +257,4 @@ Py::Object View3DInventorViewerPy::getFocalDistance(const Py::Tuple& args)
catch(...) {
throw Py::Exception("Unknown C++ exception");
}
}
}

View File

@ -51,22 +51,21 @@ public:
Py::Object repr();
Py::Object getattr(const char *);
int setattr(const char *, const Py::Object &);
//exposed methods
Py::Object getSoEventManager(const Py::Tuple&);
Py::Object getSoRenderManager(const Py::Tuple&);
Py::Object seekToPoint(const Py::Tuple&);
Py::Object setFocalDistance(const Py::Tuple& args);
Py::Object getFocalDistance(const Py::Tuple& args);
Py::Object getFocalDistance(const Py::Tuple& args);
private:
private:
typedef PyObject* (*method_varargs_handler)(PyObject *_self, PyObject *_args);
static method_varargs_handler pycxx_handler;
static PyObject *method_varargs_ext_handler(PyObject *_self, PyObject *_args);
private:
std::list<PyObject*> callbacks;
View3DInventorViewer* _viewer;