From dea2aed0b509734ec4e1cd163ac2a4f013000da2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 11 Jun 2010 16:03:50 -0400 Subject: Untabified all source files --- src/pyutils.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/pyutils.h') diff --git a/src/pyutils.h b/src/pyutils.h index e0f77003..efb1b858 100644 --- a/src/pyutils.h +++ b/src/pyutils.h @@ -59,8 +59,8 @@ struct register_optional_to_python : public boost::noncopyable static PyObject * convert(const boost::optional& value) { return boost::python::incref - (value ? boost::python::to_python_value()(*value) : - boost::python::detail::none()); + (value ? boost::python::to_python_value()(*value) : + boost::python::detail::none()); } }; @@ -71,30 +71,30 @@ struct register_optional_to_python : public boost::noncopyable using namespace boost::python::converter; if (source == Py_None) - return source; + return source; const registration& converters(registered::converters); if (implicit_rvalue_convertible_from_python(source, converters)) { - rvalue_from_python_stage1_data data = - rvalue_from_python_stage1(source, converters); - return rvalue_from_python_stage2(source, data, converters); + rvalue_from_python_stage1_data data = + rvalue_from_python_stage1(source, converters); + return rvalue_from_python_stage2(source, data, converters); } return NULL; } static void construct(PyObject * source, - boost::python::converter::rvalue_from_python_stage1_data * data) + boost::python::converter::rvalue_from_python_stage1_data * data) { using namespace boost::python::converter; void * const storage = - reinterpret_cast *>(data)->storage.bytes; + reinterpret_cast *>(data)->storage.bytes; - if (data->convertible == source) // == None - new (storage) boost::optional(); // A Boost uninitialized value + if (data->convertible == source) // == None + new (storage) boost::optional(); // A Boost uninitialized value else - new (storage) boost::optional(*reinterpret_cast(data->convertible)); + new (storage) boost::optional(*reinterpret_cast(data->convertible)); data->convertible = storage; } -- cgit v1.2.3