summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PythonUtil.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-09-03 16:44:36 +0200
committerJose <jose@zeroc.com>2019-09-03 16:44:36 +0200
commit860cd6940fc075f1b30d07b138f410d230ac0e14 (patch)
tree93c0c2141615b05aedd71e910ecb008a9c30c7aa /cpp/src/Slice/PythonUtil.cpp
parentFix bogus doc comments generated by slice2cs - Close #500 (diff)
downloadice-860cd6940fc075f1b30d07b138f410d230ac0e14.tar.bz2
ice-860cd6940fc075f1b30d07b138f410d230ac0e14.tar.xz
ice-860cd6940fc075f1b30d07b138f410d230ac0e14.zip
Fixes for slice2py forward declarations - Close #490
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r--cpp/src/Slice/PythonUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp
index 83d8a8341d3..4ddb222a3d3 100644
--- a/cpp/src/Slice/PythonUtil.cpp
+++ b/cpp/src/Slice/PythonUtil.cpp
@@ -1827,7 +1827,7 @@ Slice::Python::CodeVisitor::writeType(const TypePtr& p)
if(prx)
{
ClassDefPtr def = prx->_class()->definition();
- if(def && (def->isInterface() || def->allOperations().size() > 0))
+ if(!def || def->isAbstract())
{
_out << "_M_" << getAbsolute(prx->_class(), "_t_", "Prx");
}