summaryrefslogtreecommitdiff
path: root/python/modules/IcePy/ImplicitContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'python/modules/IcePy/ImplicitContext.cpp')
-rw-r--r--python/modules/IcePy/ImplicitContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/modules/IcePy/ImplicitContext.cpp b/python/modules/IcePy/ImplicitContext.cpp
index ca05e859048..4383e290874 100644
--- a/python/modules/IcePy/ImplicitContext.cpp
+++ b/python/modules/IcePy/ImplicitContext.cpp
@@ -109,7 +109,7 @@ implicitContextCompare(ImplicitContextObject* c1, PyObject* other, int op)
extern "C"
#endif
static PyObject*
-implicitContextGetContext(ImplicitContextObject* self)
+implicitContextGetContext(ImplicitContextObject* self, PyObject* /*args*/)
{
Ice::Context ctx = (*self->implicitContext)->getContext();
@@ -284,7 +284,7 @@ implicitContextRemove(ImplicitContextObject* self, PyObject* args)
static PyMethodDef ImplicitContextMethods[] =
{
- { STRCAST("getContext"), reinterpret_cast<PyCFunction>(implicitContextGetContext), METH_VARARGS,
+ { STRCAST("getContext"), reinterpret_cast<PyCFunction>(implicitContextGetContext), METH_NOARGS,
PyDoc_STR(STRCAST("getContext() -> Ice.Context")) },
{ STRCAST("setContext"), reinterpret_cast<PyCFunction>(implicitContextSetContext), METH_VARARGS,
PyDoc_STR(STRCAST("setContext(ctx) -> string")) },