Commit 00260417 authored by Ralf Habacker's avatar Ralf Habacker

Fix 'c++ import requests name for global name space'.

The name space parsing code in Import_utils::createUMLObject()
did not ignore the global (=empty) name space.

parent 713fe83d
...@@ -220,7 +220,7 @@ UMLObject *createUMLObject(UMLObject::ObjectType type, ...@@ -220,7 +220,7 @@ UMLObject *createUMLObject(UMLObject::ObjectType type,
// Find, or create, the scopes. // Find, or create, the scopes.
QStringList components; QStringList components;
if (typeName.contains(QLatin1String("::"))) { if (typeName.contains(QLatin1String("::"))) {
components = typeName.split(QLatin1String("::")); components = typeName.split(QLatin1String("::"), QString::SkipEmptyParts);
} else if (typeName.contains(QLatin1String("..."))) { } else if (typeName.contains(QLatin1String("..."))) {
// Java variable length arguments // Java variable length arguments
type = UMLObject::ot_Datatype; type = UMLObject::ot_Datatype;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment