Skip to content

Commit f3a9467

Browse files
committed
fixup! fixup! fixup! fixup! develop
1 parent bbd618a commit f3a9467

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

include/boost/python/converter/pytype_function.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ struct to_python_target_type
118118
static PyTypeObject const *get_pytype()
119119
{
120120
const converter::registration *r=converter::registry::query(
121-
detail::unwind_type_id_((boost::type<T>*)0, (mpl::bool_<boost::python::detail::is_void<T>::value >*)0 )
121+
detail::unwind_type_id_((boost::type<T>*)BOOST_NULLPTR, (mpl::bool_<boost::python::detail::is_void<T>::value >*)BOOST_NULLPTR )
122122
);
123123
return r ? r->to_python_target_type(): BOOST_NULLPTR;
124124
}

include/boost/python/detail/result.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace boost { namespace python { namespace detail {
4141
# include BOOST_PP_ITERATE()
4242

4343
template <class R, class T>
44-
boost::type<R>* result(R (T::*), int = 0) { return 0; }
44+
boost::type<R>* result(R (T::*), int = 0) { return BOOST_NULLPTR; }
4545

4646
# if (defined(__MWERKS__) && __MWERKS__ < 0x3000)
4747
// This code actually works on all implementations, but why use it when we don't have to?
@@ -75,7 +75,7 @@ result(X const&, short) { return 0; }
7575
# else // Simpler code for more-capable compilers
7676
template <class X>
7777
boost::type<typename X::result_type>*
78-
result(X const&, short = 0) { return 0; }
78+
result(X const&, short = 0) { return BOOST_NULLPTR; }
7979

8080
# endif
8181

include/boost/python/detail/target.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
# include <boost/python/detail/preprocessor.hpp>
1212

13+
# include <boost/config.hpp>
1314
# include <boost/type.hpp>
1415

1516
# include <boost/preprocessor/comma_if.hpp>
@@ -30,7 +31,7 @@ namespace boost { namespace python { namespace detail {
3031
# include BOOST_PP_ITERATE()
3132

3233
template <class R, class T>
33-
T& (* target(R (T::*)) )() { return 0; }
34+
T& (* target(R (T::*)) )() { return BOOST_NULLPTR; }
3435

3536
}}} // namespace boost::python::detail
3637

test/pytype_function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct BFromPython
5050
static void* convertible(PyObject* obj_ptr)
5151
{
5252
extract<const A&> ex(obj_ptr);
53-
if (!ex.check()) return 0;
53+
if (!ex.check()) return BOOST_NULLPTR;
5454
return obj_ptr;
5555
}
5656

test/voidptr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void *get()
1717

1818
void *getnull()
1919
{
20-
return 0;
20+
return BOOST_NULLPTR;
2121
}
2222

2323
void use(void *a)

0 commit comments

Comments
 (0)