summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/ThreadNotification.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'py/modules/IcePy/ThreadNotification.cpp')
-rw-r--r--py/modules/IcePy/ThreadNotification.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/modules/IcePy/ThreadNotification.cpp b/py/modules/IcePy/ThreadNotification.cpp
index 1e53296c333..6b306efe103 100644
--- a/py/modules/IcePy/ThreadNotification.cpp
+++ b/py/modules/IcePy/ThreadNotification.cpp
@@ -26,8 +26,8 @@ IcePy::ThreadNotificationWrapper::start()
{
AdoptThread adoptThread; // Ensure the current thread is able to call into Python.
- PyObjectHandle tmp = PyObject_CallMethod(_threadNotification.get(), STRCAST("start"), NULL);
- if(tmp.get() == NULL)
+ PyObjectHandle tmp = PyObject_CallMethod(_threadNotification.get(), STRCAST("start"), 0);
+ if(!tmp.get())
{
throwPythonException();
}
@@ -38,8 +38,8 @@ IcePy::ThreadNotificationWrapper::stop()
{
AdoptThread adoptThread; // Ensure the current thread is able to call into Python.
- PyObjectHandle tmp = PyObject_CallMethod(_threadNotification.get(), STRCAST("stop"), NULL);
- if(tmp.get() == NULL)
+ PyObjectHandle tmp = PyObject_CallMethod(_threadNotification.get(), STRCAST("stop"), 0);
+ if(!tmp.get())
{
throwPythonException();
}