summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/ThreadNotification.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2007-04-18 17:19:06 +0000
committerMark Spruiell <mes@zeroc.com>2007-04-18 17:19:06 +0000
commit1129b050e2c513f1d0b87d5b29bae7699e35778b (patch)
tree2c1076967a445ce0e26948a03f283337ea80aab4 /py/modules/IcePy/ThreadNotification.cpp
parentAdded nmake support for WinCE (diff)
downloadice-1129b050e2c513f1d0b87d5b29bae7699e35778b.tar.bz2
ice-1129b050e2c513f1d0b87d5b29bae7699e35778b.tar.xz
ice-1129b050e2c513f1d0b87d5b29bae7699e35778b.zip
bug 1493: removing use of NULL bug 1852: fixing compiler warnings bug 1853:
fixing compiler warnings bug 2098: change proxy factory methods to return object of same class
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();
}