[Uml-devel] KDE/kdesdk/umbrello/umbrello/codegenerators
Oliver Kellogg
okellogg at users.sourceforge.net
Tue Oct 23 19:22:00 UTC 2007
SVN commit 728591 by okellogg:
writeOperations(): Attachment 21851 from Ferenc Veres suppresses the
return type on constructors. Thanks Ferenc for the fix.
BUG:150988
M +8 -6 csharpwriter.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/csharpwriter.cpp #728590:728591
@@ -489,13 +489,15 @@
}
}
- // return type
- if (op->getTypeName().isEmpty()) {
- cs << "void ";
+ // return type (unless constructor, destructor)
+ if (!op->isLifeOperation()) {
+ if (op->getTypeName().isEmpty()) {
+ cs << "void ";
+ }
+ else {
+ cs << makeLocalTypeName(op) << " ";
+ }
}
- else {
- cs << makeLocalTypeName(op) << " ";
- }
// method name
cs << cleanName(op->getName()) << "(";
More information about the umbrello-devel
mailing list