[Uml-devel] KDE/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Fri Jul 15 22:49:10 UTC 2005
SVN commit 435050 by okellogg:
Comment by Paulo Sehn on uml-devel:
> As far as I understand a constructor is an operation with the same name
> of the class, and no return type.
http://sourceforge.net/mailarchive/forum.php?thread_id=7740258&forum_id=472
M +3 -4 operation.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/operation.cpp #435049:435050
@@ -393,11 +393,10 @@
QString cName = c->getName();
QString opName = getName();
- QString opReturn = getTypeName();
- // its a constructor operation if the operation name and return type
- // match that of the parent classifier
- return (cName == opName && cName == opReturn) ? true : false;
+ // It's a constructor operation if the operation name
+ // matches that of the parent classifier.
+ return (cName == opName);
}
bool UMLOperation::showPropertiesDialogue(QWidget* parent) {
More information about the umbrello-devel
mailing list