[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Aug 13 01:42:20 UTC 2005
SVN commit 448829 by okellogg:
fillSource(): Add comprehensibility.
importFiles(): Add missing initialization of m_scope[0] and m_scopeIndex.
M +10 -10 adaimport.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/adaimport.cpp #448828:448829
@@ -35,23 +35,23 @@
AdaImport::~AdaImport() {
}
-void AdaImport::fillSource(QString lexeme) {
- QString word;
- const uint len = lexeme.length();
+void AdaImport::fillSource(QString word) {
+ QString lexeme;
+ const uint len = word.length();
for (uint i = 0; i < len; i++) {
- QChar c = lexeme[i];
+ QChar c = word[i];
if (c.isLetterOrNumber() || c == '_' || c == '.' || c == '#') {
- word += c;
+ lexeme += c;
} else {
- if (!word.isEmpty()) {
- m_source.append(word);
- word = QString::null;
+ if (!lexeme.isEmpty()) {
+ m_source.append(lexeme);
+ lexeme = QString::null;
}
m_source.append(c);
}
}
- if (!word.isEmpty())
- m_source.append(word);
+ if (!lexeme.isEmpty())
+ m_source.append(lexeme);
}
void AdaImport::parseFile(QString filename) {
More information about the umbrello-devel
mailing list