summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PythonUtil.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2005-08-23 02:13:30 +0000
committerMark Spruiell <mes@zeroc.com>2005-08-23 02:13:30 +0000
commite763cbcbfdd659ac39d1181317a5527048ffdf3a (patch)
tree3f13f6492a1ad20cda5eb8d602e77fda7cccaf58 /cpp/src/Slice/PythonUtil.cpp
parentaccept checkedCast(obj, ctx) (diff)
downloadice-e763cbcbfdd659ac39d1181317a5527048ffdf3a.tar.bz2
ice-e763cbcbfdd659ac39d1181317a5527048ffdf3a.tar.xz
ice-e763cbcbfdd659ac39d1181317a5527048ffdf3a.zip
fix for bug 447 - accept checkedCast(obj, ctx)
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r--cpp/src/Slice/PythonUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp
index 46aa7ceebc5..a2f9d64f2bc 100644
--- a/cpp/src/Slice/PythonUtil.cpp
+++ b/cpp/src/Slice/PythonUtil.cpp
@@ -627,9 +627,9 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
}
}
- _out << sp << nl << "def checkedCast(proxy, facet='', _ctx=None):";
+ _out << sp << nl << "def checkedCast(proxy, facetOrCtx=None, _ctx=None):";
_out.inc();
- _out << nl << "return _M_" << abs << "Prx.ice_checkedCast(proxy, '" << scoped << "', facet, _ctx)";
+ _out << nl << "return _M_" << abs << "Prx.ice_checkedCast(proxy, '" << scoped << "', facetOrCtx, _ctx)";
_out.dec();
_out << nl << "checkedCast = staticmethod(checkedCast)";