summaryrefslogtreecommitdiff
path: root/src/plugins/qmljstools/qmlconsoleitemmodel.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2012-11-06 15:28:29 +0100
committerAurindam Jana <aurindam.jana@digia.com>2012-11-06 15:33:34 +0100
commit99f5605bafd95095fdde3f4ce7d93bdc831afd03 (patch)
tree81a26c2142235db3f4d3b59284fa3edff834579f /src/plugins/qmljstools/qmlconsoleitemmodel.cpp
parent19aa02c94ecbedc3df6d1d23b656cf6c6b730b67 (diff)
downloadqt-creator-99f5605bafd95095fdde3f4ce7d93bdc831afd03.tar.gz
QmlJsTools: Remove pointless call to QAbstractItemModel::reset().
The effect is already achieved by the calls to {begin,end}ResetModel(), which is the correct way to reset a model. Change-Id: I1981f6d488dc8dbf4c7bc111aa6d6774bc2f50e0 Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
Diffstat (limited to 'src/plugins/qmljstools/qmlconsoleitemmodel.cpp')
-rw-r--r--src/plugins/qmljstools/qmlconsoleitemmodel.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/qmljstools/qmlconsoleitemmodel.cpp b/src/plugins/qmljstools/qmlconsoleitemmodel.cpp
index 9bf121cf20..aa8b07737d 100644
--- a/src/plugins/qmljstools/qmlconsoleitemmodel.cpp
+++ b/src/plugins/qmljstools/qmlconsoleitemmodel.cpp
@@ -60,7 +60,6 @@ QmlConsoleItemModel::~QmlConsoleItemModel()
void QmlConsoleItemModel::clear()
{
beginResetModel();
- reset();
delete m_rootItem;
m_rootItem = new ConsoleItem(0);
endResetModel();