[Uml-devel] [Bug 133597] Strange behavior with datatypes in french
Oliver Kellogg
okellogg at users.sourceforge.net
Fri Sep 8 03:45:55 UTC 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=133597
okellogg users sourceforge net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From okellogg users sourceforge net 2006-09-08 05:45 -------
SVN commit 581960 by okellogg:
findUMLObject(): Remove ancient special processing for data types.
BUG:133597
M +4 -20 model_utils.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/model_utils.cpp #581959:581960
@ -115,28 +115,12 @
name.remove("&");
}
#endif
- if (type != Uml::ot_Datatype) {
- if (name.contains("::"))
- components = QStringList::split("::", name);
- else if (name.contains("."))
- components = QStringList::split(".", name);
- }
QString nameWithoutFirstPrefix;
+ if (name.contains("::"))
+ components = QStringList::split("::", name);
+ else if (name.contains("."))
+ components = QStringList::split(".", name);
if (components.size() > 1) {
- if (name.contains(QRegExp("[^\\w:\\.]"))) {
- // It's obviously a datatype.
- // Scope qualified datatypes live in the global scope.
- for (UMLObjectListIt oit(inList); oit.current(); ++oit) {
- UMLObject *obj = oit.current();
- if (caseSensitive) {
- if (obj->getName() == name)
- return obj;
- } else if (obj->getName().lower() == name.lower()) {
- return obj;
- }
- }
- return NULL;
- }
name = components.front();
components.pop_front();
nameWithoutFirstPrefix = components.join("::");
More information about the umbrello-devel
mailing list