[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Feb 11 13:45:06 UTC 2006
SVN commit 508483 by okellogg:
createUMLObject(): Remove whitespace on the stripped typename.
M +3 -0 import_utils.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/import_utils.cpp #508482:508483
@@ -5,6 +5,8 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
+ * copyright (C) 2005-2006 *
+ * Umbrello UML Modeller Authors <uml-devel@ uml.sf.net> *
***************************************************************************/
// own header
@@ -126,6 +128,7 @@
const int isPointer = typeName.contains('*');
const int isRef = typeName.contains('&');
typeName.remove(QRegExp("[^\\w:\\. ].*$"));
+ typeName = typeName.simplifyWhiteSpace();
UMLObject *origType = umldoc->findUMLObject(typeName, Uml::ot_UMLObject, parentPkg);
if (origType == NULL) {
// Still not found. Create the stripped down type.
More information about the umbrello-devel
mailing list