diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-03-12 00:40:10 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-03-12 00:40:10 +0000 |
commit | b2a58d8dc6aaf5bfc0eaa707060ec0a26af81171 (patch) | |
tree | e47b5dd1ea140cc68f997b55c8a2bb921501b659 /py/modules/IcePy/ObjectFactory.cpp | |
parent | merging Mark's changes from R2_1_branch (diff) | |
download | ice-b2a58d8dc6aaf5bfc0eaa707060ec0a26af81171.tar.bz2 ice-b2a58d8dc6aaf5bfc0eaa707060ec0a26af81171.tar.xz ice-b2a58d8dc6aaf5bfc0eaa707060ec0a26af81171.zip |
fix for bug 127
Diffstat (limited to 'py/modules/IcePy/ObjectFactory.cpp')
-rw-r--r-- | py/modules/IcePy/ObjectFactory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/modules/IcePy/ObjectFactory.cpp b/py/modules/IcePy/ObjectFactory.cpp index 3e85948a061..3b82a402fc9 100644 --- a/py/modules/IcePy/ObjectFactory.cpp +++ b/py/modules/IcePy/ObjectFactory.cpp @@ -50,7 +50,7 @@ IcePy::ObjectFactory::create(const string& id) // // Invoke the create method on the Python factory object. // - PyObjectHandle obj = PyObject_CallMethod(p->second, "create", "s", id.c_str()); + PyObjectHandle obj = PyObject_CallMethod(p->second, STRCAST("create"), STRCAST("s"), id.c_str()); if(obj.get() == NULL) { throw AbortMarshaling(); @@ -94,7 +94,7 @@ IcePy::ObjectFactory::destroy() // // Invoke the destroy method on each registered Python factory. // - PyObjectHandle obj = PyObject_CallMethod(p->second, "destroy", NULL); + PyObjectHandle obj = PyObject_CallMethod(p->second, STRCAST("destroy"), NULL); PyErr_Clear(); Py_DECREF(p->second); } |