Commit 08f0e9f9 authored by Alain Laporte's avatar Alain Laporte Committed by Christoph Cullmann
Browse files

TCL parser: code cleaning

parent 6b644a67
......@@ -20,12 +20,12 @@ void KatePluginSymbolViewerView::parseTclSymbols(void)
return;
}
QString currline, prevline;
QString prevline;
bool prevComment = false;
QString varStr(QStringLiteral("set "));
QString procStr(QStringLiteral("proc"));
QString stripped;
int i, j, args_par = 0, graph = 0;
int args_par = 0, graph = 0;
char block = 0, parse_func = 0;
QTreeWidgetItem *node = nullptr;
......@@ -55,8 +55,8 @@ void KatePluginSymbolViewerView::parseTclSymbols(void)
// positions.resize(kDoc->numLines() + 3); // Maximum m_symbols number o.O
// positions.fill(0);
for (i = 0; i < kDoc->lines(); i++) {
currline = kDoc->line(i);
for (int i = 0; i < kDoc->lines(); i++) {
QString currline = kDoc->line(i);
currline = currline.trimmed();
bool comment = false;
// qDebug(13000)<<currline;
......@@ -105,7 +105,7 @@ void KatePluginSymbolViewerView::parseTclSymbols(void)
}
if (parse_func == 1) {
for (j = 0; j < currline.length(); j++) {
for (int j = 0; j < currline.length(); j++) {
if (block == 1) {
if (currline.at(j) == QLatin1Char('{')) {
graph++;
......
Supports Markdown
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