Commit 45700601 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix Krazy issue.

parent a113a1be
...@@ -156,7 +156,7 @@ bool LayoutGenerator::generate(UMLScene *scene, const QString &variant) ...@@ -156,7 +156,7 @@ bool LayoutGenerator::generate(UMLScene *scene, const QString &variant)
if (!createDotFile(scene, in.fileName(), variant)) if (!createDotFile(scene, in.fileName(), variant))
return false; return false;
QString executable = m_dotPath + "/" + m_generator; QString executable = m_dotPath + '/' + m_generator;
QProcess p; QProcess p;
QStringList args; QStringList args;
...@@ -281,7 +281,7 @@ bool LayoutGenerator::availableConfigFiles(UMLScene *scene, QHash<QString,QStrin ...@@ -281,7 +281,7 @@ bool LayoutGenerator::availableConfigFiles(UMLScene *scene, QHash<QString,QStrin
QFileInfo fi(fileName); QFileInfo fi(fileName);
QString baseName; QString baseName;
if (fi.baseName().contains("-")) if (fi.baseName().contains("-"))
baseName = fi.baseName().remove(diagramType + "-"); baseName = fi.baseName().remove(diagramType + '-');
else if (fi.baseName() == diagramType) else if (fi.baseName() == diagramType)
baseName = fi.baseName(); baseName = fi.baseName();
else else
...@@ -487,7 +487,7 @@ bool LayoutGenerator::parseLine(const QString &line) ...@@ -487,7 +487,7 @@ bool LayoutGenerator::parseLine(const QString &line)
return true; return true;
// transistion // transistion
} else if (line.contains("->")) { } else if (line.contains("->")) {
QStringList k = keyword.split(" "); QStringList k = keyword.split(' ');
if (k.size() < 3) if (k.size() < 3)
return false; return false;
QString key = fixID(k[0]+k[2]); QString key = fixID(k[0]+k[2]);
...@@ -528,7 +528,7 @@ bool LayoutGenerator::parseLine(const QString &line) ...@@ -528,7 +528,7 @@ bool LayoutGenerator::parseLine(const QString &line)
QString id = fixID(keyword); QString id = fixID(keyword);
if (attributes.contains("pos")) { if (attributes.contains("pos")) {
QStringList &a = attributes["pos"]; QStringList &a = attributes["pos"];
QStringList b = a[0].split(","); QStringList b = a[0].split(',');
f.setLeft(b[0].toDouble()); f.setLeft(b[0].toDouble());
f.setTop(b[1].toDouble()); f.setTop(b[1].toDouble());
} }
......
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