[Uml-devel] KDE/kdesdk/umbrello/umbrello
Ralf Habacker
ralf.habacker at gmail.com
Tue Jan 10 14:34:49 UTC 2012
SVN commit 1272960 by habacker:
Fixed crash on importing http://www.omg.org/spec/UML/1.5/20020901/UML.idl.
It is not a good idea to take the address from a temporary QStringList entry.
M +1 -1 model_utils.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/model_utils.cpp #1272959:1272960
@@ -629,7 +629,7 @@
int pos = dirx.indexIn(input);
if (pos == -1)
return 0;
- const QString& dirStr = dirx.capturedTexts().first();
+ const QString dirStr = dirx.capturedTexts().first();
int dirLen = dirStr.length();
if (input.length() > dirLen && !input[dirLen].isSpace())
return 0; // no match after all.
More information about the umbrello-devel
mailing list