[asterisk-scf-commits] asterisk-scf/integration/ice.git branch "slice2cs-data-member-fix" created.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Fri Feb 18 13:22:24 CST 2011
branch "slice2cs-data-member-fix" has been created
at 943d60b77a242b74f56ae3399bafa6052bf0d485 (commit)
- Log -----------------------------------------------------------------
commit 943d60b77a242b74f56ae3399bafa6052bf0d485
Author: Kevin P. Fleming <kpfleming at digium.com>
Date: Fri Feb 18 13:21:43 2011 -0600
Commit patch from Brent to make slice2cs properly determine whether any
base classes have data members.
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp
index 7a089e9..55aae83 100644
--- a/cpp/src/slice2cs/Gen.cpp
+++ b/cpp/src/slice2cs/Gen.cpp
@@ -756,7 +756,7 @@ Slice::CsVisitor::writeDispatchAndMarshalling(const ClassDefPtr& p, bool stream)
emitGeneratedCodeAttribute();
}
_out << nl << "public sealed ";
- if(hasBaseClass && bases.front()->declaration()->usesClasses())
+ if(hasBaseClass && bases.front()->allClassDataMembers().size() != 0)
{
_out << "new ";
}
@@ -2896,7 +2896,7 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p)
_out << sp;
emitGeneratedCodeAttribute();
_out << nl << "public sealed ";
- if(base && base->usesClasses())
+ if(base && base->allClassDataMembers().size() != 0)
{
_out << "new ";
}
-----------------------------------------------------------------------
--
asterisk-scf/integration/ice.git
More information about the asterisk-scf-commits
mailing list