diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-02-14 18:43:13 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-02-14 18:43:13 +0000 |
commit | 410c6ec2996ca95a50b9bfad5f422ffd27a7fbfb (patch) | |
tree | f5a5feacc64e37c3bd6ec70dfca1e6e00b2dd19d /cpp/src | |
parent | adding context to checkedCast; other context fixes (diff) | |
download | ice-410c6ec2996ca95a50b9bfad5f422ffd27a7fbfb.tar.bz2 ice-410c6ec2996ca95a50b9bfad5f422ffd27a7fbfb.tar.xz ice-410c6ec2996ca95a50b9bfad5f422ffd27a7fbfb.zip |
adding context argument to checkedCast
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Slice/PythonUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index c50ce95ba46..9990617741f 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=''):"; + _out << sp << nl << "def checkedCast(proxy, facet='', _ctx=None):"; _out.inc(); - _out << nl << "return _M_" << abs << "Prx.ice_checkedCast(proxy, '" << scoped << "', facet)"; + _out << nl << "return _M_" << abs << "Prx.ice_checkedCast(proxy, '" << scoped << "', facet, _ctx)"; _out.dec(); _out << nl << "checkedCast = staticmethod(checkedCast)"; |