summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qalculateeditfunctiondialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qalculateeditfunctiondialog.cpp b/src/qalculateeditfunctiondialog.cpp
index 5c908c6..5bb2e85 100644
--- a/src/qalculateeditfunctiondialog.cpp
+++ b/src/qalculateeditfunctiondialog.cpp
@@ -377,10 +377,10 @@ MathFunction *QalculateEditFunctionDialog::editFunction(QString category, MathFu
str = defarg.printlong().c_str();
str2 = "";
}
- QListViewItem *i = new KListViewItem(argumentsView, i_prev, str2, str);
- i_prev = i;
- argumentsItems[i] = arg;
- argumentsItemsEdited[i] = false;
+ QListViewItem *i_new = new KListViewItem(argumentsView, i_prev, str2, str);
+ i_prev = i_new;
+ argumentsItems[i_new] = arg;
+ argumentsItemsEdited[i_new] = false;
}
}
argumentsView->setResizeMode(KListView::AllColumns);